Updated docs README and COMPILING

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1381 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2010-03-13 16:28:59 +00:00
parent 54317d94ae
commit 5708b92481
2 changed files with 41 additions and 12 deletions

View File

@ -8,28 +8,42 @@ Grafx2 compilation and installation
* SDL library v1.2 * SDL library v1.2
* SDL_image library * SDL_image library
* libpng (not on MacOSX) * libpng (not on MacOSX)
* FreeType library (optional) * FreeType library (optional, for truetype fonts)
* SDL_ttf library (optional) * SDL_ttf library (optional, for truetype fonts)
* Lua library v5.1 (optional, for Lua scripting)
Extra requirements for Windows: Extra requirements for Windows:
* a POSIX environment: MSYS is fine, maybe Cygwin would work as well. * a POSIX environment: MSYS is fine, maybe Cygwin would work as well.
* use Mingw C compiler instead of gcc * use Mingw C compiler instead of gcc
Extra requirements for UNIX/X11 (Linux, FreeBSD, ...): Extra requirements for UNIX/X11 (Linux, FreeBSD, ...):
* pkg-config (optional, for Lua scripting)
* X11 headers (optional, for truetype fonts) * X11 headers (optional, for truetype fonts)
On Debian-based distributions you should be able to get all these files by
simply running the following command from a terminal :
sudo aptitude install gcc make libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libfreetype6-dev liblua5.1-0-dev lua5.1
=== Instructions === === Instructions ===
Open a shell/Terminal, cd to the directory where you have the source code, and Open a shell/Terminal, enter the directory where you have the project tree, and
type: type:
cd src
make make
If all goes well, it should build grafx2 (the main program) in the current If all goes well, it should build grafx2 (the main program) in the "bin"
directory. Voilà. directory. Voilà.
If you don't have FreeType and SDL_ttf, compile with NOTTF=1, it will If you don't have FreeType and SDL_ttf, type make NOTTF=1 instead. It will
build a version without TrueType support : the Text tool will be limited to build a version without TrueType support : the Text tool will be limited to
bitmap fonts, proportional fonts with .ttf extension won't be available. bitmap fonts, proportional fonts with .ttf extension won't be available.
If you don't have lua available, type `make NOLUA=1`. You will not be able to
use lua scripts to generate and alter brush and pictures.
These options can be combined, for example for a build without ttf nor lua type
make NOTTF=1 NOLUA=1
=== Build variants === === Build variants ===
The default compilation is optimized ( -O ), with debugging symbols for GDB. The default compilation is optimized ( -O ), with debugging symbols for GDB.
@ -38,14 +52,20 @@ to do.
Compile with OPTIM=3 to use maximum optimizations. Compile with OPTIM=3 to use maximum optimizations.
Type "make release" if you don't want the debugging symbols. Type "make release" if you don't want the debugging symbols.
Compile with NOJOY=1 to disable joystick support. Compile with USE_JOYSTICK=1 to enable joystick input : Only useful for
developers, to check the input code for platforms that don't have a mouse.
Compile with NOLAYERS=1 to make a version of Grafx2 that can't display
several layers at a time: You will still be able to edit layered images,
but you will only see one layer at a time. This option is designed for slow
platforms, as it makes the program faster.
=== Other compilation targets === === Other compilation targets ===
make clean make clean
Erases the generated files Erases all generated files (intermediate objects, and executable)
make depend make depend
Re-compute the dependencies (makefile.dep). Re-compute the dependencies (makefile.dep).
Other compilation targets (make version, make ziprelease) require Subversion Other compilation targets (make version, make ziprelease) require Subversion
and are only useful to contributors to the svn repository of Grafx2. and are only useful to contributors to the svn repository of Grafx2.
@ -53,14 +73,20 @@ and are only useful to contributors to the svn repository of Grafx2.
=== System specifics === === System specifics ===
== Unix/Linux == == Unix/Linux ==
sudo make install sudo make install
This copies the executable and data files in your system, in the /usr/local/ This copies the executable and data files in your system, in the /usr/local/bin
and /usr/share directories. You then no longer need the compilation directory. and /usr/local/share directories. You then no longer need the compilation
directory.
sudo make uninstall sudo make uninstall
Removes the copied files from your system, keeps your configuration. Removes the copied files from your system, keeps your configuration.
For both options, you can specify prefix=something to choose the target
directory root: For example prefix=/usr or prefix=./test-install
== gp2x == == gp2x ==
The gp2x build is very similar to the Linux one. TTF is always disabled because The gp2x build is very similar to the Linux one. TTF is always disabled because
there is no X11 support on the gp2x. there is no X11 support on the gp2x.
To compile a gp2x executable, type To compile a gp2x executable, type
@ -73,7 +99,7 @@ It is also possible to compile from linux, with this command :
make WIN32CROSS=1 make WIN32CROSS=1
You will need the mingw cross-compiler, and all the librairies listed above. You will need the mingw cross-compiler, and all the librairies listed above.
Here are the resources used to build the Windows version: Here is a list of the resources used to build the Windows version:
4DOS 4DOS
with an alias make=mingw32-make with an alias make=mingw32-make
@ -95,6 +121,7 @@ Zlib:
http://gnuwin32.sourceforge.net/downlinks/zlib.php http://gnuwin32.sourceforge.net/downlinks/zlib.php
zlib-1.2.3.exe zlib-1.2.3.exe
Install in c:\msys\mingw Install in c:\msys\mingw
Libpng Libpng
Requires: Zlib Requires: Zlib
http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/l/li/libpng/ http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/l/li/libpng/

View File

@ -6,7 +6,7 @@ _/ _/ _/ _/ _/ _/ _/ _/ _/
GrafX2 - The Ultimate 256-color bitmap paint program GrafX2 - The Ultimate 256-color bitmap paint program
Copyright (C)1996-2001 Sunset Design (G.Dorme & K.Maritaud) Copyright (C)1996-2001 Sunset Design (G.Dorme & K.Maritaud)
Copyright (C)2007-2009 the Grafx2 Project Team (A.Destugues & Y.Rizoud) Copyright (C)2007-2010 the Grafx2 Project Team (A.Destugues & Y.Rizoud)
------------------------------------- -------------------------------------
=== ABOUT === === ABOUT ===
@ -44,6 +44,7 @@ own licenses:
- SDL_image: see doc/README-SDL_image.txt - SDL_image: see doc/README-SDL_image.txt
- SDL_ttf: see doc/README-SDL_ttf.txt - SDL_ttf: see doc/README-SDL_ttf.txt
- zlib: (on Windows) see doc/README-zlib1.txt - zlib: (on Windows) see doc/README-zlib1.txt
- Lua: see doc/README-lua.txt
The font Tuffy.ttf included as a sample in the fonts/ directory is public domain. The font Tuffy.ttf included as a sample in the fonts/ directory is public domain.
The source code of Grafx2 should always be distributed along with the The source code of Grafx2 should always be distributed along with the
@ -76,6 +77,7 @@ Sends greetings and glops to pouet.net : http://pouet.net/prod.php?which=51865
=== HISTORY === === HISTORY ===
Short revision history : Short revision history :
* ??/2010 2.2 Layers, Lua scripting
* 09/2009 2.1 GUI improvements and some new features. * 09/2009 2.1 GUI improvements and some new features.
* 06/2009 2.0 Completed the features planned by Sunset Design. * 06/2009 2.0 Completed the features planned by Sunset Design.
* 04/2009 2.0b99.0% Many new features and critical fixes. * 04/2009 2.0b99.0% Many new features and critical fixes.