[CHG] Updated the readme file (FreeType support)

This commit is contained in:
Crayon2000 2010-01-04 16:56:52 +00:00
parent 5deb38d502
commit ef709a23b7

View file

@ -47,9 +47,10 @@ or a text editor.
As of v4.1.0, GRRLIB is supplied as a standard C/C++ library (aka. archive) As of v4.1.0, GRRLIB is supplied as a standard C/C++ library (aka. archive)
called 'libgrrlib'. Because GRRLIB processes JPEG and PNG images, it requires called 'libgrrlib'. Because GRRLIB processes JPEG and PNG images, it requires
the installation of the 'libjpeg' and 'libpngu' libraries. 'libpngu', in turn, the installation of the 'libjpeg' and 'libpngu' libraries. 'libpngu', in turn,
requires 'libpng' and 'libpng' requires 'libz'. GRRLIB also has FileIO requires 'libpng' and 'libpng' requires 'libz'. GRRLIB has FileIO functions
functions to allow real-time loading and saving of graphical data, and thus also to allow real-time loading and saving of graphical data, and thus requires
requires 'libfat'. 'libfat'. GRRLIB also has the possibility to use TrueType fonts, so
'libfreetype' is also required.
libgrrlib <- 2D/3D graphics library libgrrlib <- 2D/3D graphics library
+-- libfat <- File I/O +-- libfat <- File I/O
@ -57,7 +58,7 @@ libgrrlib <- 2D/3D graphics library
+-- libpngu <- Wii wrapper for libpng +-- libpngu <- Wii wrapper for libpng
+-- libpng <- PNG image processor +-- libpng <- PNG image processor
+-- libz <- Zip (lossless) compression (for PNG compression) +-- libz <- Zip (lossless) compression (for PNG compression)
+-- libfreetype <- TrueType Font processor +-- libfreetype <- TrueType font processor
Developing for the Wii Developing for the Wii
@ -93,12 +94,12 @@ Note: Discussion is underway for 'libpng' and 'libjpeg' to be included with
This guide is for Windows. If you are using Linux, I am going to presume you This guide is for Windows. If you are using Linux, I am going to presume you
are smart enough to convert these instructions. are smart enough to convert these instructions.
GRRLIB is supplied as source code. GRRLIB is supplied as source code.
libjpeg is supplied as a precompiled library *1 libjpeg is supplied as a precompiled library *1
libpngu is supplied as source code libpngu is supplied as source code
libpng is supplied as a precompiled library libpng is supplied as a precompiled library
libz is supplied with devkitpro (Ie. preinstalled) libz is supplied with devkitpro (Ie. preinstalled)
libfat is supplied with devkitpro (Ie. preinstalled) libfat is supplied with devkitpro (Ie. preinstalled)
libfreetype is supplied as a precompiled library libfreetype is supplied as a precompiled library
*1 The version of libjpeg supplied with GRRLIB v4.2.0 contains bug fixes not *1 The version of libjpeg supplied with GRRLIB v4.2.0 contains bug fixes not
@ -120,13 +121,19 @@ Next up the list is libpngu *2
cd \grr\trunk\GRRLIB\lib\pngu cd \grr\trunk\GRRLIB\lib\pngu
make clean all install make clean all install
To install libfreetype *2
c:
cd \grr\trunk\GRRLIB\lib\freetype
make install
Next up the list is libjpeg *2 *3 Next up the list is libjpeg *2 *3
c: c:
cd \grr\trunk\GRRLIB\lib\jpeg cd \grr\trunk\GRRLIB\lib\jpeg
make install make install
*2 A Windows batch-file and a Linux shell-script are included which will *2 A Windows batch-file and a Linux shell-script are included which will
install the libpng, libpngu and libjpeg libraries in a single command: install the libpng, libpngu, libjpeg and libfreetype libraries in a single
command:
c: c:
cd \grr\trunk\GRRLIB\lib cd \grr\trunk\GRRLIB\lib
install <- If you are using Linux, type `./install.sh` instead install <- If you are using Linux, type `./install.sh` instead
@ -149,7 +156,7 @@ After everything is installed, simply put
at the top of your .c/.cpp file and use the functions as required at the top of your .c/.cpp file and use the functions as required
You will also need to add You will also need to add
-lgrrlib -lfat -ljpeg -lpngu -lpng -lz -lgrrlib -lfreetype -lfat -ljpeg -lpngu -lpng -lz
to the libs line in your makefile to the libs line in your makefile
...Remember the order of the libraries is critical. You may (need to) insert ...Remember the order of the libraries is critical. You may (need to) insert
other libraries in the middle of the list, you may need to add others to the other libraries in the middle of the list, you may need to add others to the