From: Sajjadul I. <saj...@st...> - 2007-03-13 22:15:25
|
Hello, I have installed the scenegraph 1.8.0 alpha from the daily build ,not sure though if it is properly installed as i have got several errors while making it. but after running the sudo make install and setting the LD_LIBRARY_PATH i got the following output with osg-config sajjad@sajjad-laptop:~/openSG/opSG$ osg-config Usage: osg-config OPTIONS [LIBRARIES] Options: [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--compiler] [--compiler-id] [--moc] [--uic] [--moc4] [--uic4] [--exe-linker] [--libs] [--cflags] [--lflags] [--llibs] [--opt] [--dbg] Libraries: Base System Win32 X GLUT QT QT4 Sepia Contrib and sajjad@sajjad-laptop:~/openSG/opSG$ osg-config --libs --dbg Base System GLUT QT -g -L/usr/lib64/ -L/usr/lib64/ -L/usr/lib64/ -L/usr/share/qt3/lib/ -L/usr/lib64/ -L/usr/local/lib/dbg -lOSGWindowQT -lOSGWindowGLUT -lOSGWindowX -lOSGSystem -lOSGBase -ltiff -ljpeg -lpng -lz -lqt-mt -lglut -lGLU -lGL -lXmu -lXi -lXt -lX11 -lpthread -ldl -lm -L/usr/X11R6/lib64 and sajjad@sajjad-laptop:~/openSG/opSG$ osg-config --cflags --dbg Base System GLUT QT -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_COMPACT -ansi -use_readonly_const -ftemplate-depth-100 -fPIC -O1 -g -DOSG_DEBUG -DOSG_WITH_QT -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/qt3/ -I/usr/include/GL/ -I/usr/local/include Does that mean it is properly installed? Then i prepared a MakeFile and my first application (copied the code from the site) but got the following error: sajjad@sajjad-laptop:~/openSG/opSG$ make firstScene "g++" -c -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_COMPACT -ansi -use_readonly_const -ftemplate-depth-100 -fPIC -O1 -g -DOSG_DEBUG -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/GL/ -I/usr/local/include firstOSG.cpp "g++" -o firstScene firstOSG.o -g -L/usr/lib64/ -L/usr/lib64/ -L/usr/lib64/ -L/usr/lib64/ -L/usr/local/lib/dbg -lOSGWindowGLUT -lOSGSystem -lOSGBase -ltiff -ljpeg -lpng -lz -lglut -lGLU -lGL -lXmu -lXi -lXt -lX11 -lpthread -ldl -lm -L/usr/X11R6/lib64 /usr/bin/ld: cannot find -lOSGWindowGLUT collect2: ld returned 1 exit status make: *** [firstScene] Error 1 what did i miss ? I am attaching the source code and MakeFile . Sajjad |