swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Building SWFTools on Windows


From: Matthias Kramm
Subject: Re: [Swftools-common] Building SWFTools on Windows
Date: Sun, 6 Feb 2005 20:49:47 +0100
User-agent: Mutt/1.5.6i

On Mon, Feb 07, 2005 at 02:05:35AM +0900, Daichi Shinozaki wrote:
> #ifdef __WIN32__
> #include <windows.h>
> /* Define "boolean" as unsigned char, not int, per Windows custom */
> ...
> [JPEG Boolean size problems on Windows?]
> http://bugzilla.remotesensing.org/show_bug.cgi?id=188

Oh boy. Maybe the jpeglib author should have used int or char
in the first place, not boolean. All this trouble can't be worth
it.

> I don't know about cross-compiling, but you may need to link against 
> some mingw-runtime library explicitly when doing cross-compiling?

I re-checked the swftools executables, and I'm pretty sure at least
the lastest version supports globbing.
E.g.,
    png2swf *.png
works nicely on the (otherwise utterly broken) Windows ME installation
on my girlfriend's laptop.

The only program where globbing doesn't work is pdf2swf.exe, as it can handle
only one input and one output file. That should probably be changed.

> By the way, could you compile this sample on your cross-compiling 
> environment and run the resulting exe on Windows, what the result is?
> 
> ...

/opt/xmingw/bin/i386-mingw32msvc-gcc glob.c -o glob.exe
wine glob.exe *.exe
Command line (via GetCommandLine) "glob.exe avi2swf.exe gif2swf.exe glob.exe"
Argv[0] "glob.exe"
Argv[1] "avi2swf.exe"
Argv[2] "gif2swf.exe"
Argv[3] "glob.exe"

Looks o.k. to me.
Also, the program

-----------------------------------------------------------------------
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>

extern int _CRT_glob;

int main (int argc, char* argv[]) {
    printf("%d\n", _CRT_glob);
    return 0;
}
-----------------------------------------------------------------------

returns -1 when compiled with mingw.

Greetings

Matthias






reply via email to

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