Cannot instantiate non-existent class: swfshape

Lord Hasenpfeffer <[email protected]> Tue, 21 Oct 2003 21:35:22 -0500
Newsgroups gmane.comp.web.ming.general
Message-ID <[email protected]>
Hello,

I'm new to ming and am attempting to use it with PHP 4.1.2 on a Red Hat 
Linux 7.2 box here at my home.

Installation instructions looked easy enough in print but always ended 
in errors no matter what I tried.

untar the archive ... did that.
enter the directory ... did that.
make ... did that.
make install ... did that.
make static ... did that.
cd php_ext ... did that.
make - did that, but ming.c was not found.
... thought a little bit ...
cp ming-4.0.7.c ming.c ... tried that.
make ... looked like it was going to work but then failed.
cp ming-4.0.6.c ming.c ... tried that.
make ... looked like it was going to work but then failed.
give up and start over ... did that.  Same results.
give up and start over again ... did that.  Same results.
give up and start over a third time ... did that.

This time, however, I completely ignored the php_ext directory and all 
that it contains since it refuses to compile.

Instead I found that just "make; make install" in php_ext's parent 
directory is all that was required to create libming.so.

cp /usr/lib ... did that.
mv libming.so* php4 ... did that.
add "extension=libming.so" to /etc/php.ini ... did that.
stop and restart Apache ... did that.

<?php

     $s = new SWFShape();
     $s->setLine(20, 0xff, 0, 0);
     $s->drawLineTo(400, 0);
     $s->drawLineTo(400, 400);
     $s->drawLineTo(0, 400);
     $s->drawLineTo(0, 0);

?>

Fatal error: Cannot instantiate non-existent class: swfshape in 
/var/www/html/ming-test-1.php on line 3

What have I got to do to make this stupid thing work?

What is the stuff in "php_ext" good for?

Myke

-- 

-================================-
  Windows...It's rebootylicious!!!
-================================-