On Tue, 2006-11-07 at 18:05 +0100, Alberto Luaces wrote:
> Hello, 
> 
> I am trying to build the COLLADA plugin for OSG. I have downloaded the 
> COLLADA 
> DOM at Sourceforge,
> 
> COLLADA_1.4.1_DOM_1.1.0.zip
> 
> I have succesfully built it. However, only static libraries are created (.a). 
> When I try to make the plugin, the linker stops and gives an error about 
> that:
> 
> g++  -O2 -L/usr/X11R6/lib64 -L../../../../lib/Linux64  -shared  
> domSourceReader.o daeRMaterials.o daeRTransforms.o daeRGeometry.o 
> daeRSceneObjects.o daeReader.o daeWGeometry.o daeWMaterials.o 
> daeWTransforms.o daeWSceneObjects.o daeWriter.o 
> ReaderWriterDAE.o   -lstdc++ -losgGA -losgDB -losgUtil -losg  -lOpenThreads 
> -L/usr/local/lib-dbg -lcollada_dae -lcollada_dom -lcollada_dae 
> -lcollada_STLDatabase -lcollada_LIBXMLPlugin -lcollada_stdErrPlugin -lxml2    
> -o 
> osgdb_dae.so
> /usr/bin/ld: /usr/local/lib-dbg/libcollada_dae.a(dae.o): relocation 
> R_X86_64_32 against `vtable for DAE' can not be used when making a shared 
> object; recompile with -fPIC
> /usr/local/lib-dbg/libcollada_dae.a: could not read symbols: Bad value
> 
> Can anyone that has built this before tell me how to create the COLLADA 
> shared 
> libraries (.so)? I did not find any special targets into the COLLADA DOM 
> makefiles.

I don't have any advice on this issue other than I believe it has
something to do w/ 64bit compilation. I use Collada regularly with a
32bit system on Ubuntu with no problems (although, it looks like svn
revision 44 is broken on GCC as of yesterday, if  you're watching
alorino. :))

> I am using Kubuntu x86_64 GNU/Linux.
> 
> Thank you,
> 
> Alberto
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to