[CMake] MAC OXS linking problem : -lcrt1.10.5.o not found
Benoit Callebaut
callebaut at oma.be
Fri Feb 27 05:04:52 EST 2009
Tanks,
adding -mmacosx-version-min=10.4 to the CMAKE_CXX_FLAGS, it worked.
But I had to change the compiler from c++ to g++.
On Feb 26, 2009, at 4:17 PM, Sean McBride wrote:
> On 2/26/09 4:07 PM, Benoit Callebaut said:
>
>> I end up with the following message:
>> Linking CXX executable CubeMapping.app/Contents/MacOS/CubeMapping
>> ld: library not found for -lcrt1.10.5.o
>>
>> I can compile the same program using the command line (no makefile).
>>
>> My command line is :
>> g++ -o App -I /Developer/SDKs/OgreSDK/OgreSDK/Dependencies/include/
>> -I/
>> Developer/SDKs/OgreSDK/OgreSDK/Dependencies/Ogre.framework/Headers/
>> -L/
>> Developer/SDKs/OgreSDK/OgreSDK/Dependencies/lib/Release/ -I/
>> Developer/
>> SDKs/OgreSDK/OgreSDK/Samples/include/ -L/Developer/SDKs/OgreSDK/
>> OgreSDK/Dependencies/ -l ois -framework Carbon -framework Ogre -
>> framework IOKit CubeMapping.cpp
>
> The list archives contain your answer, but...
>
> You need to add the -mmacosx-version-min to your compiler flags.
> See also:
> <http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html>
>
> Note that an upcoming CMake will make this easier:
> <http://public.kitware.com/Bug/view.php?id=6195>
>
> Also, you really shouldn't put your own files in /Developer, that
> folder
> should be considered read-only (it contents are for Apple's use). The
> Xcode installer/uninstaller for example is free to wipe anything and
> everything from that hierarchy.
>
> hth,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
More information about the CMake
mailing list