On Sat, Mar 27, 2010 at 11:09 AM, Stephan Witt <st.w...@gmx.net> wrote: > This is the error I get when building the cmake project with Xcode (output > from Xcode window): > > CreateUniversalBinary /Users/stephan/cvs/lyx/lyx-cmake/bin/Debug/lyxclient > normal "ppc i386" > cd /Users/stephan/cvs/lyx/lyx-devel/development/cmake > /usr/bin/lipo -create > /Users/stephan/cvs/lyx/lyx-cmake/bin/lyx.build/Debug/lyxclient.build/Objects-normal/ppc/lyxclient > > /Users/stephan/cvs/lyx/lyx-cmake/bin/lyx.build/Debug/lyxclient.build/Objects-normal/i386/lyxclient > -output /Users/stephan/cvs/lyx/lyx-cmake/bin/Debug/lyxclient > > /usr/bin/lipo: can't open input file: > /Users/stephan/cvs/lyx/lyx-cmake/bin/lyx.build/Debug/lyxclient.build/Objects-normal/ppc/lyxclient > (No such file or directory) > Command /usr/bin/lipo failed with exit code 1 > > So the project seemingly didn't build the ppc version of lyxclient.
I'm doing two things differently. First, I'm using -G "Unix Makefiles" (instead of XCode). Second, I'm setting cmake up so that it creates the universal binary for me, without my having to use lipo manually. To do that, I do (before running cmake the first time): export SDKROOT="/Developer/SDKs/MacOSX10.5.sdk" export PATH=/Developer/Tools/Qt:$PATH export CMAKE_OSX_ARCHITECTURES="ppc;i386" export CMAKE_OSX_ARCHITECTURES="ppc;i386" export CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" export CPPFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" I haven't actually tried the resulting binary on a PPC Mac (which I don't have readily accessible to me), but the Finder tells me it's a universal binary (and it's much bigger than the Intel binary). BH