Thanks for the suggestions. <br><br>It appears that this is a bug with cmake, as it has been encountered elsewhere:<br><br><pre style="margin-left: 40px;">Despite setting CMAKE_OSX_ARCHITECTURES as i386, cmake builds x86_64 <br>
binaries on Snow Leopard, as default setting for gcc version 4.2.1 is <br>now x86_64.<br></pre><div style="margin-left: 40px;"><a href="http://www.cmake.org/pipermail/cmake/2009-August/031677.html">http://www.cmake.org/pipermail/cmake/2009-August/031677.html</a><br>
</div><br>As mentioned in the thread, setting<br><br><div style="margin-left: 40px;">CMAKE_OSX_ARCHITECTURES=i386;ppc<br></div><br>fixes the problem.<br><br>Celil<br><div class="gmail_quote"><br>On Tue, Sep 1, 2009 at 6:16 AM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">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;">_CMake_ isn't the one building the 32 bit binaries, 10.6 is building them by default. You either have to rebuild all your support libraries as 64 bit or Universal binaries, or figure out how to get your project to build for 32 bit by supplying the CMAKE_OSX_ARCHITECTURES=i386.<br>
<br>
You might want to try starting from an empty build directory then invoking cmake like the following:<br>
<br>
cmake -DCMAKE_OSX_ARCHITECTURES=i386 ../<br>
<br>
Failing that, you can try this:<br>
<br>
export CXXFLAGS="-arch i386"<br>
export CFLAGS="-arch i386"<br>
<br>
the invoking CMake on an empty build directory again.<br>
<br>
Just some thoughts. I don't have 10.6 yet so I am left guessing at this point..<br>
<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><div><div></div><div class="h5"><br>
<br>
<br>
On Aug 31, 2009, at 7:45 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;">
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>
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>
<br>