finally i did my first program ... thank you guys. surely without you i would have gave up. i searched through some thread and found that it may my header file OSG_DIR that was not set (May be) .. i still din't know the exact cause of error but it is working now ....
On Tue, Feb 5, 2013 at 8:27 AM, om prakash Paliwal < [email protected]> wrote: > ok , i got it now. i ran "make VERBOSE=1" and i got this > > heart-hacker@hearthacker-HP-Pavilion-g6-Notebook-PC:~/OpenSg/project$ > make VERBOSE=1 > /usr/bin/cmake -H/home/heart-hacker/OpenSg/project > -B/home/heart-hacker/OpenSg/project --check-build-system > CMakeFiles/Makefile.cmake 0 > /usr/bin/cmake -E cmake_progress_start > /home/heart-hacker/OpenSg/project/CMakeFiles > /home/heart-hacker/OpenSg/project/CMakeFiles/progress.marks > make -f CMakeFiles/Makefile2 all > make[1]: Entering directory `/home/heart-hacker/OpenSg/project' > make -f CMakeFiles/MyProject.dir/build.make CMakeFiles/MyProject.dir/depend > make[2]: Entering directory `/home/heart-hacker/OpenSg/project' > cd /home/heart-hacker/OpenSg/project && /usr/bin/cmake -E cmake_depends > "Unix Makefiles" /home/heart-hacker/OpenSg/project > /home/heart-hacker/OpenSg/project /home/heart-hacker/OpenSg/project > /home/heart-hacker/OpenSg/project > /home/heart-hacker/OpenSg/project/CMakeFiles/MyProject.dir/DependInfo.cmake > --color= > make[2]: Leaving directory `/home/heart-hacker/OpenSg/project' > make -f CMakeFiles/MyProject.dir/build.make CMakeFiles/MyProject.dir/build > make[2]: Entering directory `/home/heart-hacker/OpenSg/project' > /usr/bin/cmake -E cmake_progress_report > /home/heart-hacker/OpenSg/project/CMakeFiles 1 > [100%] Building CXX object CMakeFiles/MyProject.dir/main.cpp.o > /usr/bin/c++ > *-I/home/heart-hacker/OpenSg/build_OpenSceneGraph/include/OpenThreads > -I/home/heart-hacker/OpenSg/build_OpenSceneGraph/include/osg > -I/home/heart-hacker/OpenSg/build_OpenSceneGraph/include* -o > CMakeFiles/MyProject.dir/main.cpp.o -c > /home/heart-hacker/OpenSg/project/main.cpp > /home/heart-hacker/OpenSg/project/main.cpp:2:20: fatal error: osg/Node: No > such file or directory > compilation terminated. > make[2]: *** [CMakeFiles/MyProject.dir/main.cpp.o] Error 1 > make[2]: Leaving directory `/home/heart-hacker/OpenSg/project' > make[1]: *** [CMakeFiles/MyProject.dir/all] Error 2 > make[1]: Leaving directory `/home/heart-hacker/OpenSg/project' > make: *** [all] Error 2 > > > And i have highligted the -i flag. it would be easier to see ..... One > thing i want to mention , when i browse through my include file earlier i > only had two folders namely osg and openthread .. Rest of the header file > were not there.. So i had to copy others from source directory .... > > > Anything i am missing? > > > On Mon, Feb 4, 2013 at 5:02 AM, Ulrich Hertlein <[email protected]>wrote: > >> On 3/02/13 22:51, om prakash Paliwal wrote: >> > i executed "make VERBOSE=1" and getting a screenful list of texts >> saying somthing has been >> > depriciated and at the last is says >> > >> > make[2]: *** >> [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o] Error 1 >> > make[2]: Leaving directory >> `/home/heart-hacker/OpenSg/OpenSceneGraph-3.0.1' >> > make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] >> Error 2 >> > make[1]: Leaving directory >> `/home/heart-hacker/OpenSg/OpenSceneGraph-3.0.1' >> > make: *** [all] Error 2 >> >> The above is apaprently from the OSG build directory and any build error >> there may or may >> not be relevant but since that's not the error you're trying to solve >> I'll ignore it. >> >> What I meant was to compile *YOUR* program with 'make VERBOSE=1' and >> check what '-I' flags >> it sets to find the OpenSceneGraph headers. >> >> You should find the compiler command line for the file that's failing to >> compile and it >> will contain various '-I <directory>' lines, one of which should point to >> the directory >> where you have OSG installed. >> >> Cheers, >> /ulrich >> >> PS: Please respond to the mailing list thread rather than a private mail. >> > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

