[mythtv-users] Cross-compiled win32 binaries failing to run

Markus Mattinen thechoris at gmail.com
Tue Dec 20 21:43:54 UTC 2011


>
> If you're using mythbuild.sh then the script should be setting the flags
> appropriately.  Just for the record what does mythtv/config.log contain?
>
config.log:
   ./configure --prefix=/home/markus/packages/usr/cross-windows-mythtv-git/mythinstall
--runprefix=. --qmake=/home/markus/packages/usr/cross-windows-mythtv-git/mythbuild/qt-everywhere-opensource-src-4.7.0/bin/qmake
--enable-cross-compile --cross-prefix=i486-mingw32-
--target_os=mingw32 --arch=x86
--sysinclude=/home/markus/packages/usr/cross-windows-mythtv-git/mythinstall/include
--extra-cflags=-I/home/markus/packages/usr/cross-windows-mythtv-git/mythinstall/include
--extra-cxxflags=-I/home/markus/packages/usr/cross-windows-mythtv-git/mythinstall/include
--extra-libs=-L/home/markus/packages/usr/cross-windows-mythtv-git/mythinstall/lib
--disable-avdevice --disable-avfilter --enable-libfftw3
--disable-joystick-menu --disable-directfb --disable-lirc
--disable-hdhomerun --disable-symbol-visibility --compile-type=debug
>
> I have just built git master using mythbuild.sh - it needs this patch to
> compile:
> --- a/mythtv/libs/libmythtv/dtvrecorder.cpp
> +++ b/mythtv/libs/libmythtv/dtvrecorder.cpp
> @@ -330,7 +330,7 @@ static QDateTime ts_to_qdatetime(
>     uint64_t pts, uint64_t pts_first, QDateTime &pts_first_dt)
>  {
>     if (pts < pts_first)
> -        pts += 0x1FFFFFFFF;
> +        pts += Q_UINT64_C(0x1FFFFFFFF);
>     QDateTime dt = pts_first_dt;
>     return dt.addMSecs((pts - pts_first)/90);
>  }
>
> The built mythfrontend will run using Wine but needs "-O
> ThemePainter=qt -O UIPainter=Qt" options.
>
>

Interesting that I did not need to add such a patch. It always
compiles without any errors, it's just the final product that won't
run.


More information about the mythtv-users mailing list