Hi Everyone,
I was wondering if someone could help me compile on windows xp. I'm
trying to follow the faq guide
(http://lists.gnu.org/archive/html/swftools-common/2005-02/msg00023.html),
but
it's not working. The guide is 6 years old so I thought it'd be best
to use the latest of everything so that's what I did. I used the
automatic installer for mingw and msys. I'm compiling inside msys. And
I tried this on the latest git clone and several other versions with
no success.
I'm having a couple problems so far. The first one is that I don't
know how to get the fontconf package mentioned in the faq guide.
The link to the gimp fontconf package is broken. I tried compiling it
from source but it was missing it's configure file and I'm not an
autoconf guru.
The second seems related to typdefs and defines. After changing
#define boolean int to #define boolean unsigned char, as the guide
suggests, I get the following error:
$ make
making all in m4...
cd m4;make all
make[1]: Entering directory `/swftools/m4'
make[1]: Leaving directory `/swftools/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory `/swftools/lib'
gcc -c -DHAVE_CONFIG_H -I/gw32/include -I/gw32/freetype2 -I/fc/include/fontconf
ig -I/mingw/include/lame -IC:/GnuWin32/include/freetype2 -IC:/GnuWin32/include -
fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointe
r modules/swfaction.c -o modules/swfaction.obj
modules/swfaction.c:1:0: warning: -fPIC ignored for target (all code is position
independent) [enabled by default]
gcc -c -DHAVE_CONFIG_H -I/gw32/include -I/gw32/freetype2 -I/fc/include/fontconf
ig -I/mingw/include/lame -IC:/GnuWin32/include/freetype2 -IC:/GnuWin32/include -
fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointe
r modules/swfbits.c -o modules/swfbits.obj
modules/swfbits.c:1:0: warning: -fPIC ignored for target (all code is position i
ndependent) [enabled by default]
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
objbase.h:4:0,
from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
ole2.h:9,
from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
windows.h:114,
from c:/gnuwin32/include/jconfig.h:10,
from c:/gnuwin32/include/jpeglib.h:28,
from modules/swfbits.c:40:
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/rpcndr.h:52:23: error:
duplicate 'unsigned'
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/rpcndr.h:52:23: error:
two or more data types in declaration specifiers
make[1]: *** [modules/swfbits.obj] Error 1
make[1]: Leaving directory `/swftools/lib'
make: *** [all] Error 2
Without the config.h change got me this:
$ make
making all in m4...
cd m4;make all
make[1]: Entering directory `/swftools/m4'
make[1]: Leaving directory `/swftools/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory `/swftools/lib'
gcc -c -DHAVE_CONFIG_H -I/gw32/include -I/gw32/freetype2 -I/fc/include/fontconf
ig -I/mingw/include/lame -IC:/GnuWin32/include/freetype2 -IC:/GnuWin32/include -
fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointe
r modules/swfaction.c -o modules/swfaction.obj
modules/swfaction.c:1:0: warning: -fPIC ignored for target (all code is position
independent) [enabled by default]
gcc -c -DHAVE_CONFIG_H -I/gw32/include -I/gw32/freetype2 -I/fc/include/fontconf
ig -I/mingw/include/lame -IC:/GnuWin32/include/freetype2 -IC:/GnuWin32/include -
fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointe
r modules/swfbits.c -o modules/swfbits.obj
modules/swfbits.c:1:0: warning: -fPIC ignored for target (all code is position i
ndependent) [enabled by default]
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
objbase.h:4:0,
from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
ole2.h:9,
from c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/
windows.h:114,
from c:/gnuwin32/include/jconfig.h:10,
from c:/gnuwin32/include/jpeglib.h:28,
from modules/swfbits.c:40:
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/rpcndr.h:52:23: error:
two or more data types in declaration specifiers
make[1]: *** [modules/swfbits.obj] Error 1
make[1]: Leaving directory `/swftools/lib'
make: *** [all] Error 2
Any help would be appreciated. Thx.
-Greg
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an
existing subscription, please kindly point your favourite web browser
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>