[mythtv] Win32-Packager fails to compile QT4 (Was: Win32 port fails to compile Freetype)

buzz davidbuzz at gmail.com
Sun Nov 30 02:10:21 UTC 2008


If it helps with your 5.1.4 ming issues, I've found that 'WIN32' is no
longer defined under 5.1.4 , instead just _WIN32 is defined ( the additional
underscore) .    there are a few places ( 3 I've located so far) where there
is a #ifdef WIN32    or similar that needs the underscore added.
BUzz.

On Sat, Nov 29, 2008 at 9:31 AM, Andreas Mayer <and.mayer at aon.at> wrote:

> Michel,
>
> >You can fix the double problem by changing the inline to __inline__ on
> that
> line.
> >But then my compile fails a bit further due to conflicting definitions of
> InterlockedCompareExchange in QT4 and the MingW includes.
> As I said before it appears that these problems are caused by recent mingw
> installations.
> Until now I did not find the time to find out what the real problem is,
> however by using 5.1.3 mingw and using "previous" selection during
> installation of mingw I was now able to finish compilation of mythtv and
> mythplugins (both at r18962, all plugins).
>
> First I had to change win32-packager.pl to use a build root other than
> c:\mythtv because I have not enough space on c:
> SDL and libvisual failed as described in wiki.
> I had to change fftw-3.1.2 to fftw-3.2 because 3.1.2 was not available
> anymore.
> During qt4 build I had to change -llibmysql to -lmysql in
> src\plugins\sqldrivers\mysql\mysql.pro
> Configure for mythtv failed, I had to change --runtime-prefix to
> --runprefix.
> For compiler error "libs/libavcodec/pthread.c: include/sched.h:152,154
> syntax error before "pid"" I had to insert #else typedef int pid_t; to
> /mingw/include/sched.h:122  (see another post from this week), this appears
> to be a bug in pthreads already fixed in current versions.
> bswap.h had to be changed (see another post from this week).
>
> For the plugins I used "configure --enable-all" and several (currently
> quick
> and dirty) changes.
>
> After installation of the generated package Qt mysql driver was not found
> because qsqlmysqld4.dll was missing in bin\sqldrivers for the default debug
> build and plugins were not loaded because they were installed to
> bin\mythtv\plugins and not to lib\mythtv\plugins.
>
> Until now I was able to start mythtv-setup, mythbackend and mythfrontend on
> my laptop running xp.
>
> For testing mythfrontend I connected to my existing opensuse 11.0 x86
> backend.
> None of the plugins (I'm most interested in mythmusic and mythgallery)
> currently work for me although they did work (at least partialy) in
> previous
> build attempts.
> Neither watching live tv nor watching recording currently works for me (did
> partialy work with previous builds as well).
> For live tv I'm currently able to hear audio but screen stays black.
> I'm getting error messages "VideoOutputD3D Error: StretchRect() failed"
> 2008-11-29 00:09:20.959 VideoOutputD3D: Direct3D device adapter
> successfully
> ini
> tialized
> 2008-11-29 00:09:20.999 OSD Theme Dimensions W: 640 H: 480
> 2008-11-29 00:09:24.474 Realtime priority would require SUID as root.
> 2008-11-29 00:09:24.474 TV: Changing from None to WatchingLiveTV
> 2008-11-29 00:09:24.474 New DB connection, total: 3
> 2008-11-29 00:09:24.484 Connected to database 'mythconverg_18962' at host:
> 192.1
> 68.9.12
> 2008-11-29 00:09:24.494 Couldn't load deinterlace filter none
> 2008-11-29 00:09:24.504 Video timing method: USleep with busy wait
> 2008-11-29 00:09:24.644 VideoOutputD3D Error: StretchRect() failed
> ...
> 2008-11-29 00:09:25.556 Couldn't load deinterlace filter none
> 2008-11-29 00:09:25.586 TV: Attempting to change from WatchingLiveTV to
> None
> 2008-11-29 00:09:26.737 VideoOutputD3D Error: StretchRect() failed
> 2008-11-29 00:09:26.747 AFD: Opened codec 0x24f2e740, id(MPEG2VIDEO)
> type(Video)
>
> 2008-11-29 00:09:26.747 AFD: codec MP3 has 2 channels
> 2008-11-29 00:09:26.747 AFD: Opened codec 0x24f2eac0, id(MP3) type(Audio)
> 2008-11-29 00:09:26.958 VideoOutputD3D Error: StretchRect() failed
> 2008-11-29 00:09:27.178 VideoOutputD3D Error: StretchRect() failed
> 2008-11-29 00:09:27.238 Opening audio device 'Windows:'. ch 2(2) sr 48000
> 2008-11-29 00:09:27.278 NVP: Enabling Audio
> 2008-11-29 00:09:30.182 TV: Changing from WatchingLiveTV to None
>
> I'm not sure how to proceed from here ...
> First of all I need to find out why the windows port does not work for me
> although others have had success.
> Next I will try to contribute by finding out why building with mingw 5.1.4
> does not work and why the plugins do not work.
>
> Greetings,
> Andreas
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20081130/69a1fa56/attachment.htm 


More information about the mythtv-dev mailing list