AFP548 Changing the world one server at a time.

Masochism defined: Building ImageMagick from source with FreeType 2.0

Home › Forums › OS X Server and Client Discussion › Web › Masochism defined: Building ImageMagick from source with FreeType 2.0

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #366323
    Bill Eccles
    Participant

    Presented for your edification, education, satisfaction and, if Google does its job well, for future generations as well:
    I am a masochist indeed! Instead of using fink or some other nifty package installer, I built ImageMagick with FreeType 2.0 from source on OSXS 10.4.6. That’s right! You heard me!
    And the pain feels soooooo good.
    ./configure works pretty normally for the most part. It gets most things right, but in the process of trying to do a test build with FreeType, config.log shows that the various freetype header files look for other files with relative paths which configure doesn’t set up.
    Long story short, I Googled and found someone who suggested linking various libraries together, but that didn’t work out of the box for me. What I saw in the log was, invariably, something that looked like this:

    configure:42439: checking ft2build.h usability
    configure:42451: gcc -c -g -O2 -Wall    conftest.c >&5
    In file included from conftest.c:215:
    /usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

    Looking into ft2build.h (which is only one of the problem files), I discovered that it indeed is looking for another header file that it references with a relative path. I never managed to invoke configure with anything that supplied that path, so I decided to take the brute force approach and replace all of the relative paths with absolute paths.
    Ugh. After one change, I realized that I wasn’t into that much pain.
    So I sprinkled links around until I found the right one, shown below:

    sudo ln -s /usr/X11R6/include/freetype2/freetype /usr/local/include/freetype

    And, with that, ./configure returns

    FreeType          --with-freetype=yes           yes

    w00t!
    /Bill

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.