Changes between Version 2 and Version 3 of Develop/Compiling


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

cleanup, move cross compiling info to separate pages

Legend:

Unmodified
Added
Removed
Modified
  • Develop/Compiling

    v2 v3  
    88  * MorphOS
    99  * Various BSD flavours (NetBSD, OpenBSD, FreeBSD)
    10   * BeOS and Haiku OS
     10  * Haiku
    1111  * Linux (several distros)
    1212  * SkyOS
     
    1414  * Atari TOS/FreeMiNT
    1515  * Mac OS X (including universal binary and app bundle support)
     16
     17Aditionally, the makefile support cross-compilation:
     18  * [[Develop/Compiling/Cross/Win32|from Linux to Windows]]
     19  * [Develop/Compiling/Cross/Atari from Linux or Windows to Atari]
     20  * from Linux to GP2X and Caanoo
    1621
    1722If you have got GrafX2 built on another system, please send us your patches to the source and project files. We will be happy to integrate them on the main source tree. When the project produces some very stable versions, it will be nice if some people can build RPM/Deb/... packages for the different linux distributions.
     
    4651}}}
    4752
    48 === Atari TOS/FreeMiNT ===
    49 The 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
    50 replacing '-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).
    51  
    52 Preferable 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).
    5353
    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 }}}
    11554
    11655== Instructions ==
     
    169108
    170109= Developers: Source code management =
    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]
    181111
    182112= Developers: Packaging a version =