xpra icon
Bug tracker and wiki

Changes between Version 1 and Version 2 of Ticket #227


Ignore:
Timestamp:
12/25/12 16:33:44 (7 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #227 – Description

    v1 v2  
    8787
    8888Rant: why is this such a horrible mess?
     89
     90
     91----
     92
     93'''ming32 cross build'''
     94Useful link: [http://ricardo.ecn.wfu.edu/~cottrell/cross-gtk/ Building GTK apps for MS Windows on Linux]
     95
     96* install all the required mingw libraries for your distro (gcc and friends) - details are out of scope
     97* install the mingw gtk versions (hopefully your distro has them... again, not covered here)
     98* build gtkglext (fix things with ranlib when needed then continue - setting a {{{RANLIB}}} env var does not help):
     99{{{
     100export PREFIX=/usr/i686-w64-mingw32/sys-root/mingw/
     101export TARGET=mingw32
     102export PKG_CONFIG_PATH=$PREFIX/$TARGET/lib/pkgconfig
     103export PATH=$PREFIX/bin:$PREFIX/$TARGET/bin:/bin:/usr/bin
     104export LD_LIBRARY_PATH=$PREFIX/$TARGET/lib
     105export LDFLAGS=-L$PREFIX/$TARGET/lib
     106export OBJDUMP=/usr/i686-w64-mingw32/bin/objdump
     107export CC="/usr/bin/i686-w64-mingw32-gcc -mms-bitfields"
     108export CXX="/usr/bin/i686-w64-mingw32-c++ -mms-bitfields"
     109export CFLAGS="-O2 -march=i586 -mms-bitfields"
     110export CXXFLAGS="-O2 -march=i586 -mms-bitfields"
     111autoreconf -iv
     112./configure --host=i686-pc-mingw32 --prefix=$PREFIX/$TARGET
     113make
     114/usr/i686-w64-mingw32/bin/ranlib ./gdk/.libs/libgdkglext-win32-1.0.a
     115make
     116/usr/i686-w64-mingw32/bin/ranlib ./gtk/.libs/libgtkglext-win32-1.0.a
     117make
     118/usr/i686-w64-mingw32/bin/ranlib ./examples/.libs/libdrawshapes.a
     119make
     120}}}
     121
     122then we're stuck because there is no way to build python with mingw... although there are [http://mdqinc.com/blog/2011/10/cross-compiling-python-for-windows-with-mingw32/ instructions for cross compilign python] (old python 2.7.2 here), it looks like the patches that will get merged upstream are for  [http://bugs.python.org/issue3871 python 3.3+]) only
     123
     124And in any case, even with this latest build the pixbuf functions do not seem to work and none of the demos work properly either.. (artifacts, non window refresh, etc)
     125
     126Dead end.