Hello,

The FAQ instructions for building SWFTools on Windows are absolutely out of
date. Most of the links do not exist:

http://lists.gnu.org/archive/html/swftools-common/2005-02/msg00023.html

So, it seems the only way to build SWFTools is by using Linux+Mingw
cross-compiling.

Of course, I've installed Mingw cross-compiling (apt-get install mingw32*
and alternatively by following this instructions:
http://www.mingw.org/wiki/LinuxCrossMinGW). Everything seems successfully
installed.

Well..., and now what?

When I try to build SWFTools on my Ubuntu:

/home/pablo/swftools_src$ CXX=i386-mingw32msvc-g++ CPP=i386-mingw32msvc-cpp
CC=i386-mingw32msvc-gcc \
./configure --host=i586-mingw32msvc && make

I get the following error:

***********************************************************************
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... Invalid configuration `i686-pc-linux-':
machine `i686-pc-linux' not recognized
configure: error: /bin/bash ./config.sub i686-pc-linux- failed
***********************************************************************

As I have no idea about Mingw corss-compiling, I would appreciate some help.
I guess the problem is that Mingw environment is not found. I tried to
include the Mingw's binaries in the $PATH but that didn't work.

Pablo.




2011/6/6 Pablo Beltran <[email protected]>

> HI,
>
> I'm trying to compile latest sources on Windows by using Mingw. I've also
> done it on Ubuntu without any problem.
>
> On WIndows: I've successfully built freetype-2.4.4, giflib-4.1.6, jpeg-8b
> and zlib-1.2.5. Configure libpng-1.5.2 fails because zlib is not found (?)
>
> Then when I try to build SWFTools:
>
> 1) ./configure && make install
>
> configure outputs:
>
> ***************************************************
> * The following headers/libraries are missing:  jpeglib.h gif_lib.h zlib.h
> * Disabling pdf2swf tool...
> * Disabling jpeg2swf tool...
> * Disabling gif2swf tool...
> * Disabling png2swf tool...
> ***************************************************
>
> Though all those headers are placed in the  /usr/local/include directory
> (?)
>
> and make fails because:
>
> ***************************************************
> gcc -c -DHAVE_CONFIG_H   -I/usr/local/include/freetype2
> -I/usr/local/include -Ilame -Ilib/lame -fPIC -Wimplicit -Wreturn-type
> -Wno-write-strings -Wformat -O -fo
> mit-frame-pointer  -DSWFTOOLS_DATADIR=\"/usr/local/share/swftools\" os.c -o
> os.obj
> os.c:1:0: warning: -fPIC ignored for target (all code is position
> independent)
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objbase.h:4:0,
>                  from
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:9,
>                  from
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
>                  from os.c:28:
> c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/rpcndr.h:52:23:
> error: two or more data types in declaration specifiers
> os.c: In function 'getRegistryEntry':
> os.c:80:2: warning: format '%d' expects type 'int', but argument 3 has type
> 'long int'
> os.c:86:2: warning: format '%d' expects type 'int', but argument 3 has type
> 'long int'
> make[1]: *** [os.obj] Error 1
> make[1]: Leaving directory `/home/pablo/swftools/lib'
> make: *** [all] Error 2
> ***************************************************
>
> 2) Alternatively, I have also tried to do (as described in SWFTools FAQ):
>
> CXX=i386-mingw32msvc-g++ CPP=i386-mingw32msvc-cpp CC=i386-mingw32msvc-gcc \
> ./configure --host=i586-mingw32msvc && make
>
> which outputs:
>
> ***************************************************
> configure: WARNING: If you wanted to set the --build type, don't use
> --host.
>     If a cross compiler is detected then cross compile mode will be used.
> checking build system type... i686-pc-mingw32
> checking host system type... i586-pc-mingw32msvc
> checking for i586-mingw32msvc-gcc... i386-mingw32msvc-gcc
> checking whether the C compiler works... no
> configure: error: in `/home/pablo/swftools':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> ***************************************************
>
> config.lg is also attached in this email.
>
> My environment is a vanilla Mingw installation just for building SWFTools.
>
> Please, any help will be very appreciated.
>
> Thanks in advance.
> Pablo
>
>

Reply via email to