No subject


Mon Aug 10 18:29:21 EDT 2009


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 at 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 at 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
>>>
>>>
>>
>

--0016e64ca5b828d402047278a0dc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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:<b=
r><br><div style=3D"margin-left: 40px;">ld: warning: in /Library/Frameworks=
//Python.framework/Python, missing required architecture x86_64 in file<br>
Undefined symbols:<br>=A0 &quot;_PyErr_Occurred&quot;, referenced from:<br>=
=A0=A0=A0=A0=A0 _SWIG_Python_AddErrorMsg in TMPathPYTHON_wrap.c.o<br>...<br=
></div><br>From the above it would appear that cmake is building x86_64 fil=
es and trying to link them my old i386 libraries, however=A0 the variable C=
MAKE_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=3D"gmail_quote">On Mon, Aug 31, 2009 at 11:49 AM, C=
elil Rufat <span dir=3D"ltr">&lt;<a href=3D"mailto:celil.rufat at gmail.com">c=
elil.rufat at gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Simply reinstalli=
ng XCode for 10.6 fixed the problem. <br><br>Thanks for the help. <br><font=
 color=3D"#888888">Celil</font><div>
<div></div><div class=3D"h5"><br><br><div class=3D"gmail_quote">On Sun, Aug=
 30, 2009 at 10:49 PM, Michael Jackson <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:mike.jackson at bluequartz.net" target=3D"_blank">mike.jackson at bluequartz.=
net</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>MAKE_OSX_SYS=
ROOT /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 avail=
able SDKs and then greps for some information to try and figure out which o=
ne 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=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
this person also has the problem &lt;<a href=3D"http://stackoverflow.com/qu=
estions/1349886/cmake-settings-on-snow-leopard" target=3D"_blank">http://st=
ackoverflow.com/questions/1349886/cmake-settings-on-snow-leopard</a>&gt;<br=
>


<br>
Yup, that was also me :-)<br>
<br>
=A0Please post the following variables from your project after a first run =
of cmake on your project from a clean build directory.<br>
<br>
=A0CMAKE_OSX_ARCHITECTURES<br>
=A0CMAKE_OSX_SYSROOT<br>
<br>
<br>
CMAKE_OSX_ARCHITECTURES =A0i386<br>
CMAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2<br>
<br>
Hmm, the last variable is strange. I don&#39;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>

--0016e64ca5b828d402047278a0dc--


More information about the CMake mailing list