PDA

View Full Version : cannot find -lglui



nitinrao
February 9th, 2010, 06:08 AM
hi,
im trying to compile a cpp file, which makes use of OpenCV & openGL libraries. however, on giving this command :

test@test-desktop:~/Desktop/server$ g++ -I/usr/include/GL -I/usr/local/include/opencv -L /usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml -I/usr/X11R6/include -L/usr/X11R6/lib -o sample sample.cpp -lglui -lglut -lGLU -lGL -pthread

i get the following error message :
/usr/bin/ld: cannot find -lglui
collect2: ld returned 1 exit status

can anyone help me out?
thanks.

[solved]
had to install "libglui-dev" to make it work!

Bachstelze
February 9th, 2010, 10:13 AM
You need, surprisingly rnough, libglui-dev. ;)

EDIT: eh, didn't see the edit...