[gtk-win32] Pygtk (hippocanvas) compilation



Hello list,

I'm (it's been weeks since I started) trying to compile hippocanvas
([1]) for win32.

Actually, I did found a lot of info (in particular, from live.gnome.org
site) about cross-compiling (or compiling under Windows with mingw) gtk
and I think I now learned how to set up a gtk cross-compilation
toolchain; however, I had no chance in finding any hint about
compilation of python gtk bindings for Windows (as is my case).

The only thing I can think about is: cross-compiling python AND THEN
pygtk AND THEN my app. But I'm starting to think this is far too hard
for me (i.e: python wants libc and... well, before july I didn't even
know how to debug a makefile).

Is there anyone able to give me some hints or at least links?

At the moment, the problem I'm fighting with is the following: after
being finally able to run "./configure" with mingw-configure ([2]) (with
gtk dependancies already crosscompiled, but faking Python, pygtk,
pycairo headers, which means just symlinking the ones of the Ubuntu I'm
working on), I get the following:

------------8<------------8<------------8<------------

root xubuntucci:/home/pietro/checkout/hippo-canvas-0.2.6# make
make  all-am
make[1]: Entering directory `/home/pietro/checkout/hippo-canvas-0.2.6'
if /bin/bash ./libtool --tag=CC --mode=compile
/usr/bin/i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I./config 
-DHIPPO_COMPILATION -DHIPPO_OS_LINUX -I./config -I./common-dist/canvas
-I./linux-dist/canvas -I ./config/hippo-canvas -mms-bitfields
-I/usr/local/win/gtk/include/glib-2.0
-I/usr/local/win/gtk/lib/glib-2.0/include
-I/usr/local/win/gtk/include/gtk-2.0
-I/usr/local/win/gtk/lib/gtk-2.0/include
-I/usr/local/win/gtk/include/atk-1.0 -I/usr/local/win/gtk/include/cairo
-I/usr/local/win/gtk/include/pango-1.0
-I/usr/local/win/gtk/include/libpng12   -I/usr/local/win/gtk/include  
-I/usr/local/win/gtk/include -mno-cygwin -mms-bitfields -march=i686 -g
-Wall -Wchar-subscripts -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -Wdeclaration-after-statement -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -MT
libhippocanvas_1_la-hippo-canvas-link.lo -MD -MP -MF
".deps/libhippocanvas_1_la-hippo-canvas-link.Tpo" -c -o
libhippocanvas_1_la-hippo-canvas-link.lo `test -f
'./common-dist/canvas/hippo/hippo-canvas-link.c' || echo
'./'`./common-dist/canvas/hippo/hippo-canvas-link.c; \
    then mv -f ".deps/libhippocanvas_1_la-hippo-canvas-link.Tpo"
".deps/libhippocanvas_1_la-hippo-canvas-link.Plo"; else rm -f
".deps/libhippocanvas_1_la-hippo-canvas-link.Tpo"; exit 1; fi
 /usr/bin/i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I./config
-DHIPPO_COMPILATION -DHIPPO_OS_LINUX -I./config -I./common-dist/canvas
-I./linux-dist/canvas -I ./config/hippo-canvas -mms-bitfields
-I/usr/local/win/gtk/include/glib-2.0
-I/usr/local/win/gtk/lib/glib-2.0/include
-I/usr/local/win/gtk/include/gtk-2.0
-I/usr/local/win/gtk/lib/gtk-2.0/include
-I/usr/local/win/gtk/include/atk-1.0 -I/usr/local/win/gtk/include/cairo
-I/usr/local/win/gtk/include/pango-1.0
-I/usr/local/win/gtk/include/libpng12 -I/usr/local/win/gtk/include
-I/usr/local/win/gtk/include -mno-cygwin -mms-bitfields -march=i686 -g
-Wall -Wchar-subscripts -Wpointer-arith -Wcast-align -Wfloat-equal
-Wsign-compare -Wdeclaration-after-statement -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -MT
libhippocanvas_1_la-hippo-canvas-link.lo -MD -MP -MF
.deps/libhippocanvas_1_la-hippo-canvas-link.Tpo -c
./common-dist/canvas/hippo/hippo-canvas-link.c  -DDLL_EXPORT -DPIC -o
.libs/libhippocanvas_1_la-hippo-canvas-link.o
In file included from
/usr/local/win/gtk/include/pango-1.0/pango/pango-utils.h:25,
                 from /usr/local/win/gtk/include/pango-1.0/pango/pango.h:45,
                 from ./common-dist/canvas/hippo/hippo-canvas-text.h:9,
                 from ./common-dist/canvas/hippo/hippo-canvas-link.h:7,
                 from ./common-dist/canvas/hippo/hippo-canvas-link.c:3:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:420:
error: expected declaration specifiers or '...' before 'off64_t'
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/stdio.h:427:
error: expected ',' or ';' before 'ftello64'
make[1]: *** [libhippocanvas_1_la-hippo-canvas-link.lo] Error 1
make[1]: Leaving directory `/home/pietro/checkout/hippo-canvas-0.2.6'
make: *** [all] Error 2

------------8<------------8<------------8<------------

Actually, I think that the presence of an error in ubuntu's default
stdio.h is quite improbable; can someone help me understand what's going on?

(and/or can someone just clarify to me if that approach has any chance
to succeed?)

thanks

Pietro Battiston

[1] http://wiki.laptop.org/go/HippoCanvas
[2] http://live.gnome.org/Cross%20compiling%20GTK%2B%20for%20Win32


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