[CMake] MAC OXS linking problem : -lcrt1.10.5.o not found
Sean McBride
sean at rogue-research.com
Thu Feb 26 11:17:50 EST 2009
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