File: BUILD.osx.txt

package info (click to toggle)
wxwindows2.4 2.4.5.1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 59,920 kB
  • ctags: 97,489
  • sloc: cpp: 610,307; ansic: 111,957; python: 103,357; makefile: 3,676; sh: 3,391; lex: 192; yacc: 128; xml: 95; pascal: 74
file content (101 lines) | stat: -rw-r--r-- 3,135 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Building wxPython on Mac OS X
-----------------------------


These are the steps I have used for building wxPython on Mac OS X 10.x
with the Apple Developer Tools, a.k.a the Darwin version.  I assume
that you know your way around a command line and that you know how to
get things from various CVS repositories as needed.


1. "MacPython-OSX" 2.3 is required.  If you don't have it already there is a disk image with an
   installer package at

   http://homepages.cwi.nl/~jack/macpython/download.html

   If, for some reason you need to build your own Python, get the
   source from www.python.org and follow the instructions in the
   Mac/OSX/README file to build and install the Python.framework and
   Python tools.

   One last thing, make sure that /usr/local/bin is in your PATH
   environment variable since that is where the new python and pythonw
   commands will be located.


2. In a wxWindows CVS tree make a build directory.  (You can also use
   a CVS snapshot located in http://wxwindows.org/snapshots/ or the
   released wxPythonSrc-*.tr.gz archive.)

	cd ~/proj/wxWindows	# or wherever you put it
	mkdir build

3. Run configure from that build directory.

        cd build
	../configure --with-mac \
		     --with-opengl \
		     --enable-geometry \
                     --enable-optimise \
		     --with-libjpeg=builtin \
		     --with-libpng=builtin \
		     --with-libtiff=builtin \

   If you want to add code that activates various runtime checks and
   assertion exceptions then add --enable-debug_flag.

4. Make and install wxMac.

	make
	sudo make install

5. Build and install wxPython.

	cd ../wxPython
	python setup.py build install

   If you would like to install to someplace besides the Python
   site-packages directory (such as to your home directory) then you
   can add "--root=<path>" after the "install" command.  To use
   wxPython like this you'll need to ensure that the directory
   containing wxPyrthon is contained in in the PYTHONPATH environment
   variable.

6. Test.  Just navigate in the Finder to the demo directory and double
   click demo.py, or simple.py, or whatever you want to run.  Or from
   a command line you can run it this way:

	cd demo
	pythonw demo.py

7. Figure out what's wrong, figure out how to fix it, and then send
   the patches to me.  <wink>



NOTE: If you get a compile error while building the wxGLCanvas module
then this is likely due to a bug in one of Apple's header files.  This
one character patch to
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h
will take care of it:


--- fp.h.orig	2003-06-23 13:17:16.000000000 -0700
+++ fp.h	2003-06-23 13:51:46.000000000 -0700
@@ -1893,7 +1893,7 @@
 extern long double  scalbl(long double x, long n);
 #if TYPE_LONGDOUBLE_IS_DOUBLE
   #ifdef __cplusplus
-    inline long double scalbl(long double x, long n) { return (long double) scalb((double)(x), (n)); }
+    inline long double scalbl(long double x, long n) { return (long double) scalbl((double)(x), (n)); }
   #else
     #define scalbl(x, n) ((long double) scalb((double)(x), (n)))
   #endif

--Robin