Trying to install ming for use with PHP
Heya all!
I have Suse 9.1 with PHP 4.3.7/Apache2 installed.
My php build looks like this:
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-exif' '--with-gd' '--with-jpeg' '--with-jpeg-dir=/usr/local/lib' '--with-tiff-dir=/usr/lib' '--with-png-dir=/usr/lib' '--enable-track-vars' '--with-xml' '--with-zlib-dir=/usr/local/lib' '--with-mhash' '--with-iconv' '--with-ttf' '--with-freetype' '--with-freetype-dir=/usr/lib' '--with-ming-dir=/usr/lib' '--enable-ming'
I know there is some bogus stuff in it but at least the ./configure ran smoothly without giving me any errors.
the problem is, that I cannot get ming to work with php.
I downloaded the latest ditribution at sourceforge.net and trying to install it via make/make install. It exists with the following:
*********************************
make install
install -d /usr/lib
install -d /usr/include
install -m 0644 src/ming.h /usr/include
install -m 0644 src/ming_config.h /usr/include
install -m 0644 mingpp.h /usr/include
make -C src dynamic
make[1]: Entering directory `/tmp/ming/ming-0.3beta1/src'
cd blocks && make
make[2]: Entering directory `/tmp/ming/ming-0.3beta1/src/blocks'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/ming/ming-0.3beta1/src/blocks'
cd actioncompiler && make
make[2]: Entering directory `/tmp/ming/ming-0.3beta1/src/actioncompiler'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/ming/ming-0.3beta1/src/actioncompiler'
gcc -O2 -Wall -I. blocklist.o displaylist.o fill.o font_util.o ming.o movie.o movieclip.o position.o shape_cubic.o shape_util.o text_util.o actioncompiler/compile.o actioncompiler/swf4compiler.tab.o actioncompiler/lex.swf4.o actioncompiler/swf5compiler.tab.o actioncompiler/lex.swf5.o actioncompiler/compileaction.o actioncompiler/assembler.o -lm -lz -lz -lungif -lpng12 blocks/*.o -shared -o libming.so
cp libming.so ..
make[1]: Leaving directory `/tmp/ming/ming-0.3beta1/src'
install -m 0644 libming.so.0.3beta1 /usr/lib/
install: cannot stat `libming.so.0.3beta1': No such file or directory
make: *** [install-dynamic] Error 1
********************************
then I installed the rpm-packages (ming and libming) succesfully using Webmin but when I try to build php again it tells me that libming.(a|so) could not be found and that I should reinstall ming again, which doesn't work as written above.
What am I doing wrong?
when I do a "find / -name *ming*" on the shell I get these results among others:
****************
/usr/lib/libming.so.0
/usr/lib/libming.so.0.2
/usr/lib/libming.so.0.3
****************
so the directive --with-ming=/usr/lib when building the php conf should work, or am I totally wrong? well.... indeed, it doesn't work...
any ideas? I'm quite desperate right now as I really would like to use the SWF-Functions within PHP.
Thanks in advance!
Bernhard
|