Freetype2 question

tino

Verified User
Joined
Jan 8, 2004
Messages
92
Hi,

I need to recompile PHP with these extra options;
--with-ttf --with-freetype-dir --enable-gd-native-ttf

Although Freetype2 is installed (a rpm -aq|grep freetype lists freetype-2.1.3-6) I cannot get the configure script to work.

Does anyone know the correct location of FT2?

I think the problem is the --with-freetype-dir=/usr/local/lib
I cannot find the FT2 libraries....

Tino
 
Hey,

RH 9 shows this:

# locate freetype
/usr/lib/libfreetype.so.6
/usr/lib/libfreetype.so.6.3.2

The top one is a link to the bottom one.

David
 
Yeah,

But when I add the --with-freetype-dir=/usr/lib and run the ./build php I get this error:

configure: error: freetype2 not found!

Interesting; the line above the error reads:
If configure fails try --with-xpm-dir=<DIR>

I tried to add that line, but the configure fails with another error.

Any ideas left?

Tino
 
Hey,

Try it with this:

--with-freetype-dir=/usr/lib/

Notice the trailing slash.

David
 
Solved.

It was a wild guess, but it worked.

Through rpmfind.net I downloaded and installed the freetype-devel corresponding to my freetype installed rpm.

That was all... Djeez...

You can shoot me now...

Tino
 
Back
Top