Re: using app in Windows
- From: edward hage <edha xs4all nl>
- To: Allin Cottrell <cottrell wfu edu>, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: using app in Windows
- Date: Mon, 27 Sep 2004 22:49:50 +0200
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
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]