Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't compile wine on 64 bit ubuntu

Tags:

ubuntu

wine

I have been trying to compile wine on Ubuntu 14.04 64-bit and I can't for the life of me figure out what package dependency I'm missing here. I followed along with the guide on winehq and was able to complete it fine... however now I'm trying to compile a patched version of wine so I can run starcraft 2 with better performance. When I run ./configure i get the following error

checking for freetype/freetype.h... no
checking for freetype/ftglyph.h... no
checking for freetype/fttypes.h... no
checking for freetype/tttables.h... no
checking for freetype/ftsnames.h... no
checking for freetype/ttnameid.h... no
checking for freetype/ftoutln.h... no
checking for freetype/ftwinfnt.h... no
checking for freetype/ftmodapi.h... no
checking for freetype/ftlcdfil.h... no
checking for FT_TrueTypeEngineType... no
configure: error: FreeType 32-bit development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.

I've tried installing libfreetype6-dev:i386 and libfreetype6:i386 and many other variations but always get the same error message after ./configure . any ideas?

like image 609
Jordan Camp Avatar asked Nov 22 '14 16:11

Jordan Camp


2 Answers

libfreetype6-dev is the package that I needed. The issue is that this package installs the header files needed for the compilation in /usr/include/freetype2 but the configure script is looking for the headers in /usr/include/freetype . So the solution I found was to add a symbolic link in /usr/include that points to /usr/include/freetype2 that is called freetype. This can be done in the terminal like this.

sudo ln -s /usr/include/freetype2 /usr/include/freetype
like image 195
Jordan Camp Avatar answered Nov 09 '22 10:11

Jordan Camp


I was trying to build wine64 for a Ubuntu Liunx AMI/Docker container, and I was getting this error. I found that I needed to install pkgconfig

sudo apt install -y pkgconf

Wine uses pkgconf to search for the Freetype library directories, and so couldn't find Freetype without it.

Of course you need the freetype development libraries installed as well

sudo apt install -y libfreetype-dev
like image 1
Under4Mhz Avatar answered Nov 09 '22 08:11

Under4Mhz