54 | | Before compilation you have to build all the needed libraries mentioned in requirements. |
55 | | |
56 | | To compile a Atari TOS executable, type in |
57 | | {{{ |
58 | | make ATARICROSS=1 prefix=/usr/m68k-atari-mint |
59 | | }}} |
60 | | You can also add other options like NOTTF, NOLUA, NOLAYERS etc. to enable/disable program features.. |
61 | | |
62 | | If you don't know how build libraries here's some hints. Please note that prefix path in examples below is valid only under Linux, |
63 | | in case of Cygwin the path will be '/opt/m68k-atari-mint'. There will be no prefix when building on native machine. |
64 | | You have to omit 'sudo' under Cygwin and native build. Stick to this order and you will be fine ;> ... |
65 | | The versions of libraries were tested, you can also try newer versions. As I mentioned earlier, replace '-m68020-60' with '-mcpu=5475' |
66 | | if you want to target Coldfire machines. |
67 | | |
68 | | ==== libpng (optional, for png reading in SDL_image) ==== |
69 | | ===== note: you will need libzip too ===== |
70 | | libpng 1.2.44 |
71 | | {{{ |
72 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
73 | | sudo make install |
74 | | }}} |
75 | | or |
76 | | libpng 1.4.44 |
77 | | {{{ |
78 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer -DPNG_NO_SETJMP" |
79 | | sudo make install |
80 | | }}} |
81 | | |
82 | | ==== libjpeg, libtiff (optional, for jpeg/tiff support in SDL_image) ==== |
83 | | {{{ |
84 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
85 | | sudo make install |
86 | | }}} |
87 | | |
88 | | ==== freetype 2.4.4 (optional, for TTF fonts support, required by SDL_ttf) ==== |
89 | | {{{ |
90 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
91 | | sudo make install |
92 | | }}} |
93 | | |
94 | | ==== lua 5.0.4 (optional, for LUA scripting support) ==== |
95 | | Here you have to customize makefiles, add prefixes, platform has to be set as generic. |
96 | | |
97 | | ==== SDL 1.2 (mandatory) ==== |
98 | | ===== note: best is to grab it directly from Mercurial repository ===== |
99 | | {{{ |
100 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-video-opengl --disable-shared --enable-static --disable-threads CFLAGS="-m68020-60 -O2 -fomit-frame-pointer" |
101 | | sudo make install |
102 | | }}} |
103 | | |
104 | | ==== SDL_ttf (optional, for ttf fonts support, depends on SDL and freetype) ==== |
105 | | {{{ |
106 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-shared --enable-static --with-sdl-prefix=/usr/m68k-atari-mint --with-freetype-prefix=/usr/m68k-atari-mint CFLAGS=" -m68020-60 -O2 -fomit-frame-pointer" |
107 | | sudo make install |
108 | | }}} |
109 | | |
110 | | ==== SDL_image 1.2.10 (mandatory) ==== |
111 | | {{{ |
112 | | ./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint --disable-shared --enable-static --with-sdl-prefix=/usr/m68k-atari-mint CFLAGS="-DHAVE_OPENGL=0 -m68020-60 -O2 -fomit-frame-pointer" |
113 | | sudo make install |
114 | | }}} |
171 | | googlecode.com hosts our Subversion (svn) repository |
172 | | To access it, you need to have a Subversion client installed. |
173 | | Then check the instructions on http://code.google.com/p/grafx2/source/checkout to download a copy of the sources. |
174 | | If you have the command-line version of svn, the typical commands are: |
175 | | * svn status : Check the differences between your version and the latest |
176 | | * svn update : Import/merge the latest changes into your copy |
177 | | * svn revert _file_ : Reload the server's version of _file_ |
178 | | * svn commit : Send your changes to the server, as a new revision. (requires write access) |
179 | | Be careful that googlecode's SVN does not allow anyone to undo something, changes can only go forward. So, check everything twice before commiting something. |
180 | | The repository is readonly for unregistered users, if you want to contribute, contact us and we'll be happy to add your login to the project members. |
| 110 | [Develop/SourceControl] |