code-google-com / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

Mac OSX precompile ifdefs for TR1 support problems #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Build Env = Mac OSX 10.6.4 gcc/c++ 4.2.1

1. Attempt to build Blender 2.54 with opencollada libs after building 
opencollada libs with Blender patches to SConstruct for OSX build. 
2. Compiler stops, complaining of issue with Utils class not being defined when 
trying to include header COLLADABUBaseUtils.h functions from the lib into 
Blender code.

      static String nativePathToUri (
         const String& nativePath,
         Utils::SystemType type = Utils::getSystemType() );
AND

  String toNativePath(Utils::SystemType type = Utils::getSystemType()) const;

With error messages in attached file - BuildErrors.txt

The compile errors can be stopped (and code compile succesfully) if changes are 
made in::

openCollada/COLLADABaseUtils/include/COLLADABUPrerequisites.h (which is 
subsequently used to access the precompiled collada libs)

ON OSX with gcc << 4.3 attempts to include COLLADABUURI.h  IF this is commented 
out code compiles and appears to work fine on OSX.  

Am unsure why this works.... or why COLLADABUURI.h is included at that point.  

Patch attached for COLLADABUPrerequisites.h

For completeness the OSX scons patch for building the opencollada libs for 
Blender use are attached. Though they seem not to affect any of the file with 
issues above.

Original issue reported on code.google.com by michael....@gmail.com on 13 Oct 2010 at 7:50

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, problem was in the include order and files included used in external files 
and not opencollada itself.

Please close this.

Original comment by michael....@gmail.com on 27 Oct 2010 at 1:33

GoogleCodeExporter commented 9 years ago

Original comment by opencollada2@googlemail.com on 18 Jan 2011 at 3:52