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

cmake >= 3.2.1 doesn't automatically add the X11 libs with Find_Package(OpenGL) anymore #65

Closed
filux opened this issue May 9, 2015 · 4 comments

Comments

@filux
Copy link
Contributor

filux commented May 9, 2015

from IRC:

[00:58] <Mr_Bones_> any devs about?
[00:58] <Mr_Bones_> would be nice if https://bugs.gentoo.org/show_bug.cgi?id=548488 was fixed up in the CMake files
[00:58] <MGBot> Title: Bug 548488 dev-util/cmake-3.2.1 breaks games-strategy/megaglest-3.9.1-r1: ../shared_lib/liblibmegaglest.a(gl_wrap.cpp.o): undefined reference to symbol 'XFreeFont' (at bugs.gentoo.org)
[00:59] <Mr_Bones_> cmake >= 3.2.1 doesn't automatically add the X11 libs with Find_Package(OpenGL) anymore.

https://bugs.gentoo.org/show_bug.cgi?id=548488

@DAP-DarkneSS
Copy link

Seems to be the same at openSUSE:Factory:
[ 449s] [100%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/tileset.cpp.o
[ 462s] Linking CXX executable megaglest
[ 463s] /usr/lib/gcc/i586-suse-linux/4.8/../../../../i586-suse-linux/bin/ld: ../shared_lib/liblibmegaglest.a(gl_wrap.cpp.o): undefined reference to symbol 'XLoadQueryFont'
[ 463s] /usr/lib/libX11.so.6: error adding symbols: DSO missing from command line
[ 463s] collect2: error: ld returned 1 exit status
[ 463s] source/glest_game/CMakeFiles/megaglest.dir/build.make:2206: recipe for target 'source/glest_game/megaglest' failed
[ 463s] make[2]: *** [source/glest_game/megaglest] Error 1
[ 463s] CMakeFiles/Makefile2:176: recipe for target 'source/glest_game/CMakeFiles/megaglest.dir/all' failed
[ 463s] make[1]: *** [source/glest_game/CMakeFiles/megaglest.dir/all] Error 2
[ 463s] Makefile:136: recipe for target 'all' failed
[ 463s] make: *** [all] Error 2

@filux filux closed this as completed in e26ea22 Jun 4, 2015
@DAP-DarkneSS
Copy link

Could you make a patch set for 3.11.1 or speed new release up please?

@filux
Copy link
Contributor Author

filux commented Jun 7, 2015

Yes, we are thinking about new release soon, but there is a patch:

megaglest-3.11.1_cmake3.2-x11.patch

filux added a commit that referenced this issue Jun 7, 2015
@DAP-DarkneSS
Copy link

Thank you very much!

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

No branches or pull requests

2 participants