Issues

Issue #117 new

freetype include path not set correctly, causes build to fail on openSUSE (fix included in description)

Damien Radtke
created an issue

The plan9port source fails to build on openSUSE 12.2 due to a "freetype/config/ftheader.h: no such file or directory" error. My fix is to change src/cmd/fontsrv/freetyperules.sh from

#!/bin/sh

if [ "x$1" = "xx11" ]; then
    if [ "x$2" = "x" ]; then
        i=/usr/include
    else
        i=$2
    fi
    echo 'CFLAGS=$CFLAGS '$i'/freetype2'
    echo 'LDFLAGS=$LDFLAGS -lfontconfig -lfreetype -lz'
fi

to

#!/bin/sh

if [ "x$1" = "xx11" ]; then
    if [ "x$2" = "x" ]; then
        i=/usr/include
    else
        i=$2
    fi
    echo 'CFLAGS=$CFLAGS -I'$i'/freetype2'
    echo 'LDFLAGS=$LDFLAGS -lfontconfig -lfreetype -lz'
fi

Note the -I in the CFLAGS line. I'm not sure why it wasn't there in the first place, but explicitly setting that directory as an include directory fixes the build.

This is with the latest plan9port-20121219.

Comments (0)

  1. Log in to comment