[Cmake] some mac osx questions...

William A. Hoffman billlist at nycap.rr.com
Thu, 05 Feb 2004 15:22:36 -0500


I have never seen that error.  Sounds like some sort of cross compile
flags were used and the resulting executable does not compile.
Did you set CXXFLAGS, CFLAGS or any flags in ccmake or your CMakeCache.txt file?

-Bill


At 01:10 PM 2/5/2004, Shunming Fang wrote:
>Hello, Guys, I also has some questions about CMake in Mac os x.
>I try to port my code to Mac and compile it using CMake1.8 successfully.
>But When I run it  and it show error: Bad CPU type in executable. This
>is my first time working on Mac OS X. anyone know what is that and how
>to fix?
>Thanks
>Fang
>
>-----Original Message-----
>From: cmake-admin at www.cmake.org [mailto:cmake-admin at www.cmake.org] On
>Behalf Of James Dessart
>Sent: Monday, February 02, 2004 10:30 AM
>To: William A. Hoffman
>Cc: Alexander Neundorf; cmake at www.cmake.org
>Subject: Re: [Cmake] some mac osx questions...
>
>
>On 2-Feb-04, at 9:58 AM, William A. Hoffman wrote:
>
>> Another option would be to try and write makefiles for the tests and
>> use the command line interface to the compiler.
>
>That's also a possibility, and I had tried to go with that at one 
>point.  I had a lot of troubles, though.
>
>The only reason I can see for building with the CodeWarrior tools is 
>for ABI compatibility.  From what I've heard, Metrowerks is working on 
>using the same ABI as newer versions of gcc.  If this is the case, then 
>there wont be any need to build with CodeWarrior, and users of Mac OS X 
>can just stick with Makefiles.
>
>James
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake