]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/BUILD.osx.txt
reSWIGged
[wxWidgets.git] / wxPython / docs / BUILD.osx.txt
CommitLineData
b6e5c445
RD
1Building wxPython on Mac OS X
2-----------------------------
3
05d61b69 4
1e4a197e 5These are the steps I have used for building wxPython on Mac OS X 10.x
b6e5c445
RD
6with the Apple Developer Tools, a.k.a the Darwin version. I assume
7that you know your way around a command line and that you know how to
8get things from various CVS repositories as needed.
9
10
8b9a4190
RD
111. "MacPython-OSX" 2.3 is required. If you don't have it already there is a disk image with an
12 installer package at
05d61b69 13
8b9a4190 14 http://homepages.cwi.nl/~jack/macpython/download.html
b6e5c445 15
05d61b69 16 If, for some reason you need to build your own Python, get the
1e4a197e
RD
17 source from www.python.org and follow the instructions in the
18 Mac/OSX/README file to build and install the Python.framework and
19 Python tools.
05d61b69
RD
20
21 One last thing, make sure that /usr/local/bin is in your PATH
1e4a197e
RD
22 environment variable since that is where the new python and pythonw
23 commands will be located.
05d61b69
RD
24
25
1e4a197e
RD
262. In a wxWindows CVS tree make a build directory. (You can also use
27 a CVS snapshot located in http://wxwindows.org/snapshots/ or the
28 released wxPythonSrc-*.tr.gz archive.)
b6e5c445
RD
29
30 cd ~/proj/wxWindows # or wherever you put it
31 mkdir build
32
05d61b69 333. Run configure from that build directory.
b6e5c445
RD
34
35 cd build
88c32d58 36 ../configure --with-mac \
8b9a4190
RD
37 --with-opengl \
38 --enable-geometry \
39 --enable-optimise \
40 --with-libjpeg=builtin \
41 --with-libpng=builtin \
42 --with-libtiff=builtin \
43
44 If you want to add code that activates various runtime checks and
45 assertion exceptions then add --enable-debug_flag.
b6e5c445 46
05d61b69 474. Make and install wxMac.
b6e5c445
RD
48
49 make
50 sudo make install
51
05d61b69 525. Build and install wxPython.
b6e5c445
RD
53
54 cd ../wxPython
1e4a197e
RD
55 python setup.py build install
56
57 If you would like to install to someplace besides the Python
58 site-packages directory (such as to your home directory) then you
59 can add "--root=<path>" after the "install" command. To use
60 wxPython like this you'll need to ensure that the directory
61 containing wxPyrthon is contained in in the PYTHONPATH environment
62 variable.
b6e5c445 63
05d61b69 646. Test. Just navigate in the Finder to the demo directory and double
f54a35fe
RD
65 click demo.py, or simple.py, or whatever you want to run. Or from
66 a command line you can run it this way:
67
05d61b69
RD
68 cd demo
69 pythonw demo.py
b6e5c445 70
05d61b69 717. Figure out what's wrong, figure out how to fix it, and then send
b6e5c445
RD
72 the patches to me. <wink>
73
74--Robin
75
76
77
78
79
80