Building "universal" binaries for MacOS


Andrea Mantler <man...@...>
 

I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


rmi...@...
 

I am working on a patch right now but it looks like you may be able to use CMAKE_TOOLCHAIN_FILE in the meantime.  You would make a file Toolchain-osx-fat.cmake with:
SET(CMAKE_OSX_ARCHITECTURES x86_64 i386)

Then use the flag -DCMAKE_TOOLCHAIN_FILE=<path to file>/Toolchain-osx-fat.cmake where <path to file> is the full path to Toolchain-osx-fat.cmake

I am currently not in a position to test this.  Please tell me if it works.


On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


rmi...@...
 

I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks


On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Thanks!  I'll give this a try!


On Wednesday, May 28, 2014 1:27:29 PM UTC-5, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

It didn't work, same error message.  :(


On Wednesday, May 28, 2014 1:27:29 PM UTC-5, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Trying this method, and not using the flag -DCMAKE_OSX_ARCHITECTURES=x86_64;i386 compiled (etc) with no errors, however, when I look at the .a and .dylib files using lipo -info, I get:
    Non-fat file: <filename> is architecture: x86_64
(So this didn't work either.)


On Wednesday, May 28, 2014 1:01:55 PM UTC-5, rmi...@... wrote:
I am working on a patch right now but it looks like you may be able to use CMAKE_TOOLCHAIN_FILE in the meantime.  You would make a file Toolchain-osx-fat.cmake with:
SET(CMAKE_OSX_ARCHITECTURES x86_64 i386)

Then use the flag -DCMAKE_TOOLCHAIN_FILE=<path to file>/Toolchain-osx-fat.cmake where <path to file> is the full path to Toolchain-osx-fat.cmake

I am currently not in a position to test this.  Please tell me if it works.

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


rmi...@...
 

It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.


On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


rmi...@...
 

> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Yeah, I'm working at getting a universal version compiled now.  Thanks!


On Friday, May 30, 2014 11:50:22 AM UTC-5, rmi...@... wrote:
> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


rmi...@...
 

If you do another pull the cmake file should use the internal lcms by default.


On Friday, May 30, 2014 10:19:00 AM UTC-7, Andrea Mantler wrote:
Yeah, I'm working at getting a universal version compiled now.  Thanks!

On Friday, May 30, 2014 11:50:22 AM UTC-5, rmi...@... wrote:
> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Thanks!


On Friday, May 30, 2014 1:51:06 PM UTC-5, rmi...@... wrote:
If you do another pull the cmake file should use the internal lcms by default.

On Friday, May 30, 2014 10:19:00 AM UTC-7, Andrea Mantler wrote:
Yeah, I'm working at getting a universal version compiled now.  Thanks!

On Friday, May 30, 2014 11:50:22 AM UTC-5, rmi...@... wrote:
> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Success!  Now to make sure I have the same version on linux (in case anything else changed from 1.0.9), then build for Windows (fingers crossed that there's no glitches there!), and I'm ready to start integrating it into our software!


On Friday, May 30, 2014 1:51:06 PM UTC-5, rmi...@... wrote:
If you do another pull the cmake file should use the internal lcms by default.

On Friday, May 30, 2014 10:19:00 AM UTC-7, Andrea Mantler wrote:
Yeah, I'm working at getting a universal version compiled now.  Thanks!

On Friday, May 30, 2014 11:50:22 AM UTC-5, rmi...@... wrote:
> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks! 


Andrea Mantler <man...@...>
 

Hi Robert,

I'm curious... will your changes be rolled into the main OCIO repository?  (If not, I should probably make a patch to apply to the main one for the next time we need to update our OCIO libraries.)

Thanks again for all your help!

Cheers,
Andrea


On Friday, May 30, 2014 1:51:06 PM UTC-5, Robert Minsk wrote:
If you do another pull the cmake file should use the internal lcms by default.

On Friday, May 30, 2014 10:19:00 AM UTC-7, Andrea Mantler wrote:
Yeah, I'm working at getting a universal version compiled now.  Thanks!

On Friday, May 30, 2014 11:50:22 AM UTC-5, rmi...@... wrote:
> ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Your liblcms2 is not a universal library.  I guess it came from homebrew.  It would be very hard to detect if the system liblcms2 contains all the right architectures for the current build.  I guess some of flag could be added to the cmake file to force it to use its internal liblcms2.

On Thursday, May 29, 2014 3:00:35 PM UTC-7, Andrea Mantler wrote:
Curses... google ate my reply!  A summary of what I wrote:

1.  Doing some more testing with yesterday's version, I noticed that changing the order of x86_64 and i386 changed the architecture that the two libraries are built in (it builds whichever comes first).
2.  Today's version is progress!  (Yay!  Thanks!)  tinyxml and yaml-cpp are being built as x86_64 & i386 fat binaries!  However, now it's erroring out in ociobakelut, due to the following:

ld: warning: in /opt/local/lib/liblcms2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

I'm looking into this now...

Thanks!
Andrea

On Thursday, May 29, 2014 1:23:04 PM UTC-5, rmi...@... wrote:
It is fun to getting quoting rules right in cmake.  Please pull the git repo again and test again.

On Wednesday, May 28, 2014 11:27:29 AM UTC-7, rmi...@... wrote:
I have created a new CMakeLists.txt file but I currently do not have a way to test it.  If someone could please test the CMakeOSXArch branch on the rminsk/OpenColorIO repository (git clone -b CMakeOSXArch https://github.com/rminsk/OpenColorIO.git).

Thanks

On Monday, May 26, 2014 2:12:58 PM UTC-7, Andrea Mantler wrote:
I would like to build fat binaries with x86_64 and i386 architecture support.  I've tried passing the flag
    -DCMAKE_OSX_ARCHITECTURES=x86_64;i386
to cmake, but it appears that flag isn't being carried down to the building of libtinyxml.a and libyaml-cpp.a:

    ld: warning: in ../../ext/dist/lib/libtinyxml.a, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in ../../ext/dist/lib/libyaml-cpp.a, file was built for unsupported file format which is not the architecture being linked (i386)

(Note:  I get the same errors if I try to build for just i386.)

Does anyone have any suggestions for what I can try?  Thanks!