Hi Gerrit! Gerrit Voss wrote: > Hi, > > On Tue, 2009-02-24 at 11:03 +0100, Marcus Lindblom wrote: >> Hi all, >> >> I'm trying to compile OpenSG 2.x using CMake (VS9, Vista 32-bit) with >> almost everything it supports (VTK, Collada, png, tiff, etc) and I get >> compilation errors for Collada. >> >> \opensg2_trunk\Source\System\FileIO\Collada\OSGColladaElement.inl(74) : >> error C2039: 'getUserData' : is not a member of 'daeElement' >> >> IIRC, OpenSG still requires v1.4.? of Collada rather than 2.2 which is >> also available ? I've downloaded collada-1.4.1-dom-1.3.0 and tried to >> compile against that, but it didn't work. There was no hint in the CMake >> file either. (Which could use some additional checking, as I've gave it >> the wrong include paths at first, i.e. with the dae/dom files. How does >> one add checks f) >> >> What is the right version to use? > > my windows version uses 2.2 dom 1.4, not the dom 1.5 which is also > included.
Righto. :) > IIRC there is no way to tell which collada versions you are dealing with > just from the includes. At least last time I looked I did not find > any include file that carried a version information ;-(. So you would > have to find some c++ structure that changes over time and grep for > it ;-(. Ouch... just... what.. argh.. X-( Thanks for making the attempt though. >> Also, on a much smaller note, I got link errors on tiff. I tried with >> the tif32.lib from 1.X supportlibs. Is that correct and if so, what else >> could've gone wrong? (We don't need tif ATM, but it's nice to have as >> much support as possible.) > > AFAIK you have to build the support libs with the same compiler you > use for OpenSG. I'm not sure if VS9 variants are available ;-(. It's usually not a problem for some libs (zlib/png/glut work fine) but yeah, tif32.lib isn't as easy, as I get errors from the tif_unix.c file: 1>tif32.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__read referenced in function __tiffReadProc 1>tif32.lib(tif_unix.obj) : error LNK2019: unresolved external symbol __imp__write referenced in function __tiffWritePr I misinterpreted these by reading 'unresolved symbol __tiffReadProc' because my brain, for some reason, decided to do that. ;) I suppose the read/write are the posix c functions? If so, I just need to compile it again, or exclude it. > We touched the topic earlier but did not really come to a good > conclusion ;-(. If the world follows through in it's CMake conversion, it might be pretty easy to make auto-download & compile on Windows too. :) Thanks for the speedy response! Cheers, /Marcus ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
