[CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

Claus Klein claus.klein at arcormail.de
Sun Jan 3 08:22:20 EST 2010


Thanks Bart,

I have xcode installed, but not every compiler on my MAC compiles for  
MAC-OS.
I have mingw32 installed from macports, and the target is Win32, so  
this option test

"-mmacosx-version-min=     The earliest MacOS X version on which this  
program will run"

makes no sence and not every compiler on a MAC support this!

-------------------------

claus-kleins-macbook-pro:gcc clausklein$ for c in gcc powerpc-apple- 
darwin9-gcc-4.2.1 i386-mingw32-gcc; do which $c; $c --version; $c -- 
target-help 2>&1 | grep -w MacOS; done
/usr/bin/gcc
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

   -mmacosx-version-min=     The earliest MacOS X version on which  
this program will run
/usr/bin/powerpc-apple-darwin9-gcc-4.2.1
powerpc-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5566)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

   -mmacosx-version-min=       The earliest MacOS X version on which  
this
/opt/local/bin/i386-mingw32-gcc
i386-mingw32-gcc (GCC) 3.4.5 (mingw-vista special r2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

claus-kleins-macbook-pro:gcc clausklein$ !tre
tree -d
.
|-- darwin
|   |-- i386
|   |-- ppc
|   |-- ppc64
|   `-- x86_64
|-- i686-apple-darwin9
|   |-- 4.0.1
|   |   `-- install-tools
|   `-- 4.2.1
|       `-- install-tools
`-- powerpc-apple-darwin9
     |-- 4.0.1
     |   `-- install-tools
     `-- 4.2.1
         `-- install-tools

15 directories
claus-kleins-macbook-pro:gcc clausklein$ pwd
/Developer/usr/libexec/gcc
claus-kleins-macbook-pro:gcc clausklein$
---------------------------------------------------------

One aspect of Cross-compiling is to compile for an other architecture  
and another OS, I think.

Claus

On 03.01.2010, at 03:36, Bart Nabbe wrote:

> i think you do not have the 10.5software development code from apple  
> installed.
> it comes with xcode if you select the 10.5 sdk
> this is from memory, so just give it a brief check.
>
> On Jan 2, 2010, at 18:30, Claus Klein wrote:
>
>> I have problems to crosscompile on MAC-OS for MinGW.
>> How kann I prevent this strange compiler flag on a Darwin Plattform?
>>
>> Thanks
>>
>> Claus
>> -----------------------------------------
>>
>> cmake -DCMAKE_C_COMPILER=i386-mingw32-gcc -DCMAKE_CXX_COMPILER=i386- 
>> mingw32-g++ --debug-trycompile --debug-output - 
>> DCMAKE_SYSTEM_NAME=Windows-gcc ..



More information about the CMake mailing list