Hi...
To get the Collada plugin to work in Windows I had to
1) add a "lib" prefix to the libraries for windows (as you can see in the
attached file)
2) remove "LIBXML_STATIC" from the preprocessor defines in
LIBXMLPlugin.vcproj and compile the collada dom myself (binary install of
collada dom doesn't work)
Modified src\osgPlugins\dae\CMakeLists.txt attached...
/Daniel
On 5/4/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
I have done some more tinkering/experimenting, and how now checked in a
first cut at Cmake COLLADA support. I use the env var COLLADA_DIR to
point to the Dom, and things compile but when I run the app on a .dae model
I get the error :
DynamicLibrary::getLibraryHandle(
/home/robert/OpenSceneGraph/lib/osgPlugins/osgdb_dae.so) - dlopen():
/home/robert/OpenSceneGraph/lib/osgPlugins/osgdb_dae.so: undefined symbol:
_ZTV16daeMetaAttribute
DynamicLibrary::failed loading "osgdb_dae.so"
Which suggests that I'm not linking all the required libs, so far only the
FindCOLLADA.cmake is only picking up on collada_dom, while the old plugin
links -lcollada_dae -lcollada_dom -lcollada_dae -lcollada_STLDatabase
-lcollada_LIBXMLPlugin -lcollada_stdErrPlugin -lxml2
Thoughts, suggestions?
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
INCLUDE_DIRECTORIES( ${COLLADA_INCLUDE_DIR} ${COLLADA_INCLUDE_DIR}/1.4)
SET(TARGET_SRC
daeReader.cpp
daeRGeometry.cpp
daeRMaterials.cpp
daeRSceneObjects.cpp
daeRTransforms.cpp
daeWGeometry.cpp
daeWMaterials.cpp
daeWriter.cpp
daeWSceneObjects.cpp
daeWTransforms.cpp
domSourceReader.cpp
ReaderWriterDAE.cpp
)
SET(TARGET_H
daeReader.h
daeWriter.h
domSourceReader.h
)
IF(WIN32)
SET(TARGET_EXTERNAL_LIBRARIES libcollada_dom libcollada_dae
libcollada_STLDatabase libcollada_LIBXMLPlugin libcollada_stdErrPlugin libxml2 )
ELSE(WIN32)
SET(TARGET_EXTERNAL_LIBRARIES collada_dom collada_dae collada_STLDatabase
collada_LIBXMLPlugin collada_stdErrPlugin xml2 )
ENDIF(WIN32)
SET(TARGET_LIBRARIES_VARS COLLADA_LIBRARY)
#### end var setup ###
SETUP_PLUGIN(dae)
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/