<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">I'm not sure if you guys
      got this sorted or not, but I'm the one behind
      mythtvwindows.sourceforge.net <br>
      <br>
      When I was first trying to get things working via cross compile, I
      believe I had crashing on startup issues which I narrowed down to
      QT being at fault. What I ended up using was a cross compiled
      version of QT (at least for the 64bit compiles, I'm not sure where
      the 32bit one is from, tho it looks like it was compiled by me on
      windows or linux)<br>
      <br>
      My autobuild system uses Gentoo and GCCs made using crosdev,
      prereqs compiled using either portage's cross compile mode or
      manually for those that failed that.<br>
      <br>
      Compilers:<br>
      i686-mingw32-gcc (GCC) 4.5.2<br>
      x86_64-w64-mingw32-gcc (Gentoo 4.5.2 p1.1, pie-0.4.5) 4.5.2<br>
      <br>
      I don't use mythbuild.sh, I use my own build script that seems to
      work nicely.<br>
      The steps I follow (32bit), /filestore/mythbuild/ being where all
      the files are (QT, installdirs, git tree), run from the mythtv dir
      inside the git tree:<br>
      <br>
      ######<br>
      <br>
      patch -p1 &lt;../../../patches/mythtv-0.24/21-d3d9.diff<br>
      patch -p1
      &lt;../../../patches/mythtv-0.24/31-videofiles-win32.diff<br>
      patch -p1 &lt;../../../patches/mythtv-0.24/11-config-pthread.diff<br>
      <br>
      export QMAKESPEC=win32-g++linux<br>
      <br>
      ./configure --target-os=mingw32 --arch=x86 --disable-lirc
      --disable-iptv
      --prefix=/filestore/mythbuild/installs/mythinstall32/
      --runprefix=.. --enable-cross-compile --cross-prefix=i686-mingw32-
      --qmake=/filestore/mythbuild/qtinstall32/bin/qmake
      --disable-distcc --sysroot=/usr/i686-mingw32/
      --compile-type=release<br>
      <br>
      make -j4 <br>
      make install <br>
      cp
      /filestore/mythbuild/qtinstall32/bin/{QtCore4,QtGui4,QtNetwork4,QtOpenGL4,QtSql4,QtWebKit4,QtXml4}.dll
      /filestore/mythbuild/installs/mythinstall32/bin/<br>
      cp /usr/i686-mingw32/usr/bin/libfreetype-6.dll
      /filestore/mythbuild/installs/mythinstall32/bin/<br>
      cp /usr/i686-mingw32/usr/bin/zlib1.dll
      /filestore/mythbuild/installs/mythinstall32/bin/<br>
      cp /usr/i686-mingw32/usr/lib/pthreadGC2.dll
      /filestore/mythbuild/installs/mythinstall32/bin/<br>
      mkdir -p
      /filestore/mythbuild/installs/mythinstall32/bin/sqldrivers<br>
      cp
      /filestore/mythbuild/qtinstall32/plugins/sqldrivers/qsqlmysql4.dll
      /filestore/mythbuild/installs/mythinstall32/bin/sqldrivers/<br>
      cp
      /filestore/mythbuild/qtinstall32/plugins/sqldrivers/libmysql.dll
      /filestore/mythbuild/installs/mythinstall32/bin/<br>
      <br>
      ######<br>
      <br>
      One thing to note about newer mingw versions is that some can
      compile 32bit and 64bit code, so may need the -m32 flag (I believe
      my compilers don't produce for both architectures)<br>
    </font>
  </body>
</html>