Hi.
Build Urho3D on Ubuntu, Code::Blocks.
Log:
Linking CXX executable ../../../bin/Urho3DPlayer
cd /home/sashs7b9/Urho3D/Source/Tools/Urho3DPlayer && /usr/bin/cmake -E cmake_link_script CMakeFiles/Urho3DPlayer.dir/link.txt --verbose=1
/usr/bin/c++ -Wno-invalid-offsetof -march=native -ffast-math -pthread -g -DDEBUG -D_DEBUG CMakeFiles/Urho3DPlayer.dir/Urho3DPlayer.cpp.o -o ../../../bin/Urho3DPlayer -rdynamic ../../../lib/libUrho3D.a -ldl -lm -lGL -ldl -lm -lGL
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[2]: *** [bin/Urho3DPlayer] Error 1
make[1]: *** [Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/all] Error 2
make: *** [all] Error 2
make[2]: Leaving directory `/home/sashs7b9/Urho3D'
make[1]: Leaving directory `/home/sashs7b9/Urho3D'
Process terminated with status 2 (0 minute(s), 7 second(s))
2 error(s), 0 warning(s) (0 minute(s), 7 second(s))
As I understand it, the error in this line from file CMakeFiles/Urho3DPlayer.dir/link.txt --verbose=1 :
/usr/bin/c++ -Wno-invalid-offsetof -march=native -ffast-math -pthread -g -DDEBUG -D_DEBUG CMakeFiles/Urho3DPlayer.dir/Urho3DPlayer.cpp.o -o …/…/…/bin/Urho3DPlayer -rdynamic …/…/…/lib/libUrho3D.a -ldl -lm -lGL -ldl -lm -lGL
Help a newbie in linux.