[osg-submissions] Fwd: [osg-users] CMake COLLADA Parameters + TARGET_EXTERNAL_LIBRARIES trouble...

Daniel Sjolie dsjolie at gmail.com
Thu Aug 30 07:12:05 PDT 2007


And a copy to submissions...

Updated to be against current svn...

/Daniel

---------- Forwarded message ----------
From: Daniel Sjolie <dsjolie at gmail.com >
Date: Aug 30, 2007 3:11 PM
Subject: Re: [osg-users] CMake COLLADA Parameters +
TARGET_EXTERNAL_LIBRARIES trouble...
To: osg-users at lists.openscenegraph.org


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 < valerianmusic at hotmail.com > 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 -
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070830/8084c570/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070830/8084c570/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OsgMacroUtils.cmake
Type: application/octet-stream
Size: 14224 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070830/8084c570/attachment-0001.obj 


More information about the osg-submissions mailing list