I am experiencing still another problem. I can no longer link to any of the
older libraries. The compilation fails with the following error message:

ld: warning: in /Library/Frameworks//Python.framework/Python, missing
required architecture x86_64 in file
Undefined symbols:
  "_PyErr_Occurred", referenced from:
      _SWIG_Python_AddErrorMsg in TMPathPYTHON_wrap.c.o
...

>From the above it would appear that cmake is building x86_64 files and
trying to link them my old i386 libraries, however  the variable
CMAKE_OSX_ARCHITECTURES is still equal to i386.

What else could be causing the linker to fail in this way?

Celil


On Mon, Aug 31, 2009 at 11:49 AM, Celil Rufat <[email protected]> wrote:

> Simply reinstalling XCode for 10.6 fixed the problem.
>
> Thanks for the help.
> Celil
>
>
> On Sun, Aug 30, 2009 at 10:49 PM, Michael Jackson <
> [email protected]> wrote:
>
>> MAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2
>>
>> Yep, there is the problem. CMake looks in the /Developer/SDKs for all
>> available SDKs and then greps for some information to try and figure out
>> which one to use. Get rid of anything OTHER than official Apple SDKs that
>> are in /Developer/SDKs/*, just consider that directory off limits to
>> anything other than Apple stuff and you should be OK.
>>
>> Mike
>>
>>
>>
>> On Aug 30, 2009, at 11:26 PM, Celil Rufat wrote:
>>
>>
>>> this person also has the problem <
>>> http://stackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard
>>> >
>>>
>>> Yup, that was also me :-)
>>>
>>>  Please post the following variables from your project after a first run
>>> of cmake on your project from a clean build directory.
>>>
>>>  CMAKE_OSX_ARCHITECTURES
>>>  CMAKE_OSX_SYSROOT
>>>
>>>
>>> CMAKE_OSX_ARCHITECTURES  i386
>>> CMAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2
>>>
>>> Hmm, the last variable is strange. I don't know why it is detecting my
>>> android installation as the system root. I will try to delete it, and test
>>> again.
>>>
>>> Celil
>>>
>>>
>>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to