Can't compile wx on OS X 10.3.9

Robin Dunn robin at alldunn.com
Fri Sep 22 10:22:48 PDT 2006


rossi at gmx.de wrote:
> 
> Robin Dunn wrote:
>> rossi at gmx.de wrote:
>>> Hi,
>>> I try to compile wxpython:
>> Just curious, is there a specific reason that you need to build your own
>> wxPython and can't use the existing binaries available at
>> http://wxpython.org/download.php?
>>
> 
> I did that now, but then i can't install matplotlib
> 
> c++: /Developer/SDKs/MacOSX10.4u.sdk: No such file or directory
> c++: /Developer/SDKs/MacOSX10.4u.sdk: No such file or directory
> error: Command "c++ -g -bundle -undefined dynamic_lookup
> build/temp.macosx-10.3-fat-2.4/src/_wxagg.o
> build/temp.macosx-10.3-fat-2.4/src/mplutils.o
> build/temp.macosx-10.3-fat-2.4/CXX/cxx_extensions.o
> build/temp.macosx-10.3-fat-2.4/CXX/cxxsupport.o
> build/temp.macosx-10.3-fat-2.4/CXX/IndirectPythonInterface.o
> build/temp.macosx-10.3-fat-2.4/CXX/cxxextensions.o -L/usr/local/lib
> -L/usr/lib -L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/lib
> -L/usr/local/lib/wxPython-unicode-2.6.3.3/lib -lpng -lz -lstdc++ -lm
> -lfreetype -lz -lstdc++ -lm -lwx_macud-2.6 -o
> build/lib.macosx-10.3-fat-2.4/matplotlib/backends/_wxagg.so -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -framework
> QuickTime -framework IOKit -framework Carbon -framework Cocoa
> -framework System" failed with exit status 1

I expect that the problem is because the Python you are using was built 
on 10.4 and distutils is trying to use the same flags that were used for 
the Python build.  You can tweak the flags that distutils will use by 
making changes in the <Python 
Framework>/.../lib/python2.4.config.Makefile dir, but there is probably 
a better way to do it.  Check with the matplotlib and PythonMac folks. 
Or there is a prebuilt-package available here:

http://pythonmac.org/packages/py24-fat/index.html

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-users mailing list