Re: using app in Windows
- From: Michael L Torrie <torriem chem byu edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: using app in Windows
- Date: Mon, 27 Sep 2004 15:47:42 -0600
On Mon, 2004-09-27 at 22:49 +0200, edward hage wrote:
Hello Allin,
I downloaded mingw32-linux=x86-glibc-2.3.tar.gz from
http://www.libsdl.org/extras/wind32/cross and unpacked it.
I have a simple program which I want to test on Windows. The program
exists of two c-files, namely: functie.c and sim.c with in sim.c the GTK+2.0 stuff.
>> i386-mingw32msvc-gcc -c functie.c -o functie_win.o
>> i386-mingw32msvc-gcc -c sim.c -o sim_win.o `pkg-config gtk+-2.0 --cflags`
so far so good ....
>> i386-mingw32msvc-gcc sim_win.o functie_win.o -o sim.exe `pkg-config --libs gtk+-2.0`
/home/edward/cross-tools/bin/../lib/gcc/i386-mingw32msvc/3.4.1/../../../../i386-mingw32msvc/bin/ld:
cannot find -lgtk-x11-2.0
You need to set your PKG_CONFIG_PATH environment variable to point to
where the pkgconfig files are stored for your cross compiler
environment. On my box, I have to do
export PKG_CONFIG_PATH=/usr/i386-mingw32msvc-gcc/lib/pkgconfig
then I can do the compile and link and pkg-config finds the right
library paths.
Michael
The making of the .o files seems okay only not the linking. This probably has to do with
x11 which has nothing to do with windows. In the source of gtk+-2.4.10 which I have
installed I have a directory with all windows-stuff for gdk (gtk+-2.4.10/gdk/win32). Do I
have to compile this directory so I can make a new pkg-config for cross-compiling to
Windows ? With other words: Do you know how to set up gtk+ so it can be used succesfully
for cross-compiling to Windows.
Greetings, Edwarde
Allin Cottrell wrote:
On Sun, 26 Sep 2004, edward hage wrote:
What would be the best way to go, can I use a cross-compiler like
mingw32msvc or do I need to install GTK+ in Windows and then compile
it locally?
Cross-compiling Linux -> win32 works fine for me. I'd recommend this
approach. Email for details if you like.
Allin Cottrell
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]