PDA

View Full Version : Compile 4.4.0


LordQt
6th May 2008, 16:38
Hello friends I try to compile 4.4.0, but it fails. I configure qt with the string
configure.exe -debug-and-release -platform win32-g++ -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-libpng -qt-libtiff -qt-libmng -qt-libjpeg -no-qt3support -exceptions -stl -qt-zlib

after a while running the command mingw32-make I get this error:
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 217):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 2ea):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 309):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 337):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 8b9):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb a99):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b45):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b64):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b92):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb e20):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb ec8):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb f9b):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb fba):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb fe8):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc 56a):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc 8ee):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\quuid.o(.text+0x22e3): In function `ZN5QUuid10createUuidE
v':
C:/Qt/4.4.0/src/corelib/plugin/quuid.cpp:421: undefined reference to `CoCreateGu
id@4'
./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+ 0x2ac5): In function `ZN28QE
ventDispatcherWin32Private16doWsaAsyncSelectEi':
C:/Qt/4.4.0/src/corelib/kernel/qeventdispatcher_win.cpp:625: undefined reference
to `WSAAsyncSelect@16'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.4.0/src/corelib'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/corelib'
mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

C:\Qt\4.4.0>

Can anybody imagin whats wrong ?????

LordQt
7th May 2008, 17:28
So I download the exe with mingw and install it properly. It work for release versions.

after I run the Qt command promt ( build debug libs) and the make process stop with the errorwindres -i QtCored_resource.rc -o tmp\obj\debug_shared\QtCored_resource_res.o --
include-dir=.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.4.0\lib\libQtCored4.a -o ..\..
\lib\QtCored4.dll object_script.QtCored.Debug -L"c:\Qt\4.4.0\lib" -L"c:\Program
me\SQLXML 4.0\bin\" -L"c:\Qt\4.3.2\lib" -L"c:\Qt\4.4.0\lib" -L"c:\Qt\4.4.0\lib"
-lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 tmp\obj\debug_s
hared\QtCored_resource_res.o
Creating library file: c:\Qt\4.4.0\lib\libQtCored4.a
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 221): In function `Z8readLin
kRK7QString':
C:/Qt/4.4.0/src/corelib/io/qfsfileengine_win.cpp:1448: undefined reference to `C
oCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 240):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 26e):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 295):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 429):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 46a):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 489):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 4ba):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 4e1):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 766):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 7b7):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 7d6):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 807):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 82e):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa 9c5):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa a06):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa a25):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa a56):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa a7d):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa d81):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa ec6): In function `ZN13QFSFi
leEngine4linkERK7QString':
C:/Qt/4.4.0/src/corelib/io/qfsfileengine_win.cpp:1555: undefined reference to `C
oCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa ee5):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa f13):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 16f):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 217):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 2ea):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 309):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 337):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb 8b9):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb a99):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b45):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b64):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb b92):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb e20):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb ec8):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb f9b):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb fba):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb fe8):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc 56a):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc 8ee):C:/Qt/4.4.0/src/corelib
/io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
./tmp\obj\debug_shared\quuid.o(.text+0x22e3): In function `ZN5QUuid10createUuidE
v':
C:/Qt/4.4.0/src/corelib/plugin/quuid.cpp:421: undefined reference to `CoCreateGu
id@4'
./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+ 0x2ac5): In function `ZN28QE
ventDispatcherWin32Private16doWsaAsyncSelectEi':
C:/Qt/4.4.0/src/corelib/kernel/qeventdispatcher_win.cpp:625: undefined reference
to `WSAAsyncSelect@16'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.4.0/src/corelib'
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/corelib'
mingw32-make: *** [debug-C__Qt_4_4_0_src_corelib] Error 2
C:\Qt\4.4.0\src>


slowly but surely I am going to despaired

LordQt
8th May 2008, 12:06
What wrong here nobody any ideas???

LordQt
27th May 2008, 11:30
Ok,

I update my Mingw for dshow.h and install Microsoft's DirectX SDK and I compile and compile I set my env variables correctly.:

INCLUDE : C:\MinGW\include;C:\Qt\4.4.0\include;C:\Programme\ Microsoft DirectX SDK (March 2008)\Include

LIB: C:\MinGW\lib;C:\Qt\4.4.0\lib

QMAKESPEC: win32-g++

QTDIR: C:\Qt\4.4.0

And I get every time the same error......

mingw32-make[4]: Entering directory `C:/Qt/4.4.0/src/plugins/phonon/ds9'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
In file included from c:/MinGW/include/dshow.h:7,
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/compointer.h
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/backendnode.
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/abstractvide
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/videorendere
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\video renderer
c:/MinGW/include/strmif.h:15: error: `LONGLONG' does not name a type
c:/MinGW/include/strmif.h:623: error: `HRESULT' does not name a type
c:/MinGW/include/strmif.h:624: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:625: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:626: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:627: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:630: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:633: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:634: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:635: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:636: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:637: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:640: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:643: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:644: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:645: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:646: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:647: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:650: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:651: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:652: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:655: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:656: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:657: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:658: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:659: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:660: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:661: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:662: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:663: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:666: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:667: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:668: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:669: error: `LONG' does not name a type
c:/MinGW/include/strmif.h:670: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:671: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:672: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:674: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:675: error: `LONG' does not name a type
c:/MinGW/include/strmif.h:678: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:679: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:680: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:681: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:682: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:685: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:686: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:690: error: `LPWSTR' does not name a type
c:/MinGW/include/strmif.h:691: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:692: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:693: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:694: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:695: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:696: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:697: error: `UINT' does not name a type
c:/MinGW/include/strmif.h:702: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:703: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:704: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:705: error: `UINT' does not name a type
c:/MinGW/include/strmif.h:709: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:710: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:711: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:712: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:713: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:714: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:715: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:716: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:717: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:718: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:721: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:722: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:723: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:726: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:727: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:728: error: `COLORREF' does not name a type
c:/MinGW/include/strmif.h:729: error: `COLORREF' does not name a type
c:/MinGW/include/strmif.h:735: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:736: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:741: error: `LCID' does not name a type
c:/MinGW/include/strmif.h:743: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:744: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:745: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:746: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:747: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:750: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:751: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:758: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:759: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:760: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:761: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:769: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:770: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:771: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:772: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:775: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:776: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:777: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:779: error: `WORD' does not name a type
c:/MinGW/include/strmif.h:786: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:787: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:788: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:789: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:790: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:809: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:810: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:811: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:814: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:815: error: `ULONG' does not name a type




and so on.

Whats wrong here I read the trolltech docs and install all software that is needed????


Can anybody help???

ChristianEhrlicher
27th May 2008, 12:23
You can't use MS SDK with mingw. Update your MinGW installation with the Installer provided by sf.net/projects/mingw . Especially w32-api.
The linker error comes from a missing symbol in libole32.dll.a (CoInitialize is defined in ole2.dll) so I assume you've an outdated/wrong libole32.dll.a around.

lyuts
27th May 2008, 15:18
Ok,

I update my Mingw for dshow.h and install Microsoft's DirectX SDK and I compile and compile I set my env variables correctly.:

INCLUDE : C:\MinGW\include;C:\Qt\4.4.0\include;C:\Programme\ Microsoft DirectX SDK (March 2008)\Include

LIB: C:\MinGW\lib;C:\Qt\4.4.0\lib

QMAKESPEC: win32-g++

QTDIR: C:\Qt\4.4.0

And I get every time the same error......

mingw32-make[4]: Entering directory `C:/Qt/4.4.0/src/plugins/phonon/ds9'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
In file included from c:/MinGW/include/dshow.h:7,
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/compointer.h
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/backendnode.
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/abstractvide
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/videorendere
from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\video renderer
c:/MinGW/include/strmif.h:15: error: `LONGLONG' does not name a type
c:/MinGW/include/strmif.h:623: error: `HRESULT' does not name a type
c:/MinGW/include/strmif.h:624: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:625: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:626: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:627: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:630: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:633: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:634: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:635: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:636: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:637: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:640: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:643: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:644: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:645: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:646: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:647: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:650: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:651: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:652: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:655: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:656: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:657: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:658: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:659: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:660: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:661: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:662: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:663: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:666: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:667: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:668: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:669: error: `LONG' does not name a type
c:/MinGW/include/strmif.h:670: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:671: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:672: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:674: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:675: error: `LONG' does not name a type
c:/MinGW/include/strmif.h:678: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:679: error: `REFERENCE_TIME' does not name a type
c:/MinGW/include/strmif.h:680: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:681: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:682: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:685: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:686: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:690: error: `LPWSTR' does not name a type
c:/MinGW/include/strmif.h:691: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:692: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:693: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:694: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:695: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:696: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:697: error: `UINT' does not name a type
c:/MinGW/include/strmif.h:702: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:703: error: expected `;' before '*' token
c:/MinGW/include/strmif.h:704: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:705: error: `UINT' does not name a type
c:/MinGW/include/strmif.h:709: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:710: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:711: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:712: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:713: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:714: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:715: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:716: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:717: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:718: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:721: error: `GUID' does not name a type
c:/MinGW/include/strmif.h:722: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:723: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:726: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:727: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:728: error: `COLORREF' does not name a type
c:/MinGW/include/strmif.h:729: error: `COLORREF' does not name a type
c:/MinGW/include/strmif.h:735: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:736: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:741: error: `LCID' does not name a type
c:/MinGW/include/strmif.h:743: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:744: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:745: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:746: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:747: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:750: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:751: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:758: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:759: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:760: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:761: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:769: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:770: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:771: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:772: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:775: error: `BYTE' does not name a type
c:/MinGW/include/strmif.h:776: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:777: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:779: error: `WORD' does not name a type
c:/MinGW/include/strmif.h:786: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:787: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:788: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:789: error: `BOOL' does not name a type
c:/MinGW/include/strmif.h:790: error: `DWORD' does not name a type
c:/MinGW/include/strmif.h:809: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:810: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:811: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:814: error: `ULONG' does not name a type
c:/MinGW/include/strmif.h:815: error: `ULONG' does not name a type




and so on.

Whats wrong here I read the trolltech docs and install all software that is needed????


Can anybody help???

What Windows are you using? What version of MinGW is installed?

LordQt
27th May 2008, 15:56
Thank youu very much.

Ok I deinstall the sdk and I reinstall mingw with the installer 5.1.4. I set up my env correctly and after compiling codecs during entering the folder ds9 it occures an error.

I donīt understand why......

LordQt
27th May 2008, 15:59
I use Windows Xp with SP2

ChristianEhrlicher
27th May 2008, 16:05
Do you need phonon? If not the disable it (pass -no-phonon to configure.exe).

And now I also figured out why it works for us - we're using another dshow.h. Try to add '#include <windows.h>' in front of dshow.h (just before the first include) to see if it helps. If not - blame the mingw people. We have to use the directx headers from the wine project to get it compile. You can also find them here: http://websvn.kde.org/trunk/kdesupport/kdewin32/include/directx/

LordQt
27th May 2008, 16:29
Thanx I will try to deactivate phonon, but that is not a option for me. It must be able to compile that Lib with phonon or not???


I insert in the file dshow.h the line

#include <windows.h>
#include <strmif.h>
#include <amaudio.h>
#include <amvideo.h>
#include <evcode.h>
#include <audevcod.h>
#include <dvdevcod.h>
#include <errors.h>
#include <vptype.h>
#include <ks.h>
#include <vidcap.h>
#include <bdatypes.h>
#include <dvdmedia.h>
#include <il21dec.h>
#include <ddraw.h> /* DDSCAPS2, DDPIXELFORMAT */
#ifndef _WINGDI_H
#include <wingdi.h> /* BITMAPINFOHEADER */
#endif


before #include <strmif.h>

I will give you a feedback as soon as possible, but its horrble to compile or try to compile every day that long awaited qt version. Its enough but thanx to all who help me

ChristianEhrlicher
27th May 2008, 16:48
As I said - it looks like it's currently not possible with plain headers from MinGW. We used the headers from Wine to get the ds9 backend compile with kde4 on windows.

LordQt
27th May 2008, 21:20
Dear Christian,

could you explain in very short steps how do you make it possible to compile it. What are you copy to what folder or what are you subtitute with what......


best regars

LordQt
27th May 2008, 23:57
Dear Christian,
I follow your explanation. I add #include <windows.h> in dshow.h. and I configure it with the argumentconfigure.exe -debug-and-release -platform win32-g++ -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-libpng -qt-libtiff -qt-libmng -qt-libjpeg -no-qt3support -exceptions -stl -qt-zlib -phonon

and got the same error. Look at the attached file.

I willl try it now without phonon. Iīll be back ;o))

ChristianEhrlicher
28th May 2008, 07:53
1. Make a backup of your mingw include dir
2. download and unpack http://winkde.org/pub/kde/ports/win32/repository/kdesupport/kdewin32-mingw-0.3.7-1-lib.tar.bz2
3. copy over all files listed here: http://websvn.kde.org/trunk/kdesupport/kdewin32/include/directx/ to your mingw include dir
4. go into qt4-src/src/phonon and restart compiling

LordQt
28th May 2008, 13:38
Dear Christian,

thanx to your steps. I compile it again until the known error occures. Then I switch the include with my old mingw files to the downloaded and updated include folder in mingw.

;o((( It occurres an another error. I abandon the Compile adventures to get a full compiles qt 4.4.0 LIB. Itīs terrible really terrible.

P.S.: But Christian Danke vielmals.........

LordQt
29th May 2008, 08:28
So I compile this time without Phonon and I get new errors ;o((

ChristianEhrlicher
29th May 2008, 08:33
Also disable webkit if you don't need it.
Where do you have tchar.h from? From my source or is it original mingw? It's really strange that you get such an error inside an mingw header.

I'll try to compile qt/mingw without our kdewin32-headers and report all bugs to tt so they get fixed in 4.4.1
For now you could also try 4.3.5 which doesn't contain all the new stuff like phonon or webkit and should compile better.

LordQt
29th May 2008, 10:51
Hello I will try it without webkit.

The Header you mentioned ist the original from mingw installed with the 5.1.4 installer.

Am I the only one who have this problem????

LordQt
29th May 2008, 14:43
Hello Christian,

just for your information:
I have compile qt 435 from src with the parameters

configure.exe -debug-and-release -platform win32-g++ -qt-sql-odbc -qt-sql-sqlite -qt-gif -qt-libpng -qt-libtiff -qt-libmng -qt-libjpeg -no-qt3support -exceptions -stl -qt-zlib without any error