Re: Compilation failure
David Marceau <[email protected]> Tue, 20 Jan 2004 10:31:47 -0500
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Piotr Kopszak wrote: >=20 > Dnia Mon, Jan 19, 2004 at 10:36:19AM -0500, Pan(i) David Marceau by=C5,= (a) =C5,askaw(a) napisa=C4?: > > pngdbl.c:7:17: png.h: No such file or directory > > pngdbl.c:17: error: parse error before "png_uint_32" > > pngdbl.c:17: warning: no semicolon at end of struct or union > > > > Let's start with this first error. > > > > The fact it doesn't recognize the png.h that's because you didn't inc= lude it > > make file. > > First find out if you have installed libpng.a/.so and png stuff. > > find / -name "png.h" -print >=20 > Yes, that solved the problem. I added the include path to "png.h" in > Rules.make. I mean compilation went OK. But what I really want is perl > ming so I did what is recommended in perl_ext/README and that did not > work at all. Sorry to bother you again. Actually I am a bit confounded. > Will "make install" really install everything for me or do I have to > do anything else in order to use libming from perl scripts? Or do I > have to add the path to SWF.pm manually to my @INC path? I was using > libpng version 1.0.15. Does it make difference? First off, check to see if your c libs are in order by testing the c prog= rams in the ming-examples/c directory. If you manage to create a .swf and display it correctly from here. =20 That confirms ming has everything in place to build a perl front end that= will work. Usually the perl configurations go something like: perl Makefile.PL make make test And only if everything is in order make install Try this and let the mailing list know. =20 Please remember I try to do everything just in C and not in perl/php. =20 Different strokes for different folks ;) Nazdrovia, David Marceau