Problems when (cross)compiling a gtk app on linux for windows
- From: jonas th web de
- To: gtk-app-devel-list gnome org
- Subject: Problems when (cross)compiling a gtk app on linux for windows
- Date: Sun, 26 Oct 2008 20:02:17 +0100
Hi everyone,
I am trying to compile my application for windows on a Linux system using i486-mingw-gcc without having to
run Windows itself. I obtained the cross compiler, including the winapi headers etc., through the packaging
system of the distribution I use which is Archlinux. I already succeeded in compiling some other applications
of mine, including SDL applications, so the crosscompiler itself, including the winapi references etc., works
fine/should be properly configured.
Before I started compiling my gtk app, I downloaded all the devel and bin packages from
http://www.gtk.org/download-windows.html which that site told me I need and extracted them all into the sub
folder ./gtk/ (relative to my source code files). Then I did pkg-config --cflags --libs gtk+-2.0 to obtain
the package names and linker flags I need, and changed all the paths from it so it points all to ./gtk/ which
resulted in the following command:
i486-mingw32-gcc -o LPHirc.exe ./lphirc_main.c -mwindows -lws2_32 -I./gtk/include/gtk-2.0
-I./gtk/include/gtk-2.0/gtk -I./gtk/include/gtk-2.0/gdk -I./gtk/include/atk-1.0 -I./gtk/include/cairo
-I./gtk/include/pango-1.0 -I./gtk/include/glib-2.0 -I./gtk/lib/glib-2.0/include -I./gtk/include/freetype2
-I./gtk/include/libpng12 -I./gtk/include/pixman-1 -L./gtk/bin -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
When attempting to compile, I get the following errors:
In file included from ./gtk/include/gtk-2.0/gtk/gtkwindow.h:35,
from ./gtk/include/gtk-2.0/gtk/gtkdialog.h:36,
from ./gtk/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from ./gtk/include/gtk-2.0/gtk/gtk.h:33,
from lphirc_gtk.h:17,
from lphirc.h:78,
from lphirc_main.c:17:
./gtk/include/gtk-2.0/gtk/gtkaccelgroup.h:77: warning: parameter names (without types) in function declaration
./gtk/include/gtk-2.0/gtk/gtkaccelgroup.h:77: error: field 'GSEAL' declared as a function
./gtk/include/gtk-2.0/gtk/gtkaccelgroup.h:78: warning: parameter names (without types) in function declaration
./gtk/include/gtk-2.0/gtk/gtkaccelgroup.h:78: error: field 'GSEAL' declared as a function
I have no idea what's going wrong, maybe some includes or linker flags missing?
Thanks,
Jonas
________________________________________________________________________
Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]