[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Re: compiling pdf2swf.exe with linux mingw

From: matt cline
Subject: Re: [Swftools-common] Re: compiling pdf2swf.exe with linux mingw
Date: Thu, 16 Jul 2009 15:14:59 -0700

of Fedora 11 has a lot of built in accessible packages for ming, so I think itll work nicely...first im trying to compile natively(non mingw)..compiles fine and bombs with make...const char to char conversion error..im copying config and make in hopes its just a missing library or header...ty
checking build system type... i686-pc-linux-gnu
checking host 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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc supports lazy variable declaration... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gzip... gzip
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking host system type... (cached) i686-pc-linux-gnu
checking for target system...
checking for sin in -lm... yes
checking for deflate in -lz... yes
checking for jpeg_write_raw_data in -ljpeg... yes
checking for DGifOpen in -lungif... no
checking for DGifOpen in -lgif... no
checking for byte order... little endian
checking whether system() can handle command substitution... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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 zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/bsdtypes.h usability... no
checking sys/bsdtypes.h presence... no
checking for sys/bsdtypes.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for boolean... no
checking for popen... yes
checking for wcschr... yes
checking for wcsdup... yes
checking for mkstemp... yes
checking for stat... yes
checking for mmap... yes
checking for lrand48... yes
checking for rand... yes
checking for srand48... yes
checking for srand... yes
checking for bcopy... yes
checking for bzero... yes
checking for time... yes
checking for getrusage... yes
checking for mallinfo... yes
checking size of signed char... 1
checking size of signed short... 2
checking size of signed... 4
checking size of signed long long... 8
checking size of void*... 4
checking for freetype-config... /usr/bin/freetype-config
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking whether we can compile the freetype test program... yes
checking for FcInit in -lfontconfig... yes
checking fontconfig.h usability... yes
checking fontconfig.h presence... yes
checking for fontconfig.h... yes
checking whether we can compile the fontconfig test program... yes
checking for glBegin in -lGL... no
checking for gluBeginSurface in -lGLU... no
checking for glutInit in -lglut... no
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
checking whether we can compile the opengl test program... no
checking for lame_init in -lmp3lame... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking for avifile-config... no
checking whether we can compile the avifile test program... no
checking for Python.h... nope
checking for missing libraries...  ungif gif_lib.h
* The following headers/libraries are missing:  ungif gif_lib.h
* Disabling gif2swf tool...
configure: creating ./config.status
config.status: creating Makefile.common
config.status: WARNING:  'Makefile.common.in' seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/action/Makefile
config.status: creating src/Makefile
config.status: creating lib/pdf/Makefile
config.status: creating swfs/Makefile
config.status: creating lib/art/Makefile
config.status: creating lib/readers/Makefile
config.status: creating config.h

making all in m4...
cd m4;make all
make[1]: Entering directory `/var/opt/swftools-0.9.0/m4'
make[1]: Leaving directory `/var/opt/swftools-0.9.0/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory `/var/opt/swftools-0.9.0/lib'
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfaction.c -o modules/swfaction.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfbits.c -o modules/swfbits.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfbutton.c -o modules/swfbutton.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfcgi.c -o modules/swfcgi.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfdraw.c -o modules/swfdraw.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfdump.c -o modules/swfdump.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swffilter.c -o modules/swffilter.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swffont.c -o modules/swffont.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfobject.c -o modules/swfobject.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfrender.c -o modules/swfrender.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfshape.c -o modules/swfshape.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swfsound.c -o modules/swfsound.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swftext.c -o modules/swftext.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swftools.c -o modules/swftools.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  rfxswf.c -o rfxswf.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  drawer.c -o drawer.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  MD5.c -o MD5.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  h.263/dct.c -o h.263/dct.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  h.263/h263tables.c -o h.263/h263tables.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  h.263/swfvideo.c -o h.263/swfvideo.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/assembler.c -o action/assembler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/compile.c -o action/compile.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/lex.swf4.c -o action/lex.swf4.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/lex.swf5.c -o action/lex.swf5.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/libming.c -o action/libming.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/swf4compiler.tab.c -o action/swf4compiler.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/swf5compiler.tab.c -o action/swf5compiler.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  action/actioncompiler.c -o action/actioncompiler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/abc.c -o as3/abc.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/pool.c -o as3/pool.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/files.c -o as3/files.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/opcodes.c -o as3/opcodes.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/code.c -o as3/code.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/registry.c -o as3/registry.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/builtin.c -o as3/builtin.o
as3/builtin.c:3105: warning: initialization from incompatible pointer type
as3/builtin.c:4542: warning: initialization from incompatible pointer type
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/parser.tab.c -o as3/parser.tab.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/tokenizer.yy.c -o as3/tokenizer.yy.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/scripts.c -o as3/scripts.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/compiler.c -o as3/compiler.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/import.c -o as3/import.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/expr.c -o as3/expr.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/common.c -o as3/common.o
gcc -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  as3/initcode.c -o as3/initcode.o
ar r librfxswf.a modules/swfaction.o modules/swfbits.o modules/swfbutton.o modules/swfcgi.o modules/swfdraw.o modules/swfdump.o modules/swffilter.o modules/swffont.o modules/swfobject.o modules/swfrender.o modules/swfshape.o modules/swfsound.o modules/swftext.o modules/swftools.o rfxswf.o drawer.o MD5.o  h.263/dct.o h.263/h263tables.o h.263/swfvideo.o action/assembler.o action/compile.o action/lex.swf4.o action/lex.swf5.o action/libming.o action/swf4compiler.tab.o action/swf5compiler.tab.o action/actioncompiler.o as3/abc.o as3/pool.o as3/files.o as3/opcodes.o as3/code.o as3/registry.o as3/builtin.o as3/parser.tab.o as3/tokenizer.yy.o as3/scripts.o as3/compiler.o as3/import.o as3/expr.o as3/common.o as3/initcode.o
ar: creating librfxswf.a
ranlib librfxswf.a
cd pdf;make libpdf
make[2]: Entering directory `/var/opt/swftools-0.9.0/lib/pdf'
g++ -c -DHAVE_CONFIG_H   -I/usr/include/freetype2 -I/usr/include/fontconfig -fPIC -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  -I ./ -I xpdf GFXOutputDev.cc -o GFXOutputDev.o
GFXOutputDev.cc: In function ‘void addGlobalFont(const char*)’:
GFXOutputDev.cc:2507: error: invalid conversion from ‘const char*’ to ‘char*’
GFXOutputDev.cc:2508: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [GFXOutputDev.o] Error 1
make[2]: Leaving directory `/var/opt/swftools-0.9.0/lib/pdf'
make[1]: *** [libpdf.a] Error 2
make[1]: Leaving directory `/var/opt/swftools-0.9.0/lib'
make: *** [all] Error 2

ive changed the const char to char in source and go on to more const char to char conersion errors in pdf.cc

On Thu, Jul 16, 2009 at 2:56 AM, Matthias Kramm <address@hidden> wrote:
On Wed, Jul 15, 2009 at 07:33:01PM -0700, Matt Cline <address@hidden> wrote:
> Ununtu 904.. I'll give that a go... Any idea how fedora 11 is?

Never tried Fedora. I used to compile on Debian, which worked o.k.

I guess it's possible to fix all these issues for Debian/Ubuntu (adding
some configure checks for all the special cases)- I notice that all the
current issues are in fairly recent code. But if you just want to work,
it's probably easiest to grab a Gentoo live-CD or something.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]