Building freetype2 (cross-compiling for i686-elf)
Posted: Wed Sep 03, 2014 4:26 am
Hey guys,
as I've noticed that some of you have issues building freetype2 for their userspace, I'd like to open this thread for finding solutions/discussing.
This is how I built it, maybe you'll find differences to how you did it and can solve the problems yourself.
- my environment for this build was cygwin
- using a OS specific toolchain
- building freetype 2.5.3 (get the .tar.gz)
To build freetype2, all you really need to do is:
Now the library is installed to the prefix folder and can be used from there.
Notes:
- you should really use tar to untar the tarball, as the archive is a little weird and other programs produce stuff that just wont work
- the only thing freetype depends on is a working C library, I strongly suggest building a toolchain specific for your OS (it will make your life soo much easier)
So, post your problems and maybe we'll find a solution
Pic: my first .ttf file loaded in my UI, well I could use some alpha in my rendering
Greets, Max
as I've noticed that some of you have issues building freetype2 for their userspace, I'd like to open this thread for finding solutions/discussing.
This is how I built it, maybe you'll find differences to how you did it and can solve the problems yourself.
- my environment for this build was cygwin
- using a OS specific toolchain
- building freetype 2.5.3 (get the .tar.gz)
To build freetype2, all you really need to do is:
Code: Select all
tar -xf freetype-2.5.3.tar.gz
mkdir build-freetype
cd build-freetype
export PREFIX=/your/preferred/path
# insert your toolchain variables here
export CC=i686-ghost-gcc
export CXX=i686-ghost-g++
export LD=i686-ghost-ld
export CPP=i686-ghost-cpp
export AR=i686-ghost-ar
export AS=i686-ghost-as
../freetype-2.5.3/configure --host=i686-elf --without-zlib --with-png=no --prefix=$PREFIX
make all
make install
Notes:
- you should really use tar to untar the tarball, as the archive is a little weird and other programs produce stuff that just wont work
- the only thing freetype depends on is a working C library, I strongly suggest building a toolchain specific for your OS (it will make your life soo much easier)
So, post your problems and maybe we'll find a solution
Pic: my first .ttf file loaded in my UI, well I could use some alpha in my rendering
Greets, Max