[mythtv-users] Cross-compiled win32 binaries failing to run
Xander Victory
lexvictory at yahoo.com.au
Sat Mar 3 02:40:22 UTC 2012
I'm not sure if you guys got this sorted or not, but I'm the one behind
mythtvwindows.sourceforge.net
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)
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.
Compilers:
i686-mingw32-gcc (GCC) 4.5.2
x86_64-w64-mingw32-gcc (Gentoo 4.5.2 p1.1, pie-0.4.5) 4.5.2
I don't use mythbuild.sh, I use my own build script that seems to work
nicely.
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:
######
patch -p1 <../../../patches/mythtv-0.24/21-d3d9.diff
patch -p1 <../../../patches/mythtv-0.24/31-videofiles-win32.diff
patch -p1 <../../../patches/mythtv-0.24/11-config-pthread.diff
export QMAKESPEC=win32-g++linux
./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
make -j4
make install
cp
/filestore/mythbuild/qtinstall32/bin/{QtCore4,QtGui4,QtNetwork4,QtOpenGL4,QtSql4,QtWebKit4,QtXml4}.dll
/filestore/mythbuild/installs/mythinstall32/bin/
cp /usr/i686-mingw32/usr/bin/libfreetype-6.dll
/filestore/mythbuild/installs/mythinstall32/bin/
cp /usr/i686-mingw32/usr/bin/zlib1.dll
/filestore/mythbuild/installs/mythinstall32/bin/
cp /usr/i686-mingw32/usr/lib/pthreadGC2.dll
/filestore/mythbuild/installs/mythinstall32/bin/
mkdir -p /filestore/mythbuild/installs/mythinstall32/bin/sqldrivers
cp /filestore/mythbuild/qtinstall32/plugins/sqldrivers/qsqlmysql4.dll
/filestore/mythbuild/installs/mythinstall32/bin/sqldrivers/
cp /filestore/mythbuild/qtinstall32/plugins/sqldrivers/libmysql.dll
/filestore/mythbuild/installs/mythinstall32/bin/
######
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120303/0ad3b4fb/attachment.html
More information about the mythtv-users
mailing list