Hi Carsten, Thanks for the reply, I made the changes, but now I am getting a linking error:
g++ -shared -olib-dbg/libOSGContrib.so \ -L/home/buildslave/OpenSG/Builds/x86_64-unknown-linux-gnu-g++/BaseLib/lib-dbg -L/home/buildslave/OpenSG/Builds/x86_64-unknown-linux-gnu-g++/SystemLib/lib-dbg obj-dbg/OSGFTGLFontBase.o obj-dbg/OSGFTGLFont.o obj-dbg/OSGFTGLTextBase.o obj-dbg/OSGFTGLText.o -lOSGBase -lOSGSystem -lGLU -lGL -lXext -lXmu -lXi -lXt -lICE -lSM -lX11 -lftgl -lfreetype -lpthread -ldl -lm -L/usr/X11R6/lib64 \ -g /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a(FTFont.o): relocation R_X86_64_32S against `vtable for FTFont' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [lib-dbg/libOSGContrib.so] Error 1 How do I go about recompiling it with PIC? I think in the past when I have compile this it would use -fPIC anyway?? I could be making that up though... Andrew Carsten Neumann wrote: > Hello Andrew, > > Andrew Dunk wrote: > >> Hi, I have just checked out and am compiling 1.8 with the FTGL Contrib bits. >> >> I have got these to errors from the compiler, >> >> /home/buildslave/OpenSG/Source/Contrib/FTGLText/OSGFTGLText.cpp:76: >> error: ‘drawActionHandler’ is not a member of ‘osg::MaterialDrawable’ >> /home/buildslave/OpenSG/Source/Contrib/FTGLText/OSGFTGLText.cpp:80: >> error: ‘renderActionHandler’ is not a member of ‘osg::MaterialDrawable’ >> > > the functions changed name in MaterialDrawable, they are now called > drawActionEnterHandler, drawActionLeaveHandler and > renderActionEnterHandler, renderActionLeaveHandler. > Quick fix is to rename them in OSGFTGLText.cpp, I'll fix and commit this > to cvs tomorrow when I'm back in the office. > > Cheers, > Carsten > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Opensg-users mailing list > Opensg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users