Re: OSX 10.9 compile expectations?


Rod Bogart <bog...@...>
 

Agreed.  I inserted unistd.h above the #elif, and it compiles fine on 10.9.

RGB

On Feb 9, 2014, at 5:23 PM, Colin Doncaster <colin.d...@...> wrote:

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;
#endif

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. 

Cheers

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
   make
[ 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…

RGB

--
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 https://groups.google.com/groups/opt_out.


--
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 https://groups.google.com/groups/opt_out.

Join ocio-dev@lists.aswf.io to automatically receive all group messages.