Changes between Initial Version and Version 1 of Develop/Compiling/Cross/Atari


Ignore:
Timestamp:
May 7, 2017, 2:32:33 PM (7 years ago)
Author:
PulkoMandy
Comment:

Moved info about Atari build into own page

Legend:

Unmodified
Added
Removed
Modified
  • Develop/Compiling/Cross/Atari

    v1 v1  
     1=== Atari TOS/FreeMiNT ===
     2The Atari build is very similar to the Linux one. The build might work on native machine with gcc 4.3> compiler, but it wasn't tested. You can also build binary for Coldfire based machines(e.g. Firebee) by
     3replacing '-m68020-60' in makefile with '-mcpu=5475'(you can use '-mcfv4e' too, but this option may be deprecated in future versions of gcc, so '-mcpu=5475' is more favourable).
     4 
     5Preferable way is to build GrafX2 with use of cross compiler, you can get one from [http://vincent.riviere.free.fr/soft/m68k-atari-mint Vincent Rivière site](URL: http://vincent.riviere.free.fr/soft/m68k-atari-mint). There are versions for win32 (Cygwin) and debian packages for latest Ubuntu (32/64bit).
     6
     7Before compilation you have to build all the needed libraries mentioned in requirements.
     8
     9To compile a Atari TOS executable, type in
     10{{{
     11        make ATARICROSS=1 prefix=/usr/m68k-atari-mint
     12}}}
     13You can also add other options like NOTTF, NOLUA, NOLAYERS etc. to enable/disable program features..
     14
     15If you don't know how build libraries here's some hints. Please note that prefix path in examples below is valid only under Linux,
     16in case of Cygwin the path will be '/opt/m68k-atari-mint'. There will be no prefix when building on native machine.
     17You have to omit 'sudo' under Cygwin and native build. Stick to this order and you will be fine ;> ...
     18The versions of libraries were tested, you can also try newer versions. As I mentioned earlier, replace '-m68020-60' with '-mcpu=5475'
     19if you want to target Coldfire machines.
     20
     21==== libpng (optional, for png reading in SDL_image) ====
     22===== note: you will need libzip too =====
     23libpng 1.2.44
     24{{{
     25./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer"
     26sudo make install
     27}}}
     28or
     29libpng 1.4.44
     30{{{
     31./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer -DPNG_NO_SETJMP"
     32sudo make install
     33}}}
     34
     35==== libjpeg, libtiff (optional, for jpeg/tiff support in SDL_image) ==== 
     36{{{
     37./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer"
     38sudo make install
     39}}}
     40
     41====  freetype 2.4.4 (optional, for TTF fonts support, required by SDL_ttf) ====
     42{{{
     43./configure --prefix=/usr/m68k-atari-mint --disable-shared --enable-static --host=m68k-atari-mint CFLAGS="-m68020-60 -O2 -fomit-frame-pointer"
     44sudo make install
     45}}}
     46
     47==== lua 5.0.4 (optional, for LUA scripting support) ====
     48Here you have to customize makefiles, add prefixes, platform has to be set as generic.
     49
     50==== SDL 1.2 (mandatory) ====
     51===== note: best is to grab it directly from Mercurial repository =====
     52{{{
     53./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"
     54sudo make install
     55}}}
     56
     57====  SDL_ttf (optional, for ttf fonts support, depends on SDL and freetype) ==== 
     58{{{
     59./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"
     60sudo make install
     61}}}
     62
     63==== SDL_image 1.2.10 (mandatory) ==== 
     64{{{
     65./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"
     66sudo make install
     67}}}