Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinyxml2 library not found #111

Open
2 tasks
VectorWolf opened this issue Sep 24, 2022 · 1 comment
Open
2 tasks

tinyxml2 library not found #111

VectorWolf opened this issue Sep 24, 2022 · 1 comment

Comments

@VectorWolf
Copy link
Member

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
@VectorWolf
Copy link
Member Author

It seems as tinyxml2-dev doesn't ship with any .a file but only .so file. So in order to statically link we'd have to build locally via script or add the repo as a submodule.

Another option would be to just change travis-ci to ubuntu 22.04 jammy bumping automated builds and releasing from now on with tinyxml2-9. Only folks using jammy and up would be able to use the releases then. This would be the least effort but is just a quick fix and will break on the next release.

Maybe providing an appimage would help, but that also may be overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant