[Top][All Lists]

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

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

From: matt cline
Subject: [Swftools-common] Re: compiling pdf2swf.exe with linux mingw
Date: Wed, 15 Jul 2009 10:55:24 -0700

compiling pdf2swf.exe with ubuntu 9.04/MingW
ive solved the zlib issue by compiling my own zlib as follows:
cd zlib-1.2.3
export CC=i586-mingw32msvc-gcc
export AR="i586-mingw32msvc-ar rc"
export RANLIB="i586-mingw32msvc-ranlib"
make install prefix=/usr/bin/i586-mingw32msvc
i then ran into jpeg and freetype header missing errors
i downloaded src zips(which i probably could of done and saved time for zlib) from
i then copied the respective lib include bin contents to /usr/i586-mingw32msvc
since i have libs and incs in 3 diff locations due to my lack of experience with unix os's my configure command is as follows(im sure there's overkill in there):
CXX=i586-mingw32msvc-g++ CPP=i586-mingw32msvc-cpp CC=i586-mingw32msvc-gcc LDFLAGS="-L/usr/i586-mingw32msvc/bin -L/usr/bin -L/usr/bin/i586-mingw32msvc/bin" CPPFLAGS="-I/usr/i586-mingw32msvc/include -I/usr/bin/i586-mingw32msvc/include -I/usr/include -I/usr/freetype2" ./configure --host=i586-mingw32msvc && make
which results in the following error: **notice special chars in output**
* 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 avi2swf/Makefile
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
config.status: config.h is unchanged
making all in m4...
cd m4;make all
make[1]: Entering directory `/usr/share/swftools-0.9.0/m4'
make[1]: Leaving directory `/usr/share/swftools-0.9.0/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory `/usr/share/swftools-0.9.0/lib'
i586-mingw32msvc-gcc -c -DHAVE_CONFIG_H  -I/usr/i586-mingw32msvc/include -I/usr/bin/i586-mingw32msvc/include -I/usr/include -I/usr/freetype2 -I/usr/include/freetype2 -fPIC -Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer  modules/swftext.c -o modules/swftext.obj
modules/swftext.c:1: warning: -fPIC ignored for target (all code is position independent)
modules/swftext.c: In function âswf_ReadFontâ:
modules/swftext.c:1334: error: âO_BINARYâ undeclared (first use in this function)
modules/swftext.c:1334: error: (Each undeclared identifier is reported only once
modules/swftext.c:1334: error: for each function it appears in.)
modules/swftext.c:1338: warning: implicit declaration of function âcloseâ
modules/swftext.c: In function âswf_WriteFontâ:
modules/swftext.c:1518: error: âO_BINARYâ undeclared (first use in this function)
make[1]: *** [modules/swftext.obj] Error 1
make[1]: Leaving directory `/usr/share/swftools-0.9.0/lib'
make: *** [all] Error 2

On Tue, Jul 14, 2009 at 2:41 PM, matt cline <address@hidden> wrote:
ok..ive given up on compliling pdf2swf.exe in windows cygwin w/o cygwin being installed on the sytem dependency.

Ive given up on compiling pdf2swf.exe on windows with mingw32/msys.
The problem i left off with there was durning make i would get the following:

xpdf/gfile.cc : In Function 'char * mktmpname(char*);

xpdf/gfile.cc:474: error: 'lrand48' was not declared in this scope

make[2]: *** [xpdf/gfile.obj] Error 1

make[1]: ***[libpdf.lib] Error 2

Now I'm now trying to compile pdf2swf.exe with ubuntu 9.04/MingW
for compiling i use the following command:

./configure --host=i586-mingw32msvc

I get >
You need zlib to compile swftools

I already have zlib installed AND ive compiled zlib with the following:
CC=/usr/bin/i586-mingw32msvc-gcc AR="/usr/bin/i586-mingw32msvc-ar rc" RANLIB=/usr/bin/i586-mingw32msvc-ranlib ./configure --prefix=/opt/minw
make install

what i dont know, is what to do with - where to put - what to name the resulting example and or minigzip files so that the configure process will pick them up?

I'm not in dire need of recompiling with my source changes at all....this has just sort of become an obsession, and im pullin out hair trying to figure out what method im going to use to compile exe's...any light on this would definately help me get some sleep..thx

reply via email to

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