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 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/

Reply via email to