]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/mac/install.txt
Added "metal" theme.
[wxWidgets.git] / docs / mac / install.txt
... / ...
CommitLineData
1Installing latest headers (and Carbon Support)
2----------------------------------------------
3
4NOTE : these steps are not necessary for Pro 6, only for Pro 5.3
5
6the latest build for carbon support lead to a few changes you will have to
7follow, in order to successfully compile the code (also necessary if you don't
8want to build the carbon targets)
9
101. you need CodeWarrior Pro 5.3 , i.e. 5.0 with all the upgrades
112. you have to download the 3.3.2 universal interfaces from
12 ftp://ftp.apple.com/developer/Development_Kits/UniversalInterfaces3.3.2.sit.hqx
133. put the Interfaces and Libraries Folder into the MacOS Support folder and replace older versions
144. remove from the MacOS Support folder the separate OpenTransport folder
155. open the file MacOS Support:MacHeaders:MacHeaders.c and add the line
16 #include <ControlDefinitions.h>
17 after the
18 #include <Controls.h>
196. rebuild all MacHeaders from the MacHeaders.mcp project in the same folder
20
21if you want to build the carbon targets, you will also need the latest
22carbonized version of MSL from Metrowerks, at the time of writing, this meant
23applying the changes from the folders
24CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized MSL and
25CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized Runtimes
26(consult the file CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbon & MacOSX README)
27
28setup.h
29-------
30
31in order to build wxMac with CodeWarrior, you must copy or alias the file
32include/wx/mac/setup0.h to include/wx/setup.h.
33
34this step is not needed when using the Apple Developer Tools under Mac OS X
35since the setup.h file is automatically generated during the configuration.
36
37OpenGL
38------
39
40In order to build opengl support with CodeWarrior, you must install the opengl
41libraries and headers from http://developer.apple.com/opengl/index.html
42
43If you want OpenGL support with CodeWarrior, set wxUSE_OPENGL to 1 in
44include/wx/setup.h
45
46If you don't want OpenGl support, remove the file "glcanvas.cpp" from the
47project before compilation and leave the setting at 0
48
49If you want OpenGL support with the Apple Developer Tools under Mac OS X, add
50--with-opengl to the arguments of configure when configuring wxMac.
51
52Project Files
53-------------
54
55The project files are stored as xml text files and converted to binary
56CodeWarrior projects in the distribution (see AppleScript Files below):
57 - *M5.xml -> *M5.mcp for CodeWarrior 5.3
58 - *M6.xml -> *M6.mcp for CodeWarrior 6
59 - *M7.xml -> *M7.mcp for CodeWarrior 7
60
61In order to build the library (and then the samples) you need to make the
62following projects (for 5.3)
63:src:wxxindowsM5.mcp
64:src:png:pngM5.mcp
65:src:tiff:tiffM5.mcp
66:src:jpeg:jpegM5.mcp
67:src:zlib:zlibM5.mcp
68
69AppleScript Files
70-----------------
71
72Several AppleScript files are provided in the docs:mac directory (currently
73only for CodeWarrior 5.3 related projects):
74 - M5xml2mcp.applescript to convert xml files to CodeWarrior projects
75 - M5mcp2xml.applescript to convert CodeWarrior projects to xml files
76 - M5build.applescript to automatically build all samples/demos projects
77
78Apple Developers Tools
79----------------------
80
81As in all Unix projects, you need to do something like this under MacOS 10.1
82with the Apple Developers Tools installed:
83
841) cd into the source dir
852) mkdir build
863) cd build
874) ../configure
885) make
89
90If you want to install the library, you need to be able to log in as "root".
91For this, "root" has to be activated in the NetInfo utility - there you will
92also have to choose a password for the "root" user. Then
93
946) su
957) type <PASSWORD>
968) make install
979) exit
98
99Note:
100You might want to configure a static library instead:
101
1024) ../configure --disable-shared
103
104or activate OpenGL:
105
1064) ../configure --with-opengl
107
108
109Problems with .xpm files
110------------------------
111
112if you have downloaded all the files and get errors like :
113
114Error : the file 'wx/generic/tip.xpm' cannot be opened
115tipdlg.cpp line 201 #include "wx/generic/tip.xpm"
116
117then your cvs has changed the type of the .xpm files to something other than
118text, in order to fix this either change the type by using a resource editor
119or drag the files from /include/wx/generic/..xpm on the SetTypeFromExtension
120application that is included in this folder. This small applet itself queries
121the Internet Config, so you will have to associate the "xpm" extension with
122CodeWarrior before making use of this applet.
123
124Missing PLStringFuncsLib
125------------------------
126
127You will have to build All Targets for MacOS Support:Libraries:Sources:PLStringFuncs:Glue:PLStringFuncsGlue.mcp