]> git.saurik.com Git - wxWidgets.git/blame - wxPython/BUILD.osx.txt
fixed the width of the (week day as number) field, should be 1, not 2
[wxWidgets.git] / wxPython / BUILD.osx.txt
CommitLineData
b6e5c445
RD
1Building wxPython on Mac OS X
2-----------------------------
3
4NOTE: OS X support is HIGHLY EXPERIMENTAL at this time. Most things
05d61b69
RD
5 are working now, but a few still don't. I know about most of
6 them and am addressing them as I have time. If you have any
7 ideas about a fix for the stuff that's still broken then
8 please persue them and send the fixes to me.
9
b6e5c445
RD
10
11These are the steps I have used for building wxPython on Mac OS X 10.1
12with the Apple Developer Tools, a.k.a the Darwin version. I assume
13that you know your way around a command line and that you know how to
14get things from various CVS repositories as needed.
15
16
05d61b69
RD
171. Python 2.2 is required. There is a disk image with an installer
18 package in the wxPython Sourceforge download area, in this group:
19
20 http://sourceforge.net/project/showfiles.php?group_id=10718&release_id=84730
b6e5c445 21
05d61b69
RD
22 If, for some reason you need to build your own Python, get the
23 source from www.python.org and follow theinstructions in the
24 Mac/OSX/README file to build and install Python.app and the
25 Python.framework.
26
27 If you build your own Python then you may want to make a symlink or
28 two in /usr/local/bin so that this version of Python can be found
29 from the command line. For example:
b6e5c445
RD
30
31 cd /usr/local/bin
5ff5710d 32 sudo ln -s /Library/Frameworks/Python.framework/Versions/2.2/bin/python2.2 python2.2
b6e5c445
RD
33 sudo ln -s python2.2 python
34
05d61b69
RD
35 Also, if you create a /usr/local/bin/pythonw script like the
36 following then you can run Python GUI apps (like wxPython) directly
37 from the command line:
38
39 #!/bin/sh
40 exec /Applications/Python.app/Contents/MacOS/python $@
41
42 Be sure to give this script execute permissions:
43
44 sudo chmod +x /usr/local/bin/pythonw
45
46 If you would like to make a MachoPython installer from what you
47 built then you may want to look at the scripts I use to do it
48 located in wxPython/distrib/mac/buildPython.
49
50 One last thing, make sure that /usr/local/bin is in your PATH
51 environment variable.
52
53
542. In a wxWindows CVS tree make a build directory.
b6e5c445
RD
55
56 cd ~/proj/wxWindows # or wherever you put it
57 mkdir build
58
05d61b69 593. Run configure from that build directory.
b6e5c445
RD
60
61 cd build
62 ../configure --with-mac --with-opengl --enable-debug
63
05d61b69 644. Make and install wxMac.
b6e5c445
RD
65
66 make
67 sudo make install
68
05d61b69 695. Build and install wxPython.
b6e5c445
RD
70
71 cd ../wxPython
05d61b69 72 python setup.py IN_CVS_TREE=1 build install
b6e5c445 73
05d61b69 746. Test. Just navigate in the Finder to the demo directory and double
f54a35fe
RD
75 click demo.py, or simple.py, or whatever you want to run. Or from
76 a command line you can run it this way:
77
05d61b69
RD
78 cd demo
79 pythonw demo.py
b6e5c445 80
05d61b69 817. Figure out what's wrong, figure out how to fix it, and then send
b6e5c445
RD
82 the patches to me. <wink>
83
84--Robin
85
86
87
88
89
90