Skip to content

tinyxml2 library not found #111

@VectorWolf

Description

@VectorWolf

Recently updated to new Ubuntu 22.04 and it ships with libtinyxml2-9. Trying to start a "old" build yields;

error while loading shared libraries: libtinyxml2.so.6: cannot open shared object file: No such file or directory

This isn't the first time tinyxml2 broke compatibility and it would probably be the best if we'd force to link statically with it.

Workaround is to place a copy of libtinyxml2 into the libs folder (can be either version 6 or 9), rename it to "libtinyxml2.so.6" and execute the game with "LD_LIBRARY_PATH=../libs ./game_name"

  • Figure out how to force cmake and .cmake/FindTinyXML2.cmake to link with the .a files rather than the .so files
  • Adapt fetch_dependencies.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions