[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] cmake on Snow Leopard
From: Celil Rufat <celil.rufat () gmail ! com>
Date: 2009-08-31 23:45:15
Message-ID: 97056b660908311645o7c75d0c2j236ea152272f3070 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 <celil.rufat@gmail.com> 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 <
> mike.jackson@bluequartz.net> 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
>>>
>>>
>>
>
[Attachment #5 (text/html)]
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:<br><br><div \
style="margin-left: 40px;">ld: warning: in \
/Library/Frameworks//Python.framework/Python, missing required architecture x86_64 in \
file<br> Undefined symbols:<br> "_PyErr_Occurred", referenced from:<br> \
_SWIG_Python_AddErrorMsg in TMPathPYTHON_wrap.c.o<br>...<br></div><br>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. \
<br> <br>What else could be causing the linker to fail in this way?<br><br>Celil \
<br><br><br><div class="gmail_quote">On Mon, Aug 31, 2009 at 11:49 AM, Celil Rufat \
<span dir="ltr"><<a \
href="mailto:celil.rufat@gmail.com">celil.rufat@gmail.com</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Simply reinstalling XCode for 10.6 \
fixed the problem. <br><br>Thanks for the help. <br><font \
color="#888888">Celil</font><div> <div></div><div class="h5"><br><br><div \
class="gmail_quote">On Sun, Aug 30, 2009 at 10:49 PM, Michael Jackson <span \
dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" \
target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>MAKE_OSX_SYSROOT \
/Developer/SDKs/android-sdk-mac_x86-1.5_r2<br> <br></div>
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.<br>
<br>
Mike<div><div></div><div><br>
<br>
<br>
On Aug 30, 2009, at 11:26 PM, Celil Rufat wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>
this person also has the problem <<a \
href="http://stackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard" \
target="_blank">http://stackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard</a>><br>
<br>
Yup, that was also me :-)<br>
<br>
Please post the following variables from your project after a first run of cmake on \
your project from a clean build directory.<br> <br>
CMAKE_OSX_ARCHITECTURES<br>
CMAKE_OSX_SYSROOT<br>
<br>
<br>
CMAKE_OSX_ARCHITECTURES i386<br>
CMAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2<br>
<br>
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.<br> <br>
Celil<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic