Just install the default libfreetype6-dev, and libfreetype6:i386, next make a link for the library.
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/i386-linux-gnu/libfreetype.so
For unknown reason in one of my PCs I had a problem when the configure told an error in libfreetype6, but it actually was libz and libpng. Either way, you can solve the problem the same way
sudo apt-get install libpng12-0-dev libpng12-0:i386 zlib1g-dev zlib1g:i386
sudo ln -s /usr/lib/i386-linux-gnu/libpng12.so.0 /usr/lib/i386-linux-gnu/libpng12.so
sudo ln -s /usr/lib/i386-linux-gnu/libz.so.1.2.8 /usr/lib/i386-linux-gnu/libz.so
A general way to solve alike problems: open the config.log
file, goto the end, and search in the upper direction a word error
. You will find a code that have been used to test a presence of a library or headers. Just copy the main function with includes into a separate file; next seek above the code the command that was used to compile. It would look something like
gcc -m32 -o conftest -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 conftest.c >&5
Remove the >&5
part, write instead of conftest.c
name of your test file (to which you just copied the code), and try to compile with this command — you will see a much more useful error messages. That is basically the minimal test case, and once it is solved, the problem solved too.
Tips for possible errors:
- Missing headers — just go to packages.ubuntu.com, and search for the header name to find a package you're missing
- Missing libraries — install the library with
-dev
postfix, then if it didn't work, with :i386
. If it didn't work again like in the case of the libfreetype, then go with the solution that written above — i.e. make symbolic links by hand.