help cross compiling again
- From: Marcelo Armengot <marcelo armengot uv es>
- To: gtk-devel-list gnome org
- Subject: help cross compiling again
- Date: Wed, 10 Jan 2007 00:02:42 +0100
Please I need to compile my gtk apps for running under win32, for me is
the same if i need cygwin, msys or cross-compiling from Linux, but i
need run in win32
the easiest way please
(this is my current situation under Linux, where i followd the
documentation)
¡¡¡I dont find the library that gcc ask me!!!
¡¡lgtk-win32-2.0!!
LISTEN:
=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/
marcelo satelite:~/Documents/plus-dotty/marcelo/ifaz/wbuild$ cat prueba.c
#include <stdio.h>
int main()
{
printf("Pienso luego existo\n");
return 0;
}
marcelo satelite:~/Documents/plus-dotty/marcelo/ifaz/wbuild$ cat Makefile
CC = i586-mingw32msvc-gcc -O2 -Wall -mms-bitfields -mwindows
PKG_CONFIG_PATH = /opt/cross-tools/mingw32/lib/pkgconfig
CFLAGS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags
gtk+-win32-2.0)
LIBS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs
gtk+-win32-2.0)
foo.exe: prueba.c
$(CC) -o $@ $(CFLAGS) $< $(LIBS)
marcelo satelite:~/Documents/plus-dotty/marcelo/ifaz/wbuild$ make
i586-mingw32msvc-gcc -O2 -Wall -mms-bitfields -mwindows -o foo.exe
-mms-bitfields -Ic:/devel/target/gtk+-2.10.7/include/gtk-2.0
-Ic:/devel/target/gtk+-2.10.7/lib/gtk-2.0/include
-Ic:/devel/target/atk-1.12.3/include/atk-1.0
-Ic:/devel/target/cairo-1.2.6/include/cairo
-Ic:/devel/target/pango-1.14.9/include/pango-1.0
-Ic:/devel/target/glib-2.12.7/include/glib-2.0
-Ic:/devel/target/glib-2.12.7/lib/glib-2.0/include prueba.c -user32
-Wl,-luuid -Lc:/devel/target/gtk+-2.10.7/lib
-Lc:/devel/target/atk-1.12.3/lib -Lc:/devel/target/cairo-1.2.6/lib
-Lc:/devel/target/pango-1.14.9/lib -Lc:/devel/target/glib-2.12.7/lib
-lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0
-lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
/usr/lib/gcc/i586-mingw32msvc/3.4.2/../../../../i586-mingw32msvc/bin/ld:
no se puede encontrar -lgtk-win32-2.0
collect2: ld returned 1 exit status
make: *** [foo.exe] Error 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]