HI Gerrit, I have a quick play with the order and it now builds. Thanks for the help. Now to get on with the rest of it !!
Ronan Gerrit Voss wrote: > Hi, > > On Mon, 2006-10-02 at 14:15 +0100, Ronan Jamieson wrote: > >> Hi All, >> >> I am trying to build OpenSG and VTK, using the code i got from Praveen >> (via Gerrit, i presume). I am using the offical 1.6 release, building on >> an a IA64 machine, with gcc-3.3.3 and Suse. I added the code into a >> directory i made off Source/Contrib called Vtk with comon.libs.in and >> common.mk included in the directory. I then configure my version of >> OpenSG with the following >> >> ./configure --prefix=/export/home/ronan/Develop/OpenSG-VTK/1.6-local >> --enable-jpg --enable-png --enable-glut >> with-add-incdir=/export/home/ronan/VTK/VTKOpenSG-include/include/vtk-5.0 >> --with-add-libdir=/export/home/ronan/VTK/VTKOpenSG-include/lib >> >> >> And then did the usual make/install. I then added the test application >> into the Tutorials directory and changed the Makefile to add in the >> OSGContrib and OSGWindowX libraries. When i try and make it using the >> following >> >> "g++" -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -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 -O2 -DOSG_WITH_GLUT >> -DOSG_WITH_JPG -DOSG_WITH_PNG >> -I/export/home/ronan/Develop/OpenSG-VTK/1.6-local/include y >> -I/export/home/ronan/VTK/VTKOpenSG-include/include/vtk-5.0 -lOSGContrib >> -lOSGWindowX 01testVTK.cpp -O2 >> -L/export/home/ronan/Develop/OpenSG-VTK/1.6-local/lib/opt >> -L/export/home/ronan/VTK/VTKOpenSG-include/lib -lOSGWindowGLUT >> -lOSGSystem -lOSGBase -ljpeg -lpng -lz -lglut -lGLU -lGL -lXmu -lXi -lXt >> -lX11 -lpthread -ldl -lm -L/usr/X11R6/lib -lvtkIO -lvtkCommon >> -lvtkGraphics -lvtkRendering -lvtkFiltering -o 01testVTK >> > > quick one, as you seem to be working with static vtk libraries, order is > important, can you try to put -lvtkCommon last. > > My guess would be you have to play a little bit with the vtk lib order > to get it working. You might even have to put the same lib twice or more > on the command line. Or switch to dynamic libs if you can. > > I tested against dynamic libs so there might be even some vtk libs > missing as they are pulled in automatically. > > regards, > gerrit > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
