Skip to content

Latest commit

 

History

History
94 lines (76 loc) · 2.32 KB

INSTALL-git.md

File metadata and controls

94 lines (76 loc) · 2.32 KB

Installing FontForge

  1. Dependencies

Note that you should have build tools, build dependencies and runtime dependencies installed. The exact method to do this depends on your OS.

On Ubuntu, for example, you should get:

sudo apt-get install packaging-dev pkg-config python-dev libpango1.0-dev libglib2.0-dev libxml2-dev giflib-dbg libjpeg-dev libtiff-dev uthash-dev
libspiro-dev
  1. Installing

To install from a git checkout:

./bootstrap
./configure
make
[sudo] make install

Note: you can see the build dependencies in the debian/control file (or you can run sudo ./debian/deb-build-dep if you have aptitude to automate this).

  1. Linking

If after installation, running fontforge gives you some "*.so cannot open shared object file" style errors, you might have to run this as well:

sudo ldconfig
  1. Common Mac OS issues

  • Problems with Python, run ./configure line like this (paths may vary):
PYTHON_CFLAGS="-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" \
PYTHON_LIBS="-L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" \
./configure \
--disable-programs \
--disable-native-scripting \
--without-x \
--without-cairo \
--without-giflib \
--without-libjpeg \
--without-libtiff \
--without-libpng \
--without-libspiro \
--without-libuninameslist \
--without-libunicodenames \
--without-iconv \
--without-libzmq \
--without-libreadline \
--enable-python-scripting \
--enable-python-extension

PYTHON_CFLAGS="/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/" PYTHON_LIBS="/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/" ./configure
  • Problems with lack of libs (homebrew needed for this code):
brew install autoconf
brew install automake
brew install glib
  • Make command replies no such file or directory msgfmt (homebrew needed for this code):
brew install gettext

Edit then your .bash_profile or .zprofile (if you use zsh) and add:

export PATH=${PATH}:/usr/local/opt/gettext/bin
  • You can't find the built FontForge app (paths may vary):
mv /usr/local/share/fontforge/osx/FontForge.app /Applications