[mythtv] Win32-Packager fails to compile QT4 (Was: Win32 port fails to compile Freetype)
Jonathan Martens
jonathan at snetram.nl
Fri Dec 5 08:17:36 UTC 2008
On 5-12-2008 8:35, Michel Meyers wrote:
> That doesn't work for me.
You are aware that this is a patch for mythtv/libs/libmythdb/compat.h?
I have not finished testing all the patches yet as the generation of the
new build environment takes a awfully long time. But so far I have
patches for:
MinGW:
sched.h
sspi.h
stdlib.h
Qt:
qatomic_windows.h
MythTV:
bswap.h
compat.h
pthread.h
Attached are all the patches I have created so far (against 18962 as
that was the latest revision someone reported a successfull win32 build
against AFAIK). These patches should be applied from the top of the
affected package using
patch -p0 < /path/to/patch
So the MythTV patches are applied with code like this:
# Patch bswap.h
[ always => [],
shell => ['cd '.$unixmythtv.'mythtv/' ,
'patch -p0 < '.$unixmythtv .'patches/MythTV-bswap.h.patch'],
comment => "Apply patch to bswap.h" ],
# Patch compat.h
[ always => [],
shell => ['cd '.$unixmythtv.'mythtv/' ,
'patch -p0 < '.$unixmythtv .'patches/MythTV-compat.h.patch'],
comment => "Apply patch to compat.h" ],
# Patch pthread.h
[ always => [],
shell => ['cd '.$unixmythtv.'mythtv/' ,
'patch -p0 < '.$unixmythtv .'patches/MythTV-pthread.h.patch'],
comment => "Apply patch to pthread.h" ],
[ pause => 'check appliance of MythTV patches.... press [enter] to
continue !'],
Above section is inserted just before the MythTV build actually starts.
If it all works I will try to compile a patch against the packaging
script as well as that will take some more work (take out modifications
I have made to allow for a custom MySQL install location as well as
changes so it uses latest Qt, version 4.4.3.
> Can you tell me what your original definition of usleep
> (in unistd.h) looks like?
The original definition of usleep in MinGW 5.1.4's inlcude/unistd.h
looks like this:
int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
#endif /* Not __NO_ISOCEXT */
Kind regards,
Jonathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MinGW-sched.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MinGW-sspi.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0001.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MinGW-stdlib.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0002.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Qt-qatomic_windows.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0003.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MythTV-bswap.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0004.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MythTV-compat.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0005.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MythTV-pthread.h.patch
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20081205/9ac008a0/attachment-0006.diff
More information about the mythtv-dev
mailing list