Hi Luigi, I've updated the wiki with my experiences and a link to COLLADA_DOM...
About TARGET_EXTERNAL_LIBRARIES, I did _not_ want to have different variables for debug and release in this case and my understanding is that TARGET_EXTERNAL_LIBRARIES is meant for this purpose... It simply didn't work... Whit my change it does work... :) I didn't dig deeper into why it didn't work before... Do you know it to work in windows for other plugins? Or did I misinterpret the purpose of the variable? /Daniel On 8/30/07, Luigi Calori <[EMAIL PROTECTED]> wrote: > > I' m interested in making collada work on windows, could you send > pointer to required source downloading and hints on compiling. > > wrt TARGET_EXTERNAL_LIBRARIES, the preferred way to differentiate link > between debug and release, is to set wwo variables, like > > COLLADA_LIBRARY and COLLADA_LIBRARY_DEBUG set up to the release and debug > library accordingly > > and then SET(TARGET_LIBRARIES_VARS COLLADA_LIBRARY ) before calling > > SETUP_PLUGIN(dae) > > the setting should be done inside the find_collada > > Modifying OsgMacroUtils should not be needed. > > Is the COLLADA_LIBRARY a single library or is a list of libraries needed? > > thanks in advance > > Luigi > > Daniel Sjolie wrote: > > > > > Hi Nick... > > > > Yes, we've had some trouble getting this to work as well... > > > > Not with the includes perhaps, pointing to the include directory in > > COLLADA_DOM should be sufficient? > > > > But getting the linking to work well with all the dependencies was a > > lot more bothersome... I ended up with compiling the COLLADA_DOM > > myself (easy enough) and using > > ADD_DEFINITIONS(-DDOM_DYNAMIC) > > in the collada-plugin to use the dynamically linked version... I could > > then remove the rows setting TARGET_EXTERNAL_LIBRARIES and pointing > > out libcollada141dom13.lib from COLLADA_DOM... > > > > Also, it might be relevant that I had trouble getting > > TARGET_EXTERNAL_LIBRARIES to work later when writing another plugin... > > I changed it to add the library to both optimized and debug > > specifically instead of specifying none and then it worked... Not sure > > if the collada-plugin would have worked if I had done this change > > before instead... > > > > Modified files attached... > > > > /Daniel > > > > On 8/30/07, *Nick Prudent* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > wrote: > > > > > > I've used Collada-DOM before for another project but for some > > reason cannot seem to provide the correct include directories for > > building the COLLADA plugin. I develop on Windows. > > > > > > Does OSG expect any special directory structure or environment > > variable? What parameters should be put in CMake to make this work? > > > > Thanks, > > > > - Nick - > > > > > > > > > > _________________________________________________________________ > > News, entertainment and everything you care about at Live.com > > <http://Live.com>. Get it now! > > http://www.live.com/getstarted.aspx > > _______________________________________________ > > osg-users mailing list > > [email protected] > > <mailto:[email protected]> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > < > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org> > > > > > >------------------------------------------------------------------------ > > > >INCLUDE_DIRECTORIES( ${COLLADA_INCLUDE_DIR} ) > > > >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) > > ADD_DEFINITIONS(-DDOM_DYNAMIC) > > # SET(TARGET_EXTERNAL_LIBRARIES libcollada141dom13 ) > > # SET(TARGET_EXTERNAL_LIBRARIES libcollada141dom13 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 ) > > # JC hack STLDatabase and XMLPlugin are statically linked on Linux > > SET(TARGET_EXTERNAL_LIBRARIES collada_dom collada_dae xml2 ) > >ENDIF(WIN32) > >SET(TARGET_LIBRARIES_VARS COLLADA_LIBRARY) > > > >#### end var setup ### > >SETUP_PLUGIN(dae) > > > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >osg-users mailing list > >[email protected] > >http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

