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

Michel Meyers steltek at tcnnet.com
Mon Nov 10 12:40:59 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michel Meyers wrote:
> Hello,
> 
> Replying to myself:
> 
> The compile process continued after my last 'fix' but then failed to
> compile QT:
> 
> C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60:
> error: `UN'UNICODE_STRING' does not name a type
> 
> It appears that sspi.h is missing an include at line 11:
> 
> #include <subauth.h>
> 
> I guess the packager would have to patch that in as well.
> 

And more compilation issues:

g++ -c -g -Wall -frtti -fexceptions -mthreads -DQT_THREAD_SUPPORT
- -DUNICODE -DQT
_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII
- -DQT_ASCII_CAST_WARNIN
GS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -I"..\..\include"
- -I"tmp" -
I"..\..\include\QtCore"
- -I"c:\MSys\1.0\qt-win-opensource-src-4.4.0\include\qtmai
n" -I"tmp\rcc\debug_shared" -I"tmp"
- -I"c:\MSys\1.0\qt-win-opensource-src-4.4.0\i
nclude\ActiveQt" -I"tmp\moc\debug_shared" -I"."
- -I"..\..\mkspecs\win32-g++" -o t
mp\obj\debug_shared\qtmain_win.o qtmain_win.cpp
In file included from ../../include/QtCore/qatomic_windows.h:1,
                 from
../../include/QtCore/../../src/corelib/arch/qatomic_arch.h
:78,
                 from ../../include/QtCore/qatomic_arch.h:1,
                 from
../../include/QtCore/../../src/corelib/thread/qbasicatomic
.h:209,
                 from ../../include/QtCore/qbasicatomic.h:1,
                 from
../../include/QtCore/../../src/corelib/thread/qatomic.h:48
,
                 from ../../include/QtCore/qatomic.h:1,
                 from
../../include/QtCore/../../src/corelib/tools/qbytearray.h:
48,
                 from ../../include/QtCore/qbytearray.h:1,
                 from qtmain_win.cpp:45:
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:393:
error: declar
ation of C function `long int InterlockedCompareExchange(long int*, long
int, lo
ng int)' conflicts with
C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
error
: previous declaration `LONG InterlockedCompareExchange(volatile LONG*,
LONG, LO
NG)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:394:
error: declar
ation of C function `long int InterlockedIncrement(long int*)' conflicts
with
C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676:
error
: previous declaration `LONG InterlockedIncrement(volatile LONG*)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:395:
error: declar
ation of C function `long int InterlockedDecrement(long int*)' conflicts
with
C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667:
error
: previous declaration `LONG InterlockedDecrement(volatile LONG*)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:396:
error: declar
ation of C function `long int InterlockedExchange(long int*, long int)'
conflict
s with
C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668:
error
: previous declaration `LONG InterlockedExchange(volatile LONG*, LONG)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:397:
error: declar
ation of C function `long int InterlockedExchangeAdd(long int*, long
int)' confl
icts with
C:/MinGW//bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672:
error
: previous declaration `LONG InterlockedExchangeAdd(volatile LONG*,
LONG)' here
mingw32-make[3]: *** [tmp/obj/debug_shared/qtmain_win.o] Error 1
mingw32-make[3]: Leaving directory
`C:/MSys/1.0/qt-win-opensource-src-4.4.0/src/
winmain'
mingw32-make[2]: *** [debug-all] Error 2
mingw32-make[2]: Leaving directory
`C:/MSys/1.0/qt-win-opensource-src-4.4.0/src/
winmain'
mingw32-make[1]: *** [all] Error 2
mingw32-make[1]: Leaving directory
`C:/MSys/1.0/qt-win-opensource-src-4.4.0/src/
winmain'
mingw32-make: *** [sub-winmain-make_default-ordered] Error 2

C:\MSys\1.0\qt-win-opensource-src-4.4.0>goto END
EFFECT FAILED (file -> exec): unable to locate expected file
(C:/MSys/1.0/qt-win
- -opensource-src-4.4.0/lib/QtCore4.dll).


Not sure what's wrong there again. Anybody got an idea?

(Sorry for all the spam. I'd like to have a working Mythtv frontend
under Windows and am willing to test/debug the compilation process if a
coder can help me out.)

Greetings,
       Michel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkkYK9sACgkQ2Vs+MkscAyVg8ACZATLdBgFBPnwdKeRqr1YDIHnO
sDcAoJoxOaRhH35v6gOeJ4+ccC9WBvYj
=jfdY
-----END PGP SIGNATURE-----



More information about the mythtv-dev mailing list