Re: Compilation failure
David Marceau <[email protected]> Mon, 19 Jan 2004 10:36:19 -0500
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
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 include it
make file.
First find out if you have installed libpng.a/.so and png stuff.
find / -name "png.h" -print
Once you find out where it is,
in your gcc command line:
gcc -I/yourpngincludepathhere lkj.c lkjs.c -L/yourpnglibpathhere -lpng
That's it.
You're also going to have to do it with
export PATH=$PATH:/home/david/gcc31tars/gcc-3.1/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/david/gcc31tars/gcc-3.1/lib
gcc -I ../../ming-0.2a/ -L ../../ming-0.2a/ astral.c -lming -lm
a
In my makefile I have this:
CC = gcc -g -Wall -I /home/david/devstuff/flashstuff/ming-0.3a/ming/ -L
/home/david/devstuff/flashstuff/ming-0.3a/ming/
makefdb: blocktypes.o makefdb.c read.o
${CC} makefdb.c read.o blocktypes.o -o makefdb -lming -lm -lz -lungif -lpng
gif2mask: gif2mask.c
${CC} gif2mask.c -o gif2mask -lungif -lm -lz
Notice png ungif and the rest aren't in the -I and -L switches that's because
they are in the default include and lib directories for my linux box. Depending
on what version of linux they get install in few different places:
/usr/include
/usr/lib
/usr/share/sdfslfkj/include
/usr/share/sdflkj/lib
/usr/local/include
/usr/local/lib
It just depends on your machine.
one more thing. Read up on ldconfig and ldd. They are helpful also but I
personal prefer LD_LIBRARY_PATH because the libs are only for the process you
are in. I don't want to make this stuff global for every process. You can
though.
When you're doing this make a note of the following in order for everybody else
here:
1)what's your os and version
2)what your compiler and version
3)mods you made to the makefile and the rest of the ming cvs source tree. There
are ways to diff an entire tree and send the results to a text file which can be
applied to ming cvs later by the authors.
If your source tree was checked out of CVS,
cvs diff -u >my.unified.diff.patch
will create the patch in the correct format.
Here is a demonstration of what I mean:
pwd
/root/craptest/mingtest
cvs -d:pserver:[email protected]:/cvsroot/ming login
Logging in to :pserver:[email protected]:2401/cvsroot/ming
CVS password:
cvs -z3 -d:pserver:[email protected]:/cvsroot/ming co ming
cvs server: Updating ming
U ming/.cvsignore
U ming/CREDITS
U ming/ChangeLog
U ming/HISTORY
U ming/INSTALL
U ming/LICENSE
U ming/Makefile
U ming/Makefile.am
U ming/README
U ming/Rules.make
U ming/TODO
U ming/autogen.sh
U ming/config.make
U ming/configure.in
U ming/ming.i
U ming/mingpp.h
cvs server: Updating ming/c++_ext
U ming/c++_ext/.cvsignore
U ming/c++_ext/Makefile
U ming/c++_ext/README
U ming/c++_ext/test.cpp
cvs server: Updating ming/java_ext
U ming/java_ext/Makefile
U ming/java_ext/README
U ming/java_ext/SWFAction.java
U ming/java_ext/SWFActionI.java
U ming/java_ext/SWFBitmap.java
U ming/java_ext/SWFBitmapI.java
U ming/java_ext/SWFButton.java
U ming/java_ext/SWFButtonI.java
U ming/java_ext/SWFColor.java
U ming/java_ext/SWFDimensionableI.java
U ming/java_ext/SWFDisplayItem.java
U ming/java_ext/SWFDisplayItemI.java
U ming/java_ext/SWFException.java
U ming/java_ext/SWFFill.java
U ming/java_ext/SWFFillI.java
U ming/java_ext/SWFFont.java
U ming/java_ext/SWFFontI.java
U ming/java_ext/SWFGradient.java
U ming/java_ext/SWFGradientI.java
U ming/java_ext/SWFMatrix.java
U ming/java_ext/SWFMorph.java
U ming/java_ext/SWFMorphI.java
U ming/java_ext/SWFMovie.java
U ming/java_ext/SWFMovieClip.java
U ming/java_ext/SWFMovieClipI.java
U ming/java_ext/SWFMovieI.java
U ming/java_ext/SWFObject.java
U ming/java_ext/SWFObjectI.java
U ming/java_ext/SWFShape.java
U ming/java_ext/SWFShapeI.java
U ming/java_ext/SWFSound.java
U ming/java_ext/SWFSoundI.java
U ming/java_ext/SWFText.java
U ming/java_ext/SWFTextField.java
U ming/java_ext/SWFTextFieldI.java
U ming/java_ext/SWFTextI.java
cvs server: Updating ming/java_ext/Tests
U ming/java_ext/Tests/Simple.java
U ming/java_ext/Tests/SlideShow.java
cvs server: Updating ming/java_ext/native
U ming/java_ext/native/Makefile
U ming/java_ext/native/SWFAction.h
U ming/java_ext/native/SWFBitmap.h
U ming/java_ext/native/SWFButton.h
U ming/java_ext/native/SWFDisplayItem.h
U ming/java_ext/native/SWFFill.h
U ming/java_ext/native/SWFFont.h
U ming/java_ext/native/SWFGradient.h
U ming/java_ext/native/SWFMorph.h
U ming/java_ext/native/SWFMovie.h
U ming/java_ext/native/SWFMovieClip.h
U ming/java_ext/native/SWFNative.cc
U ming/java_ext/native/SWFNative.h
U ming/java_ext/native/SWFShape.h
U ming/java_ext/native/SWFSound.h
U ming/java_ext/native/SWFText.h
U ming/java_ext/native/SWFTextField.h
U ming/java_ext/native/SWFUtilities.h
cvs server: Updating ming/perl_ext
U ming/perl_ext/.cvsignore
U ming/perl_ext/Action.xs
U ming/perl_ext/Bitmap.xs
U ming/perl_ext/Button.xs
U ming/perl_ext/CREDITS
U ming/perl_ext/Changes
U ming/perl_ext/Constants.xs
U ming/perl_ext/DisplayItem.xs
U ming/perl_ext/Exports.c
U ming/perl_ext/Fill.xs
U ming/perl_ext/Font.xs
U ming/perl_ext/Gradient.xs
U ming/perl_ext/MANIFEST
U ming/perl_ext/Makefile.PL
U ming/perl_ext/Morph.xs
U ming/perl_ext/Movie.xs
U ming/perl_ext/MovieClip.xs
U ming/perl_ext/README
U ming/perl_ext/SUPPORT
U ming/perl_ext/SWF.pm
U ming/perl_ext/SWF.xs
U ming/perl_ext/Shape.xs
U ming/perl_ext/Sound.xs
U ming/perl_ext/SoundInstance.xs
U ming/perl_ext/SoundStream.xs
U ming/perl_ext/TODO
U ming/perl_ext/Text.xs
U ming/perl_ext/TextField.xs
U ming/perl_ext/VideoStream.xs
U ming/perl_ext/perl_swf.h
U ming/perl_ext/swf_util.c
U ming/perl_ext/typemap
cvs server: Updating ming/perl_ext/SWF
U ming/perl_ext/SWF/.cvsignore
U ming/perl_ext/SWF/Action.pm
U ming/perl_ext/SWF/Bitmap.pm
U ming/perl_ext/SWF/Button.pm
U ming/perl_ext/SWF/Constants.pm
U ming/perl_ext/SWF/DisplayItem.pm
U ming/perl_ext/SWF/Fill.pm
U ming/perl_ext/SWF/Font.pm
U ming/perl_ext/SWF/Gradient.pm
U ming/perl_ext/SWF/Morph.pm
U ming/perl_ext/SWF/Movie.pm
U ming/perl_ext/SWF/Shape.pm
U ming/perl_ext/SWF/Sound.pm
U ming/perl_ext/SWF/SoundInstance.pm
U ming/perl_ext/SWF/SoundStream.pm
U ming/perl_ext/SWF/Sprite.pm
U ming/perl_ext/SWF/Text.pm
U ming/perl_ext/SWF/TextField.pm
cvs server: Updating ming/perl_ext/examples
U ming/perl_ext/examples/action.cgi
U ming/perl_ext/examples/alphafill.cgi
U ming/perl_ext/examples/animation.cgi
U ming/perl_ext/examples/glyph.cgi
U ming/perl_ext/examples/jpegfill.cgi
U ming/perl_ext/examples/keypress.cgi
U ming/perl_ext/examples/morph.cgi
U ming/perl_ext/examples/shape.cgi
U ming/perl_ext/examples/sprite.cgi
U ming/perl_ext/examples/text.cgi
cvs server: Updating ming/perl_ext/t
U ming/perl_ext/t/.cvsignore
U ming/perl_ext/t/00_basic.t
U ming/perl_ext/t/01_shape.t
U ming/perl_ext/t/03_movie.t
U ming/perl_ext/t/button.t
U ming/perl_ext/t/drag.t
U ming/perl_ext/t/fill.t
U ming/perl_ext/t/filljpeg.t
U ming/perl_ext/t/gradient.t
U ming/perl_ext/t/png.t
U ming/perl_ext/t/sound.t
U ming/perl_ext/t/sprite.t
cvs server: Updating ming/php_ext
U ming/php_ext/.cvsignore
U ming/php_ext/Makefile
U ming/php_ext/Makefile.in
U ming/php_ext/README
U ming/php_ext/config.m4
U ming/php_ext/make_module.sh
U ming/php_ext/ming-dev.c
U ming/php_ext/ming-streams.c
U ming/php_ext/ming.c
U ming/php_ext/ming.dsp
U ming/php_ext/php_ming.h
cvs server: Updating ming/py_ext
U ming/py_ext/.cvsignore
U ming/py_ext/INSTALL
U ming/py_ext/Makefile
U ming/py_ext/README
U ming/py_ext/TODO
U ming/py_ext/ming.py
U ming/py_ext/mingc.def
U ming/py_ext/shape.py
U ming/py_ext/test.py
cvs server: Updating ming/rb_ext
U ming/rb_ext/.cvsignore
U ming/rb_ext/README
U ming/rb_ext/depend
U ming/rb_ext/extconf.rb
U ming/rb_ext/ming.rb
U ming/rb_ext/shape.rb
U ming/rb_ext/test.rb
cvs server: Updating ming/src
U ming/src/.cvsignore
U ming/src/Makefile
U ming/src/Makefile.am
U ming/src/blocklist.c
U ming/src/blocklist.h
U ming/src/blocktypes.h
U ming/src/displaylist.c
U ming/src/displaylist.h
U ming/src/fill.c
U ming/src/fill.h
U ming/src/font_util.c
U ming/src/font_util.h
U ming/src/libming.h
U ming/src/ming.c
U ming/src/ming.h
U ming/src/ming_config.h
U ming/src/movie.c
U ming/src/movie.h
U ming/src/movieclip.c
U ming/src/movieclip.h
U ming/src/position.c
U ming/src/position.h
U ming/src/shape_cubic.c
U ming/src/shape_cubic.h
U ming/src/shape_util.c
U ming/src/shape_util.h
U ming/src/test.c
U ming/src/text_util.c
U ming/src/text_util.h
cvs server: Updating ming/src/actioncompiler
U ming/src/actioncompiler/.cvsignore
U ming/src/actioncompiler/Makefile
U ming/src/actioncompiler/Makefile.am
U ming/src/actioncompiler/action.h
U ming/src/actioncompiler/assembler.c
U ming/src/actioncompiler/assembler.h
U ming/src/actioncompiler/compile.c
U ming/src/actioncompiler/compile.h
U ming/src/actioncompiler/compileaction.c
U ming/src/actioncompiler/listaction.c
U ming/src/actioncompiler/main.c
U ming/src/actioncompiler/swf4compiler.flex
U ming/src/actioncompiler/swf4compiler.y
U ming/src/actioncompiler/swf5compiler.flex
U ming/src/actioncompiler/swf5compiler.y
cvs server: Updating ming/src/blocks
U ming/src/blocks/.cvsignore
U ming/src/blocks/Makefile
U ming/src/blocks/Makefile.am
U ming/src/blocks/action.c
U ming/src/blocks/action.h
U ming/src/blocks/bitmap.c
U ming/src/blocks/bitmap.h
U ming/src/blocks/block.c
U ming/src/blocks/block.h
U ming/src/blocks/blocktypes.h
U ming/src/blocks/browserfont.c
U ming/src/blocks/browserfont.h
U ming/src/blocks/button.c
U ming/src/blocks/button.h
U ming/src/blocks/character.c
U ming/src/blocks/character.h
U ming/src/blocks/cxform.c
U ming/src/blocks/cxform.h
U ming/src/blocks/dbl.c
U ming/src/blocks/dbl.h
U ming/src/blocks/error.c
U ming/src/blocks/error.h
U ming/src/blocks/exports.h
U ming/src/blocks/fillstyle.c
U ming/src/blocks/fillstyle.h
U ming/src/blocks/font.c
U ming/src/blocks/font.h
U ming/src/blocks/fontinfo.c
U ming/src/blocks/fontinfo.h
U ming/src/blocks/gifdbl.c
U ming/src/blocks/gradient.c
U ming/src/blocks/gradient.h
U ming/src/blocks/imports.c
U ming/src/blocks/imports.h
U ming/src/blocks/input.c
U ming/src/blocks/input.h
U ming/src/blocks/jpeg.c
U ming/src/blocks/jpeg.h
U ming/src/blocks/libswf.h
U ming/src/blocks/linestyle.c
U ming/src/blocks/linestyle.h
U ming/src/blocks/matrix.c
U ming/src/blocks/matrix.h
U ming/src/blocks/method.c
U ming/src/blocks/method.h
U ming/src/blocks/morph.c
U ming/src/blocks/morph.h
U ming/src/blocks/mp3.c
U ming/src/blocks/output.c
U ming/src/blocks/output.h
U ming/src/blocks/outputblock.c
U ming/src/blocks/outputblock.h
U ming/src/blocks/placeobject.c
U ming/src/blocks/placeobject.h
U ming/src/blocks/pngdbl.c
U ming/src/blocks/read.c
U ming/src/blocks/rect.c
U ming/src/blocks/rect.h
U ming/src/blocks/shape.c
U ming/src/blocks/shape.h
U ming/src/blocks/sound.c
U ming/src/blocks/sound.h
U ming/src/blocks/soundinstance.c
U ming/src/blocks/soundinstance.h
U ming/src/blocks/soundstream.c
U ming/src/blocks/soundstream.h
U ming/src/blocks/sprite.c
U ming/src/blocks/sprite.h
U ming/src/blocks/swf.h
U ming/src/blocks/text.c
U ming/src/blocks/text.h
U ming/src/blocks/textfield.c
U ming/src/blocks/textfield.h
U ming/src/blocks/ttffont.c
U ming/src/blocks/ttffont.h
U ming/src/blocks/utf8.c
U ming/src/blocks/utf8.h
U ming/src/blocks/videostream.c
U ming/src/blocks/videostream.h
cvs server: Updating ming/tcl_ext
U ming/tcl_ext/Makefile
U ming/tcl_ext/README
U ming/tcl_ext/test.tcl
cvs server: Updating ming/util
U ming/util/.cvsignore
U ming/util/Makefile
U ming/util/Makefile.am
U ming/util/README
U ming/util/TODO
U ming/util/action.h
U ming/util/bindump.c
U ming/util/blocktypes.c
U ming/util/blocktypes.h
U ming/util/cws2fws
U ming/util/decompile.c
U ming/util/decompile.h
U ming/util/decompile5.c
U ming/util/gif2dbl.c
U ming/util/gif2mask.c
U ming/util/hexdump.c
U ming/util/libswf.h
U ming/util/listfdb.c
U ming/util/listjpeg.c
U ming/util/listmp3.c
U ming/util/listswf.c
U ming/util/makefdb.c
U ming/util/ming.css
U ming/util/output.h
U ming/util/png2dbl.c
U ming/util/png2swf.c
U ming/util/raw2adpcm.c
U ming/util/read.c
U ming/util/read.h
U ming/util/swftoperl.c
U ming/util/swftoperl.h
U ming/util/swftoperl.html
U ming/util/swftophp.c
U ming/util/swftophp.h
cvs server: Updating ming/win32
U ming/win32/libming.dsp
U ming/win32/libming.dsw
cvs diff -u
cvs diff: No CVSROOT specified! Please use the `-d' option
cvs [diff aborted]: or set the CVSROOT environment variable.
cvs -z3 -d:pserver:[email protected]:/cvsroot/ming diff -u
cvs server: Diffing ming
Index: ming/README
===================================================================
RCS file: /cvsroot/ming/ming/README,v
retrieving revision 1.6
diff -u -r1.6 README
--- ming/README 18 Jan 2004 10:47:53 -0000 1.6
+++ ming/README 19 Jan 2004 15:37:43 -0000
@@ -1,6 +1,9 @@
MING THE MODULE
+I just added these two lines to demonstrate the following command
+cvs diff -u
+
Last updated 18th January 2004.
Ming is a Flash (SWF) output library. It can be used from PHP, from Perl,
cvs server: Diffing ming/c++_ext
cvs server: Diffing ming/java_ext
cvs server: Diffing ming/java_ext/Tests
cvs server: Diffing ming/java_ext/native
cvs server: Diffing ming/perl_ext
cvs server: Diffing ming/perl_ext/SWF
cvs server: Diffing ming/perl_ext/examples
cvs server: Diffing ming/perl_ext/t
cvs server: Diffing ming/php_ext
cvs server: Diffing ming/py_ext
cvs server: Diffing ming/rb_ext
cvs server: Diffing ming/src
cvs server: Diffing ming/src/actioncompiler
cvs server: Diffing ming/src/blocks
cvs server: Diffing ming/tcl_ext
cvs server: Diffing ming/util
cvs server: Diffing ming/win32
I hope this helps.
Cheers.