2011/6/7 Chris <[email protected]>

> On Tue, 7 Jun 2011 14:35:22 +0200
> Pablo Beltran <[email protected]> wrote:
>
> > Hello,
> >
> > The FAQ instructions for building SWFTools on Windows > are absolutely
> out of date.
>
> Quite possibly.  It is a community wiki though, so how
> about you giving it a shot yourself?  If you see that
> something is not quite right, change it! ;o)
>

Then I will update it, but before I want to build SWFTools by using Mingw.


>
>  Most of the links do not exist:
> >
> > http://lists.gnu.org/archive/html/swftools-common/2005-02/msg00023.html
>
> That link works, as do the links contaned within it.
>

> > So, it seems the only way to build SWFTools is by
> > using Linux+Mingw cross-compiling.
>
> Never tried in Windows myself, so unable to comment.
>
> > 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.
>
> That's good then, isn't it?
>
> > Well..., and now what?
>
> Pass. You tell us! ;o)
>

Really I tried everything, search on Google hundred of times, modify
everything ... with no lucky.

Finally, I used the Mingw environment provided by Ubuntu (sudo apt-get
install mingw*). It works fine. I created a simple "hello world" example
built by using Mingw cross-compiler features and it ran by using Wine on
Linux. So the Mingw cross-compiler environment provided by Ubuntu works.

At this point, the SWFTools' configure always fails:

ERROR:
You need zlib to compile swftools

I've installed jpeg, gif and freetype libraries. They are recognized by the
SWFTools' configure. But zlib is ignored though the headers and libs are
placed in the same directory (/usr/local/incude and libs). Why SWFTools'
configure finds other libraries but not zlib? I've installed an alternative
zlib from Mingw's packages and then SWFtools' configure recognize it.
Unfortunately, make stops after a compile error.

Really, is the author of SWFTools so busy and he have not time to check
whether the sources compile for Windows? Of course, maybe the sources
compile and I'm a sort of incompetent :). Anyway, I would appreciate a
simple email from the author saying: "I've just compiled it for Windows so
you are doing something wrong".


> > 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.
>
> You are compiing for Windows, so you don't have to use
> the Linux target triplet.
>

Yes, but finally I changed my compiling environment to Linux+Mingw
cross-compiling. Pherhaps, my emails are bit confusing because I started to
trying compile on Windows and later on Linux+cross-compiling features.


> >   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
>
> Target triplet there.  As above, not required for
> Windies.
>
> > configure: error: /bin/bash ./config.sub i686-pc-linux- failed
> > ***********************************************************************
> > As I have no idea about Mingw corss-compiling, I
> > would appreciate some help.
>
> Ages since I've done it!  Maybe I'll get a moment to try
> it from the top.
>

Yes Chris, please, try it. A would appreciate a loooooooooot your fedback!
:)

>
> Regards,
>
>
> Chris
> --
>  <[email protected]>
>

Reply via email to