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

Build error due to undefined symbols on linux using freeglut when using CARVE_WITH_GUI=ON #65

Open
GoogleCodeExporter opened this issue Dec 12, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. run cmake 
2. make
3. get the following build error:

Linking CXX executable view
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglut.a(libglut_la
-freeglut_gamemode.o): undefined reference to symbol 'XGrabKeyboard'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from 
command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/view] Error 1
make[1]: *** [src/CMakeFiles/view.dir/all] Error 2
make: *** [all] Error 2


What is the expected output? What do you see instead?
-----------------------------------------------------

completed build

What version of the product are you using? On what operating system?
-------------------------------------------------------------------

cloned dev sources (hg id: 9a85d733a43d+ tip) on linux 64 Bit (Mint Linux 17) 
using the system packages freeglut3 and freeglut3-dev from the package 
repository.


Please provide any additional information below.
-----------------------------------------------

error goes away with -DCARVE_WITH_GUI=OFF

some googling reveals this may be solved by adding linker flags to X!! ( -lX11 
) somewhere in the CMakeLists

Original issue reported on code.google.com by [email protected] on 12 Jul 2014 at 12:29

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

1 participant