Re: OSX 10.9 compile expectations?

Colin Doncaster <colin.d...@...>

It looks like PathUtils.cpp needs unistd.h included.  

Looking at the source there’s:

#if defined(__APPLE__) && !defined(__IPHONE__)
#include <crt_externs.h> // _NSGetEnviron()
#elif !defined(WINDOWS)
#include <unistd.h>
extern char **environ;

so I’m not too sure how one would want to rework those conditionals. 

Mavericks headers are closer to Linux now, there’s a few projects I’ve rebuilt now that require the __APPLE__ defines to compile. 


On Feb 8, 2014, at 6:14 PM, Rod Bogart <bog...@...> wrote:

Do we expect 10.9 to properly compile the git master version of OpenColorIO?

Steps to reproduce:
   “Clone in Desktop” to download software
   Cmake (with defaults) to populate build dir
   cd build
[ 38%] Building CXX object src/core/CMakeFiles/OpenColorIO.dir/ParseUtils.cpp.o
[ 39%] Building CXX object src/core/CMakeFiles/OpenColorIO.dir/PathUtils.cpp.o
/Users/ocio/OpenColorIO/src/core/PathUtils.cpp:154:15: error: 
      no member named 'getcwd' in the global namespace
            ::getcwd(path, MAXPATHLEN);
1 error generated.

Will continue to debug, but thought I’d ask if someone has been here first…


You received this message because you are subscribed to the Google Groups "OpenColorIO Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocio-dev+u...@....
For more options, visit

Join to automatically receive all group messages.