Problem in Compiling (G++ parameters) [message #1028677] |
Thu, 28 March 2013 15:41 |
Gaetano D\\\'Onghia Messages: 3 Registered: March 2013 |
Junior Member |
|
|
Problem in Compiling (G++ parameters)
i have installed on my Linux Ubuntu
Eclipse for PHP Developers
Version: Helios Service Release 2
Build id: 20110218-0911,
with CDT Plugin and other packages such as OpenNI, OpenCV and others
I tried to run an OpenNi example
It's ok when i pass g++ parameter from shell
(here the code :
g++ -o NiUserTracker SceneDrawer.cpp main.cpp -I/usr/include/ni/ -l'OpenNI' -l'glut'
)
When i try to compile through Eclipse IDE, 135 errors
It would be dependences or include or Libs dirs but i added them through
Properties > C/C++ General > Paths and Symbols > Includes and Library Paths
here the code generated from Eclipse
make all
Building file: ../SceneDrawer.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/ni -I/usr/include/GL -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/GL" -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/GLES" -I"/home/xxx/eclipse/workspace/NiUserTracker_prova1/glh" -I/usr/X11R6/include/ -O0 -g3 -Wall -c -fmessage-length=0 -v -MMD -MP -MF"SceneDrawer.d" -MT"SceneDrawer.d" -o"SceneDrawer.o" "../SceneDrawer.cpp"
I don't see main.cpp and I don't know where i can add -l'OpenNI' -l'glut' parameter
|
|
|
Powered by
FUDForum. Page generated in 0.03521 seconds