Re: problem about cross compiling win32 program under linux

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

 



thank you, the problem has been sovled according to your link.

I just changed the param's order like this:

i486-mingw32-gcc -Wall -g `pkg-config --cflags gtk+-2.0` -Isoftware/win_gtk_dev/gettext-runtime-dev-0.17-1/include hello.c -o hello.exe `pkg-config --libs gtk+-2.0` -Lsoftware/win_gtk_dev/gettext-runtime-dev-0.17-1/lib

hello.exe works fine in windows xp sp3.

2010/6/8 Nicola Fontana <ntd@xxxxxxxxx>
Il giorno Tue, 8 Jun 2010 21:14:59 +0800
Roy Chang <acm.zrl@xxxxxxxxx> ha scritto:

> *I tend to compile win32 gtk program under linux using mingw like this:*
>
> i486-mingw32-gcc �`pkg-config --libs --cflags gtk+-2.0`
> -Isoftware/win_gtk_dev/zlib-dev_1.2.4-2_win32/include
> -Lsoftware/win_gtk_dev/zlib-dev_1.2.4-2_win32/lib -lz
> -Isoftware/win_gtk_dev/gettext-runtime-dev-0.17-1/include
> -Lsoftware/win_gtk_dev/gettext-runtime-dev-0.17-1/lib hello.c -o hello.exe

First of all, I'd suggest to read this:

http://mail.gnome.org/archives/gtk-app-devel-list/2010-February/msg00036.html

--
Nicola

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux