Linker error for using GLUI in PCL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Linker error for using GLUI in PCL

ahmad.hossny
This post has NOT been accepted by the mailing list yet.
I am using PCL::GPU::People code to detect the body parts using  the technique developed by Koen Buys.

Now I am trying to add some buttons to the user interface using the GLUI. I tried the GLUI code by itself and it worked perfectly, but when I tried to add it to the people_app.cpp it gave me a set of linker errors that I can't resolve!!

The sample c file using the GLUI  is attached belw

main.c

The linker error is stated below:

Linking CXX executable ../../../bin/pcl_people_app
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `GLUI_Font(void*, char*, int, int)':
people_app.cpp:(.text+0x728): undefined reference to `glutBitmapCharacter'
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `ButtonDraw(Button*)':
people_app.cpp:(.text+0xabc): undefined reference to `glutBitmapHelvetica10'
people_app.cpp:(.text+0xace): undefined reference to `glutBitmapLength'
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `MouseButton(int, int, int, int)':
people_app.cpp:(.text+0x844): undefined reference to `glutPostRedisplay'
people_app.cpp:(.text+0x877): undefined reference to `glutPostRedisplay'
people_app.cpp:(.text+0x8a0): undefined reference to `glutPostRedisplay'
people_app.cpp:(.text+0x8b1): undefined reference to `glutPostRedisplay'
people_app.cpp:(.text+0x8c1): undefined reference to `glutPostRedisplay'
CMakeFiles/pcl_people_app.dir/people_app.cpp.o:people_app.cpp:(.text+0x8d1): more undefined references to `glutPostRedisplay' follow
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `Draw3D()':
people_app.cpp:(.text+0xc33): undefined reference to `glutSolidTeapot'
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `Draw()':
people_app.cpp:(.text._Z4Drawv[_Z4Drawv]+0xf3): undefined reference to `glutSwapBuffers'
CMakeFiles/pcl_people_app.dir/people_app.cpp.o: In function `main':
people_app.cpp:(.text.startup+0x181): undefined reference to `glutInit'
people_app.cpp:(.text.startup+0x18b): undefined reference to `glutInitDisplayMode'
people_app.cpp:(.text.startup+0x1a2): undefined reference to `glutInitWindowSize'
people_app.cpp:(.text.startup+0x1b1): undefined reference to `glutInitWindowPosition'
people_app.cpp:(.text.startup+0x1bd): undefined reference to `glutCreateWindow'
people_app.cpp:(.text.startup+0x1c9): undefined reference to `glutDisplayFunc'
people_app.cpp:(.text.startup+0x1d5): undefined reference to `glutReshapeFunc'
people_app.cpp:(.text.startup+0x1e1): undefined reference to `glutMouseFunc'
people_app.cpp:(.text.startup+0x1ed): undefined reference to `glutMotionFunc'
people_app.cpp:(.text.startup+0x1f9): undefined reference to `glutPassiveMotionFunc'
people_app.cpp:(.text.startup+0x203): undefined reference to `glutMainLoop'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/pcl_people_app] Error 1
make[1]: *** [gpu/people/tools/CMakeFiles/pcl_people_app.dir/all] Error 2
make: *** [all] Error 2


Any Help is highly appreciated
Thanks in advance
Ahmad