- changed status to resolved
Compiling errors related to chai3d-graphics
sh make_everything.sh leads to two errors:
...
[100%] Building CXX object CMakeFiles/scl_test.dir/home/rkk/Documents/scl-manips-group.git/src/scl/graphics/chai/ChaiGlutHandlers.cpp.o
/usr/bin/c++ -DTIXML_USE_STL -D_LINUX -Wall -fPIC -fopenmp -ggdb -O0 -pg -std=c++0x -DGRAPHICS_ON -DW_TESTING -DASSERT=assert -DDEBUG=1 -DTESTING -DW_TESTING=1 -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../src/scl -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../src -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../src/scl/dynamics/tao -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../3rdparty/eigen3.0.3 -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../3rdparty/chai3d-graphics/chai -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../3rdparty/sUtil/src -I/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/../../3rdparty/practical-socket -o CMakeFiles/scl_test.dir/home/rkk/Documents/scl-manips-group.git/src/scl/graphics/chai/ChaiGlutHandlers.cpp.o -c /home/rkk/Documents/scl-manips-group.git/src/scl/graphics/chai/ChaiGlutHandlers.cpp
Linking CXX executable scl_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/scl_test.dir/link.txt --verbose=1
/usr/bin/c++ -Wall -fPIC -fopenmp -ggdb -O0 -pg -std=c++0x -DGRAPHICS_ON -DW_TESTING -DASSERT=assert -DDEBUG=1 -DTESTING -DW_TESTING=1 CMakeFiles/scl_test.dir/scl_test.cpp.o CMakeFiles/scl_test.dir/test_random_stuff.cpp.o CMakeFiles/scl_test.dir/test_lotus_parser.cpp.o CMakeFiles/scl_test.dir/test_math.cpp.o CMakeFiles/scl_test.dir/test_controller.cpp.o CMakeFiles/scl_test.dir/test_dynamics.cpp.o CMakeFiles/scl_test.dir/test_robot_controller.cpp.o CMakeFiles/scl_test.dir/test_graphics.cpp.o CMakeFiles/scl_test.dir/home/rkk/Documents/scl-manips-group.git/src/scl/robot/CRobotApp.cpp.o CMakeFiles/scl_test.dir/home/rkk/Documents/scl-manips-group.git/src/scl/graphics/chai/CChaiGraphics.cpp.o CMakeFiles/scl_test.dir/home/rkk/Documents/scl-manips-group.git/src/scl/graphics/chai/ChaiGlutHandlers.cpp.o -o scl_test -rdynamic /home/rkk/Documents/scl-manips-group.git/applications-linux/scl_lib/debug/libscl.so /home/rkk/Documents/scl-manips-group.git/3rdparty/chai3d-graphics/lib/debug/libchai3d.so -lgomp -lGL -lGLU -lglut -lncurses -Wl,-rpath,/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_lib/debug:/home/rkk/Documents/scl-manips-group.git/3rdparty/chai3d-graphics/lib/debug
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[2]: [scl_test] Error 1
make[2]: Leaving directory /home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/build_dbg'
make[1]: *** [CMakeFiles/scl_test.dir/all] Error 2
make[1]: Leaving directory
/home/rkk/Documents/scl-manips-group.git/applications-linux/scl_test/build_dbg'
make: [all] Error 2
Comments (3)
-
reporter -
reporter - marked as minor
-
reporter -
assigned issue to
-
assigned issue to
- Log in to comment
This statement helped me to solve the problem:
The linkage on my computer between the openGL library and the place where other software looks for it, was broken...
just found the library and associated the right files:
Basically the fglrx driver (Proprietary AMD ATI Graphics driver) did not set up a correct link to the
usr/lib/
, it only kept the library one level below in/usr/lib/fglrx/
without linking itIt could be, that there is a broken link libGL.so already existing in the
/usr/lib/
directory, remove it before running the command