]>
Commit | Line | Data |
---|---|---|
2e492c85 SC |
1 | Installing latest headers (and Carbon Support) |
2 | ---------------------------------------------- | |
3 | ||
8d823dab SC |
4 | NOTE : these steps are not necessary for Pro 6, only for Pro 5.3 |
5 | ||
f69fcd07 GD |
6 | the latest build for carbon support lead to a few changes you will have to |
7 | follow, in order to successfully compile the code (also necessary if you don't | |
8 | want to build the carbon targets) | |
1eaf1962 SC |
9 | |
10 | 1. you need CodeWarrior Pro 5.3 , i.e. 5.0 with all the upgrades | |
c5229494 GD |
11 | 2. 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 |
13 | 3. put the Interfaces and Libraries Folder into the MacOS Support folder and replace older versions |
14 | 4. remove from the MacOS Support folder the separate OpenTransport folder | |
f9e45bd7 | 15 | 5. 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 | 19 | 6. rebuild all MacHeaders from the MacHeaders.mcp project in the same folder |
1eaf1962 | 20 | |
f69fcd07 GD |
21 | if you want to build the carbon targets, you will also need the latest |
22 | carbonized version of MSL from Metrowerks, at the time of writing, this meant | |
23 | applying the changes from the folders | |
1eaf1962 SC |
24 | CodeWarrior Pro 5:Pre-Release:Carbon & MacOSX Development:Carbonized MSL and |
25 | CodeWarrior 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 |
28 | setup.h |
29 | ------- | |
30 | ||
f69fcd07 GD |
31 | in order to build wxMac with CodeWarrior, you must copy or alias the file |
32 | include/wx/mac/setup0.h to include/wx/setup.h. | |
90838153 | 33 | |
f69fcd07 GD |
34 | this step is not needed when using the Apple Developer Tools under Mac OS X |
35 | since the setup.h file is automatically generated during the configuration. | |
90838153 | 36 | |
0a67a93b SC |
37 | OpenGL |
38 | ------ | |
39 | ||
f69fcd07 GD |
40 | In order to build opengl support with CodeWarrior, you must install the opengl |
41 | libraries and headers from http://developer.apple.com/opengl/index.html | |
90838153 | 42 | |
f69fcd07 GD |
43 | If you want OpenGL support with CodeWarrior, set wxUSE_OPENGL to 1 in |
44 | include/wx/setup.h | |
0a67a93b | 45 | |
f69fcd07 GD |
46 | If you don't want OpenGl support, remove the file "glcanvas.cpp" from the |
47 | project before compilation and leave the setting at 0 | |
b9eed05d | 48 | |
f69fcd07 GD |
49 | If 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 |
52 | Project Files |
53 | ------------- | |
54 | ||
f69fcd07 GD |
55 | The project files are stored as xml text files and converted to binary |
56 | CodeWarrior 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 |
61 | In order to build the library (and then the samples) you need to make the |
62 | following 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 | ||
69 | AppleScript Files | |
70 | ----------------- | |
71 | ||
72 | Several AppleScript files are provided in the docs:mac directory (currently | |
73 | only 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 | |
78 | Apple Developers Tools | |
79 | ---------------------- | |
80 | ||
f69fcd07 GD |
81 | As in all Unix projects, you need to do something like this under MacOS 10.1 |
82 | with the Apple Developers Tools installed: | |
b9eed05d | 83 | |
c5229494 | 84 | 1) cd into the base dir |
b9eed05d RR |
85 | 2) mkdir build |
86 | 3) cd build | |
87 | 4) ../configure | |
88 | 5) make | |
89 | ||
f69fcd07 GD |
90 | If you want to install the library, you need to be able to log in as "root". |
91 | For this, "root" has to be activated in the NetInfo utility - there you will | |
92 | also have to choose a password for the "root" user. Then | |
b9eed05d RR |
93 | |
94 | 6) su | |
95 | 7) type <PASSWORD> | |
96 | 8) make install | |
97 | 9) exit | |
98 | ||
f69fcd07 GD |
99 | Note: |
100 | You might want to configure a static library instead: | |
b9eed05d RR |
101 | |
102 | 4) ../configure --disable-shared | |
103 | ||
f69fcd07 GD |
104 | or activate OpenGL: |
105 | ||
106 | 4) ../configure --with-opengl | |
b9eed05d | 107 | |
8d823dab | 108 | |
2e492c85 SC |
109 | Problems with .xpm files |
110 | ------------------------ | |
1ebfaf0c SC |
111 | |
112 | if you have downloaded all the files and get errors like : | |
113 | ||
114 | Error : the file 'wx/generic/tip.xpm' cannot be opened | |
115 | tipdlg.cpp line 201 #include "wx/generic/tip.xpm" | |
116 | ||
f69fcd07 GD |
117 | then your cvs has changed the type of the .xpm files to something other than |
118 | text, in order to fix this either change the type by using a resource editor | |
119 | or drag the files from /include/wx/generic/..xpm on the SetTypeFromExtension | |
120 | application that is included in this folder. This small applet itself queries | |
121 | the Internet Config, so you will have to associate the "xpm" extension with | |
122 | CodeWarrior before making use of this applet. | |
2e492c85 SC |
123 | |
124 | Missing PLStringFuncsLib | |
125 | ------------------------ | |
126 | ||
b9eed05d | 127 | You will have to build All Targets for MacOS Support:Libraries:Sources:PLStringFuncs:Glue:PLStringFuncsGlue.mcp |