FreeType 2

JustinCr123

New Member
ich habe mir die FreeType 2 Dateien von der offiziellen Seite gezogen, entpackt.
./configure ausgeführt:
Code:
lvps87-230-26-246:/opt/php-5.2.6/ext/freetype-2.3.7 # ./configure
 
FreeType build system -- automatic system detection
 
The following settings are used:
 
platform unix
compiler cc
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
 
If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.
 
Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).
 
cd builds/unix; ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for rm... rm -f
checking for rmdir... rmdir
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... //bin/grep
checking for egrep... //bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking size of int... 4
checking size of long... 4
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether munmap is declared... yes
checking for munmap's first parameter type... void *
checking for memcpy... yes
checking for memmove... yes
checking for gzsetparams in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether CFLAGS includes -isysroot option... no
checking for a sed that does not truncate output... //bin/sed
checking for fgrep... //bin/grep -F
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared li braries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating freetype-config
config.status: creating freetype2.pc
config.status: creating ftconfig.h
config.status: executing libtool commands
make: Nothing to be done for `unix'.
make ausgeführt (Rückgabe habe ich nicht mehr)

make install:
Code:
lvps87-230-26-246:/opt/php-5.2.6/ext/freetype-2.3.7 # make install
./builds/unix/mkinstalldirs /usr/local/lib \
/usr/local/lib/pkgconfig \
/usr/local/include/freetype2/freetype/config \
/usr/local/include/freetype2/freetype/cache \
/usr/local/bin \
/usr/local/share/aclocal
mkdir -p -- /usr/local/include/freetype2/freetype/cache /usr/local/bin /usr/local/share/aclocal
./builds/unix/libtool --mode=install /usr/bin/install -c \
/opt/php-5.2.6/ext/freetype-2.3.7/objs/libfreetype.la /usr/local/lib
libtool: install: /usr/bin/install -c /opt/php-5.2.6/ext/freetype-2.3.7/objs/.libs/libfreetype.so.6.3.18 /usr/local/lib/libfreetype.so.6.3.18
libtool: install: (cd /usr/local/lib && { ln -s -f libfreetype.so.6.3.18 libfreetype.so.6 || { rm -f libfreetype.so.6 && ln -s libfreetype.so.6.3.18 libfreetype.so.6; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libfreetype.so.6.3.18 libfreetype.so || { rm -f libfreetype.so && ln -s libfreetype.so.6.3.18 libfreetype.so; }; })
libtool: install: /usr/bin/install -c /opt/php-5.2.6/ext/freetype-2.3.7/objs/.libs/libfreetype.lai /usr/local/lib/libfreetype.la
libtool: install: /usr/bin/install -c /opt/php-5.2.6/ext/freetype-2.3.7/objs/.libs/libfreetype.a /usr/local/lib/libfreetype.a
libtool: install: chmod 644 /usr/local/lib/libfreetype.a
libtool: install: ranlib /usr/local/lib/libfreetype.a
libtool: finish: PATH="/home/mono/bin://sbin://bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
 
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
 
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
for P in /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/freetype.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftbbox.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftbdf.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftbitmap.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftcache.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftchapters.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftcid.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/fterrdef.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/fterrors.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftgasp.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftglyph.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftgxval.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftgzip.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftimage.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftincrem.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftlcdfil.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftlist.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftlzw.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftmac.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftmm.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftmodapi.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftmoderr.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftotval.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftoutln.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftpfr.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftrender.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftsizes.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftsnames.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftstroke.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftsynth.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftsystem.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/fttrigon.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/fttypes.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftwinfnt.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ftxf86.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/t1tables.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ttnameid.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/tttables.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/tttags.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/ttunpat.h ; do \
/usr/bin/install -c -m 644 \
$P /usr/local/include/freetype2/freetype ; \
done
for P in /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/config/ftconfig.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/config/ftheader.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/config/ftmodule.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/config/ftoption.h /opt/php-5.2.6/ext/freetype-2.3.7/include/freetype/config/ftstdlib.h /opt/php-5.2.6/ext/freetype-2.3.7/objs/ftmodule.h ; do \
/usr/bin/install -c -m 644 \
$P /usr/local/include/freetype2/freetype/config ; \
done
rm -f /usr/local/include/freetype2/freetype/cache/*
rmdir /usr/local/include/freetype2/freetype/cache
rm -f /usr/local/include/freetype2/freetype/internal/*
rmdir /usr/local/include/freetype2/freetype/internal
rmdir: `/usr/local/include/freetype2/freetype/internal': No such file or directory
make: [install] Error 1 (ignored)
/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
/usr/local/include/ft2build.h
/usr/bin/install -c -m 644 ./builds/unix/ftconfig.h \
/usr/local/include/freetype2/freetype/config/ftconfig.h
/usr/bin/install -c -m 644 /opt/php-5.2.6/ext/freetype-2.3.7/objs/ftmodule.h \
/usr/local/include/freetype2/freetype/config/ftmodule.h
/usr/bin/install -c -m 755 ./builds/unix/freetype-config \
/usr/local/bin/freetype-config
/usr/bin/install -c -m 644 ./builds/unix/freetype2.m4 \
/usr/local/share/aclocal/freetype2.m4
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
/usr/local/lib/pkgconfig/freetype2.pc

Nun weiß ich allerdings nicht, was ich tun soll... -.-*
Ich habe die im lib ordner der freetype installation enthaltene libfreetype.so auch in php als extension eingefügt (extension=libfreetype.so in der php.ini)
aber egal, was ich mache, die extension scheint nicht zur Verfügung zu stehen...

(in der phpinfo steht nichts derartiges und die Funktion imagettfbbox() ist auch nicht existent)
Hoffe ihr könnt mir weiterhelfen
Danke ;)
 
Last edited by a moderator:
Hat ncih irgendjemand ne Idee, wie ich FreeType 2 installieren kann...

Falls ich es überhaupt brauche...
Habe eine eigen kompilierte PHP-Installation mit der GD-Bibliothek (auch selbst kompiliert...)
Und ich möchte nur die Funktion imagettfbbox(...) benutzen...

Auf php.net steht, ich brauche dafür die GD- und FreeType-Bibliothek...

Aber ich bekomme es leider als net hin die FreeType Bibliothek zu installieren, sodass sie funktioniert :(
 
Back
Top