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

Jonathan Martens jonathan at snetram.nl
Fri Dec 5 22:42:57 UTC 2008


On 5-12-2008 21:45, Frederick Aalbue wrote:
>> -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/mkspecs/win32-g
>> ++' -o os_support.o os_support.c
>> In file included from os_support.c:24:
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:36:
>> error: sy
>> ntax error before '(' token
>> make[2]: *** [os_support.o] Error 1
>> make[2]: Leaving directory
>
>
> Hello Michel...
>
> Had the same problem...
>
> in unistd.h
>      - commented out #include<sys/types.h>
>      - changed useconds_t  to 'unsigned int'
>
> got by this error....not sure why, but completed the entire compile.
>
> Fred

What version are you using? Against which revision did you compile?

I did not have to do this with MinGW-5.1.4 and r18962, only needed to 
add one more patch for the fact that dvd_reader.c contains a

#ifndef WIN32

which should be (at least for MinGW-5.1.4):

#ifndef _WIN32

like mentioned earlier in this thread.

I can at least build r18962 succesfully, still need to test functionality.

Kind regards,

Jonathan


More information about the mythtv-dev mailing list