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

Frederick Aalbue faalbue at yahoo.com
Fri Dec 5 20:45:39 UTC 2008


> -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


--- On Fri, 12/5/08, Michel Meyers <steltek at tcnnet.com> wrote:

> From: Michel Meyers <steltek at tcnnet.com>
> Subject: Re: [mythtv] Win32-Packager fails to compile QT4 (Was: Win32 port fails to compile Freetype)
> To: "Development of mythtv" <mythtv-dev at mythtv.org>
> Cc: and.mayer at aon.at
> Date: Friday, December 5, 2008, 10:44 AM
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jonathan Martens wrote:
> > 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?
> 
> Yes, but as I said before, uncommenting those bits
> doesn't help. I keep
> getting a syntax error in unistd.h line 36:
> 
> make[2]: Entering directory
> `/C/mythtv/mythtv/libs/libavformat'
> gcc -c -march=k8 -fomit-frame-pointer -O3 -Wall -Wno-switch
> - -Wdisabled-optimizat
> ion -Wpointer-arith -Wredundant-decls -funit-at-a-time -w
> - -DQT_LARGEFILE_SUPPORT
>  -DUSING_MINGW -DUSING_WINAUDIO -DUSING_D3D -DMMX -Di386
> -DUSING_DIRECTX
> - -D_GNU_
> SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H
> -D_LARGEFILE_SOURCE
> - -I'/C/mytht
> v/build//include' -I'..' -I'../..'
> -I'../libavcodec' -I'../libavutil'
> - -I'../libm
> ythtv' -I'.'
> -
> -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
> `/C/mythtv/mythtv/libs/libavformat'
> make[1]: *** [sub-libavformat-make_default-ordered] Error 2
> make[1]: Leaving directory `/C/mythtv/mythtv/libs'
> make: *** [sub-libs-make_default-ordered] Error 2
> 
> 
> I guess something's off with my build directory.
> I'll have start over again.
> 
> Greetings,
>         Michel
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> 
> iEYEARECAAYFAkk5WlYACgkQ2Vs+MkscAyVtYQCgiH5c2gLPmOq94StuToAgGC5d
> yasAnjzYEzuiScSbAYIwv1iCl0SBcfir
> =Jh7u
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


      


More information about the mythtv-dev mailing list