|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Has anyone successfully used FreeType PHP commands like imagettftext() or imagefttext() on an OpenBSD system? If so, what is your configuration (i.e., which versions of PHP, gd, and FreeType are you using?)
I've set up my /usr/ports/www/php4/core/Makefile to include gd and FreeType, and it installs successfully, giving the following in my phpinfo(): gd -------------------------- GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with freetype JPG Support enabled PNG Support enabled WBMP Support enabled But I still get "Call to undefined function" errors whenever I try to use the FreeType PHP functions. Help! [For my Makefile, see my posts to comp.unix.bsd.openbsd.misc.] |
|
#2
|
||||
|
||||
|
Is it possible that it can't load the freetype lib (say because your httpd is running chrooted -- OpenBSD default is to chroot it).
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#3
|
|||
|
|||
|
That's a theory I haven't heard before. What would be the workaround?
|
|
#4
|
||||
|
||||
|
Set httpd_flags=-u in /etc/rc.conf to disable the chroot. IIRC the httpd daemon was chrooted by default since OpenBSD 3.2. If the freetype lib functions start to work, then you have a good idea where the problem is.
If this is the cause of the problem, you can either run it un-chrooted, or move the libs within the chrooted directory tree. See the notes in http://www.openbsd.org/cgi-bin/man....386&format=html for ideas [edit] Also see http://www.openbsd.org/faq/faq10.html#httpdchroot for more notes[/edit]Hope this helps ![]() Last edited by Scorpions4ever : October 26th, 2003 at 12:05 PM. |
|
#5
|
|||
|
|||
|
Got Freetype 2 working using the ports by Jeff Bachtel, found here:
http://www.cepheid.org/openbsd/ Thanks, Jeff. Golden star for you! |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > OpenBSD, PHP + gd + FreeType |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|