]> git.saurik.com Git - wxWidgets.git/blame - docs/mac/install.txt
Added missing rejigged IPC Latex files
[wxWidgets.git] / docs / mac / install.txt
CommitLineData
2e492c85
SC
1Installing latest headers (and Carbon Support)
2----------------------------------------------
3
8d823dab
SC
4NOTE : these steps are not necessary for Pro 6, only for Pro 5.3
5
f69fcd07
GD
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)
1eaf1962
SC
9
101. you need CodeWarrior Pro 5.3 , i.e. 5.0 with all the upgrades
c5229494
GD
112. you have to download the 3.4.0 (or greater) universal interfaces from
12 ftp://ftp.apple.com/developer/Development_Kits/UniversalHeaders3.4.1.img.bin
1eaf1962
SC
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
f9e45bd7 155. open the file MacOS Support:MacHeaders:MacHeaders.c and add the line
1eaf1962
SC
16 #include <ControlDefinitions.h>
17 after the
18 #include <Controls.h>
f9e45bd7 196. rebuild all MacHeaders from the MacHeaders.mcp project in the same folder
1eaf1962 20
f69fcd07
GD
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
1eaf1962
SC
24CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized MSL and
25CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized Runtimes
1ebfaf0c
SC
26(consult the file CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbon & MacOSX README)
27
90838153
GD
28setup.h
29-------
30
f69fcd07
GD
31in order to build wxMac with CodeWarrior, you must copy or alias the file
32include/wx/mac/setup0.h to include/wx/setup.h.
90838153 33
f69fcd07
GD
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.
90838153 36
0a67a93b
SC
37OpenGL
38------
39
f69fcd07
GD
40In order to build opengl support with CodeWarrior, you must install the opengl
41libraries and headers from http://developer.apple.com/opengl/index.html
90838153 42
f69fcd07
GD
43If you want OpenGL support with CodeWarrior, set wxUSE_OPENGL to 1 in
44include/wx/setup.h
0a67a93b 45
f69fcd07
GD
46If you don't want OpenGl support, remove the file "glcanvas.cpp" from the
47project before compilation and leave the setting at 0
b9eed05d 48
f69fcd07
GD
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.
0a67a93b 51
8d823dab
SC
52Project Files
53-------------
54
f69fcd07
GD
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
b9eed05d 60
eb5420bf
GD
61In order to build the library (and then the samples) you need to make the
62following projects (for 5.3)
f69fcd07
GD
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
b9eed05d
RR
77
78Apple Developers Tools
79----------------------
80
f69fcd07
GD
81As in all Unix projects, you need to do something like this under MacOS 10.1
82with the Apple Developers Tools installed:
b9eed05d 83
c5229494 841) cd into the base dir
b9eed05d
RR
852) mkdir build
863) cd build
874) ../configure
885) make
89
f69fcd07
GD
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
b9eed05d
RR
93
946) su
957) type <PASSWORD>
968) make install
979) exit
98
f69fcd07
GD
99Note:
100You might want to configure a static library instead:
b9eed05d
RR
101
1024) ../configure --disable-shared
103
f69fcd07
GD
104or activate OpenGL:
105
1064) ../configure --with-opengl
b9eed05d 107
8d823dab 108
2e492c85
SC
109Problems with .xpm files
110------------------------
1ebfaf0c
SC
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
f69fcd07
GD
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.
2e492c85
SC
123
124Missing PLStringFuncsLib
125------------------------
126
b9eed05d 127You will have to build All Targets for MacOS Support:Libraries:Sources:PLStringFuncs:Glue:PLStringFuncsGlue.mcp