Results 1 to 19 of 19

Thread: Compile 4.4.0

  1. #1
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Compile 4.4.0

    Hello friends I try to compile 4.4.0, but it fails. I configure qt with the string
    Qt Code:
    1. 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
    To copy to clipboard, switch view to plain text mode 

    after a while running the command mingw32-make I get this error:
    Qt Code:
    1. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb217):C:/Qt/4.4.0/src/corelib
    2. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    3. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb2ea):C:/Qt/4.4.0/src/corelib
    4. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    5. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb309):C:/Qt/4.4.0/src/corelib
    6. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    7. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb337):C:/Qt/4.4.0/src/corelib
    8. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    9. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb8b9):C:/Qt/4.4.0/src/corelib
    10. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    11. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xba99):C:/Qt/4.4.0/src/corelib
    12. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    13. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb45):C:/Qt/4.4.0/src/corelib
    14. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    15. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb64):C:/Qt/4.4.0/src/corelib
    16. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    17. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb92):C:/Qt/4.4.0/src/corelib
    18. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    19. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbe20):C:/Qt/4.4.0/src/corelib
    20. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    21. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbec8):C:/Qt/4.4.0/src/corelib
    22. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    23. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbf9b):C:/Qt/4.4.0/src/corelib
    24. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    25. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbfba):C:/Qt/4.4.0/src/corelib
    26. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    27. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbfe8):C:/Qt/4.4.0/src/corelib
    28. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    29. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc56a):C:/Qt/4.4.0/src/corelib
    30. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    31. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc8ee):C:/Qt/4.4.0/src/corelib
    32. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    33. ./tmp\obj\debug_shared\quuid.o(.text+0x22e3): In function `ZN5QUuid10createUuidE
    34. v':
    35. C:/Qt/4.4.0/src/corelib/plugin/quuid.cpp:421: undefined reference to `CoCreateGu
    36. id@4'
    37. ./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+0x2ac5): In function `ZN28QE
    38. ventDispatcherWin32Private16doWsaAsyncSelectEi':
    39. C:/Qt/4.4.0/src/corelib/kernel/qeventdispatcher_win.cpp:625: undefined reference
    40. to `WSAAsyncSelect@16'
    41. collect2: ld returned 1 exit status
    42. mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
    43. mingw32-make[2]: Leaving directory `C:/Qt/4.4.0/src/corelib'
    44. mingw32-make[1]: *** [debug-all] Error 2
    45. mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/corelib'
    46. mingw32-make: *** [sub-corelib-make_default-ordered] Error 2
    47.  
    48. C:\Qt\4.4.0>
    To copy to clipboard, switch view to plain text mode 

    Can anybody imagin whats wrong ?????

  2. #2
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    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 error
    Qt Code:
    1. windres -i QtCored_resource.rc -o tmp\obj\debug_shared\QtCored_resource_res.o --
    2. include-dir=.
    3. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    4. oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.4.0\lib\libQtCored4.a -o ..\..
    5. \lib\QtCored4.dll object_script.QtCored.Debug -L"c:\Qt\4.4.0\lib" -L"c:\Program
    6. 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"
    7. -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 tmp\obj\debug_s
    8. hared\QtCored_resource_res.o
    9. Creating library file: c:\Qt\4.4.0\lib\libQtCored4.a
    10. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa221): In function `Z8readLin
    11. kRK7QString':
    12. C:/Qt/4.4.0/src/corelib/io/qfsfileengine_win.cpp:1448: undefined reference to `C
    13. oCreateInstance@20'
    14. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa240):C:/Qt/4.4.0/src/corelib
    15. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    16. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa26e):C:/Qt/4.4.0/src/corelib
    17. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    18. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa295):C:/Qt/4.4.0/src/corelib
    19. /io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    20. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa429):C:/Qt/4.4.0/src/corelib
    21. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    22. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa46a):C:/Qt/4.4.0/src/corelib
    23. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    24. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa489):C:/Qt/4.4.0/src/corelib
    25. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    26. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa4ba):C:/Qt/4.4.0/src/corelib
    27. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    28. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa4e1):C:/Qt/4.4.0/src/corelib
    29. /io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    30. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa766):C:/Qt/4.4.0/src/corelib
    31. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    32. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa7b7):C:/Qt/4.4.0/src/corelib
    33. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    34. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa7d6):C:/Qt/4.4.0/src/corelib
    35. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    36. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa807):C:/Qt/4.4.0/src/corelib
    37. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    38. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa82e):C:/Qt/4.4.0/src/corelib
    39. /io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    40. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xa9c5):C:/Qt/4.4.0/src/corelib
    41. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    42. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaa06):C:/Qt/4.4.0/src/corelib
    43. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    44. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaa25):C:/Qt/4.4.0/src/corelib
    45. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoInitialize@4'
    46. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaa56):C:/Qt/4.4.0/src/corelib
    47. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoCreateInstance@20'
    48. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaa7d):C:/Qt/4.4.0/src/corelib
    49. /io/qfsfileengine_win.cpp:1448: undefined reference to `IID_IPersistFile'
    50. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xad81):C:/Qt/4.4.0/src/corelib
    51. /io/qfsfileengine_win.cpp:1448: undefined reference to `CoUninitialize@0'
    52. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaec6): In function `ZN13QFSFi
    53. leEngine4linkERK7QString':
    54. C:/Qt/4.4.0/src/corelib/io/qfsfileengine_win.cpp:1555: undefined reference to `C
    55. oCreateInstance@20'
    56. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaee5):C:/Qt/4.4.0/src/corelib
    57. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    58. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xaf13):C:/Qt/4.4.0/src/corelib
    59. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    60. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb16f):C:/Qt/4.4.0/src/corelib
    61. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    62. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb217):C:/Qt/4.4.0/src/corelib
    63. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    64. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb2ea):C:/Qt/4.4.0/src/corelib
    65. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    66. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb309):C:/Qt/4.4.0/src/corelib
    67. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    68. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb337):C:/Qt/4.4.0/src/corelib
    69. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    70. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xb8b9):C:/Qt/4.4.0/src/corelib
    71. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    72. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xba99):C:/Qt/4.4.0/src/corelib
    73. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    74. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb45):C:/Qt/4.4.0/src/corelib
    75. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    76. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb64):C:/Qt/4.4.0/src/corelib
    77. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    78. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbb92):C:/Qt/4.4.0/src/corelib
    79. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    80. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbe20):C:/Qt/4.4.0/src/corelib
    81. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    82. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbec8):C:/Qt/4.4.0/src/corelib
    83. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    84. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbf9b):C:/Qt/4.4.0/src/corelib
    85. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    86. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbfba):C:/Qt/4.4.0/src/corelib
    87. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoInitialize@4'
    88. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xbfe8):C:/Qt/4.4.0/src/corelib
    89. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoCreateInstance@20'
    90. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc56a):C:/Qt/4.4.0/src/corelib
    91. /io/qfsfileengine_win.cpp:1555: undefined reference to `IID_IPersistFile'
    92. ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0xc8ee):C:/Qt/4.4.0/src/corelib
    93. /io/qfsfileengine_win.cpp:1555: undefined reference to `CoUninitialize@0'
    94. ./tmp\obj\debug_shared\quuid.o(.text+0x22e3): In function `ZN5QUuid10createUuidE
    95. v':
    96. C:/Qt/4.4.0/src/corelib/plugin/quuid.cpp:421: undefined reference to `CoCreateGu
    97. id@4'
    98. ./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+0x2ac5): In function `ZN28QE
    99. ventDispatcherWin32Private16doWsaAsyncSelectEi':
    100. C:/Qt/4.4.0/src/corelib/kernel/qeventdispatcher_win.cpp:625: undefined reference
    101. to `WSAAsyncSelect@16'
    102. collect2: ld returned 1 exit status
    103. mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
    104. mingw32-make[2]: Leaving directory `C:/Qt/4.4.0/src/corelib'
    105. mingw32-make[1]: *** [debug] Error 2
    106. mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/corelib'
    107. mingw32-make: *** [debug-C__Qt_4_4_0_src_corelib] Error 2
    108. C:\Qt\4.4.0\src>
    To copy to clipboard, switch view to plain text mode 


    slowly but surely I am going to despaired

  3. #3
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    What wrong here nobody any ideas???

  4. #4
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

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

    Qt Code:
    1. mingw32-make[4]: Entering directory `C:/Qt/4.4.0/src/plugins/phonon/ds9'
    2. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    3. In file included from c:/MinGW/include/dshow.h:7,
    4. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/compointer.h
    5. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/backendnode.
    6. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/abstractvide
    7. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/videorendere
    8. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\videorenderer
    9. c:/MinGW/include/strmif.h:15: error: `LONGLONG' does not name a type
    10. c:/MinGW/include/strmif.h:623: error: `HRESULT' does not name a type
    11. c:/MinGW/include/strmif.h:624: error: `BOOL' does not name a type
    12. c:/MinGW/include/strmif.h:625: error: `BOOL' does not name a type
    13. c:/MinGW/include/strmif.h:626: error: `BOOL' does not name a type
    14. c:/MinGW/include/strmif.h:627: error: `BOOL' does not name a type
    15. c:/MinGW/include/strmif.h:630: error: `DWORD' does not name a type
    16. c:/MinGW/include/strmif.h:633: error: `GUID' does not name a type
    17. c:/MinGW/include/strmif.h:634: error: `GUID' does not name a type
    18. c:/MinGW/include/strmif.h:635: error: `DWORD' does not name a type
    19. c:/MinGW/include/strmif.h:636: error: `DWORD' does not name a type
    20. c:/MinGW/include/strmif.h:637: error: `BYTE' does not name a type
    21. c:/MinGW/include/strmif.h:640: error: `BYTE' does not name a type
    22. c:/MinGW/include/strmif.h:643: error: `GUID' does not name a type
    23. c:/MinGW/include/strmif.h:644: error: `GUID' does not name a type
    24. c:/MinGW/include/strmif.h:645: error: `DWORD' does not name a type
    25. c:/MinGW/include/strmif.h:646: error: `DWORD' does not name a type
    26. c:/MinGW/include/strmif.h:647: error: `BYTE' does not name a type
    27. c:/MinGW/include/strmif.h:650: error: `GUID' does not name a type
    28. c:/MinGW/include/strmif.h:651: error: `DWORD' does not name a type
    29. c:/MinGW/include/strmif.h:652: error: `BYTE' does not name a type
    30. c:/MinGW/include/strmif.h:655: error: `GUID' does not name a type
    31. c:/MinGW/include/strmif.h:656: error: `GUID' does not name a type
    32. c:/MinGW/include/strmif.h:657: error: `BOOL' does not name a type
    33. c:/MinGW/include/strmif.h:658: error: `BOOL' does not name a type
    34. c:/MinGW/include/strmif.h:659: error: `ULONG' does not name a type
    35. c:/MinGW/include/strmif.h:660: error: `GUID' does not name a type
    36. c:/MinGW/include/strmif.h:661: error: expected `;' before '*' token
    37. c:/MinGW/include/strmif.h:662: error: `ULONG' does not name a type
    38. c:/MinGW/include/strmif.h:663: error: expected `;' before '*' token
    39. c:/MinGW/include/strmif.h:666: error: `DWORD' does not name a type
    40. c:/MinGW/include/strmif.h:667: error: `DWORD' does not name a type
    41. c:/MinGW/include/strmif.h:668: error: `DWORD' does not name a type
    42. c:/MinGW/include/strmif.h:669: error: `LONG' does not name a type
    43. c:/MinGW/include/strmif.h:670: error: `REFERENCE_TIME' does not name a type
    44. c:/MinGW/include/strmif.h:671: error: `REFERENCE_TIME' does not name a type
    45. c:/MinGW/include/strmif.h:672: error: `DWORD' does not name a type
    46. c:/MinGW/include/strmif.h:674: error: expected `;' before '*' token
    47. c:/MinGW/include/strmif.h:675: error: `LONG' does not name a type
    48. c:/MinGW/include/strmif.h:678: error: `REFERENCE_TIME' does not name a type
    49. c:/MinGW/include/strmif.h:679: error: `REFERENCE_TIME' does not name a type
    50. c:/MinGW/include/strmif.h:680: error: `DWORD' does not name a type
    51. c:/MinGW/include/strmif.h:681: error: `DWORD' does not name a type
    52. c:/MinGW/include/strmif.h:682: error: `DWORD' does not name a type
    53. c:/MinGW/include/strmif.h:685: error: expected `;' before '*' token
    54. c:/MinGW/include/strmif.h:686: error: expected `;' before '*' token
    55. c:/MinGW/include/strmif.h:690: error: `LPWSTR' does not name a type
    56. c:/MinGW/include/strmif.h:691: error: `BOOL' does not name a type
    57. c:/MinGW/include/strmif.h:692: error: `BOOL' does not name a type
    58. c:/MinGW/include/strmif.h:693: error: `BOOL' does not name a type
    59. c:/MinGW/include/strmif.h:694: error: `BOOL' does not name a type
    60. c:/MinGW/include/strmif.h:695: error: expected `;' before '*' token
    61. c:/MinGW/include/strmif.h:696: error: expected `;' before '*' token
    62. c:/MinGW/include/strmif.h:697: error: `UINT' does not name a type
    63. c:/MinGW/include/strmif.h:702: error: expected `;' before '*' token
    64. c:/MinGW/include/strmif.h:703: error: expected `;' before '*' token
    65. c:/MinGW/include/strmif.h:704: error: `DWORD' does not name a type
    66. c:/MinGW/include/strmif.h:705: error: `UINT' does not name a type
    67. c:/MinGW/include/strmif.h:709: error: `GUID' does not name a type
    68. c:/MinGW/include/strmif.h:710: error: `ULONG' does not name a type
    69. c:/MinGW/include/strmif.h:711: error: `ULONG' does not name a type
    70. c:/MinGW/include/strmif.h:712: error: `ULONG' does not name a type
    71. c:/MinGW/include/strmif.h:713: error: `ULONG' does not name a type
    72. c:/MinGW/include/strmif.h:714: error: `ULONG' does not name a type
    73. c:/MinGW/include/strmif.h:715: error: `ULONG' does not name a type
    74. c:/MinGW/include/strmif.h:716: error: `ULONG' does not name a type
    75. c:/MinGW/include/strmif.h:717: error: `ULONG' does not name a type
    76. c:/MinGW/include/strmif.h:718: error: `ULONG' does not name a type
    77. c:/MinGW/include/strmif.h:721: error: `GUID' does not name a type
    78. c:/MinGW/include/strmif.h:722: error: `DWORD' does not name a type
    79. c:/MinGW/include/strmif.h:723: error: `DWORD' does not name a type
    80. c:/MinGW/include/strmif.h:726: error: `DWORD' does not name a type
    81. c:/MinGW/include/strmif.h:727: error: `DWORD' does not name a type
    82. c:/MinGW/include/strmif.h:728: error: `COLORREF' does not name a type
    83. c:/MinGW/include/strmif.h:729: error: `COLORREF' does not name a type
    84. c:/MinGW/include/strmif.h:735: error: `DWORD' does not name a type
    85. c:/MinGW/include/strmif.h:736: error: `DWORD' does not name a type
    86. c:/MinGW/include/strmif.h:741: error: `LCID' does not name a type
    87. c:/MinGW/include/strmif.h:743: error: `BOOL' does not name a type
    88. c:/MinGW/include/strmif.h:744: error: `DWORD' does not name a type
    89. c:/MinGW/include/strmif.h:745: error: `BYTE' does not name a type
    90. c:/MinGW/include/strmif.h:746: error: `BYTE' does not name a type
    91. c:/MinGW/include/strmif.h:747: error: `DWORD' does not name a type
    92. c:/MinGW/include/strmif.h:750: error: `DWORD' does not name a type
    93. c:/MinGW/include/strmif.h:751: error: `DWORD' does not name a type
    94. c:/MinGW/include/strmif.h:758: error: `DWORD' does not name a type
    95. c:/MinGW/include/strmif.h:759: error: `DWORD' does not name a type
    96. c:/MinGW/include/strmif.h:760: error: `DWORD' does not name a type
    97. c:/MinGW/include/strmif.h:761: error: `DWORD' does not name a type
    98. c:/MinGW/include/strmif.h:769: error: `BYTE' does not name a type
    99. c:/MinGW/include/strmif.h:770: error: `BYTE' does not name a type
    100. c:/MinGW/include/strmif.h:771: error: `BYTE' does not name a type
    101. c:/MinGW/include/strmif.h:772: error: `BYTE' does not name a type
    102. c:/MinGW/include/strmif.h:775: error: `BYTE' does not name a type
    103. c:/MinGW/include/strmif.h:776: error: `BOOL' does not name a type
    104. c:/MinGW/include/strmif.h:777: error: `BOOL' does not name a type
    105. c:/MinGW/include/strmif.h:779: error: `WORD' does not name a type
    106. c:/MinGW/include/strmif.h:786: error: `BOOL' does not name a type
    107. c:/MinGW/include/strmif.h:787: error: `BOOL' does not name a type
    108. c:/MinGW/include/strmif.h:788: error: `BOOL' does not name a type
    109. c:/MinGW/include/strmif.h:789: error: `BOOL' does not name a type
    110. c:/MinGW/include/strmif.h:790: error: `DWORD' does not name a type
    111. c:/MinGW/include/strmif.h:809: error: `ULONG' does not name a type
    112. c:/MinGW/include/strmif.h:810: error: `ULONG' does not name a type
    113. c:/MinGW/include/strmif.h:811: error: `ULONG' does not name a type
    114. c:/MinGW/include/strmif.h:814: error: `ULONG' does not name a type
    115. c:/MinGW/include/strmif.h:815: error: `ULONG' does not name a type
    To copy to clipboard, switch view to plain text mode 


    and so on.

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


    Can anybody help???

  5. #5
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile 4.4.0

    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.

  6. #6
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compile 4.4.0

    Quote Originally Posted by LordQt View Post
    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......

    Qt Code:
    1. mingw32-make[4]: Entering directory `C:/Qt/4.4.0/src/plugins/phonon/ds9'
    2. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    3. In file included from c:/MinGW/include/dshow.h:7,
    4. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/compointer.h
    5. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/backendnode.
    6. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/abstractvide
    7. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\/videorendere
    8. from ..\..\..\3rdparty\kdebase\runtime\phonon\ds9\videorenderer
    9. c:/MinGW/include/strmif.h:15: error: `LONGLONG' does not name a type
    10. c:/MinGW/include/strmif.h:623: error: `HRESULT' does not name a type
    11. c:/MinGW/include/strmif.h:624: error: `BOOL' does not name a type
    12. c:/MinGW/include/strmif.h:625: error: `BOOL' does not name a type
    13. c:/MinGW/include/strmif.h:626: error: `BOOL' does not name a type
    14. c:/MinGW/include/strmif.h:627: error: `BOOL' does not name a type
    15. c:/MinGW/include/strmif.h:630: error: `DWORD' does not name a type
    16. c:/MinGW/include/strmif.h:633: error: `GUID' does not name a type
    17. c:/MinGW/include/strmif.h:634: error: `GUID' does not name a type
    18. c:/MinGW/include/strmif.h:635: error: `DWORD' does not name a type
    19. c:/MinGW/include/strmif.h:636: error: `DWORD' does not name a type
    20. c:/MinGW/include/strmif.h:637: error: `BYTE' does not name a type
    21. c:/MinGW/include/strmif.h:640: error: `BYTE' does not name a type
    22. c:/MinGW/include/strmif.h:643: error: `GUID' does not name a type
    23. c:/MinGW/include/strmif.h:644: error: `GUID' does not name a type
    24. c:/MinGW/include/strmif.h:645: error: `DWORD' does not name a type
    25. c:/MinGW/include/strmif.h:646: error: `DWORD' does not name a type
    26. c:/MinGW/include/strmif.h:647: error: `BYTE' does not name a type
    27. c:/MinGW/include/strmif.h:650: error: `GUID' does not name a type
    28. c:/MinGW/include/strmif.h:651: error: `DWORD' does not name a type
    29. c:/MinGW/include/strmif.h:652: error: `BYTE' does not name a type
    30. c:/MinGW/include/strmif.h:655: error: `GUID' does not name a type
    31. c:/MinGW/include/strmif.h:656: error: `GUID' does not name a type
    32. c:/MinGW/include/strmif.h:657: error: `BOOL' does not name a type
    33. c:/MinGW/include/strmif.h:658: error: `BOOL' does not name a type
    34. c:/MinGW/include/strmif.h:659: error: `ULONG' does not name a type
    35. c:/MinGW/include/strmif.h:660: error: `GUID' does not name a type
    36. c:/MinGW/include/strmif.h:661: error: expected `;' before '*' token
    37. c:/MinGW/include/strmif.h:662: error: `ULONG' does not name a type
    38. c:/MinGW/include/strmif.h:663: error: expected `;' before '*' token
    39. c:/MinGW/include/strmif.h:666: error: `DWORD' does not name a type
    40. c:/MinGW/include/strmif.h:667: error: `DWORD' does not name a type
    41. c:/MinGW/include/strmif.h:668: error: `DWORD' does not name a type
    42. c:/MinGW/include/strmif.h:669: error: `LONG' does not name a type
    43. c:/MinGW/include/strmif.h:670: error: `REFERENCE_TIME' does not name a type
    44. c:/MinGW/include/strmif.h:671: error: `REFERENCE_TIME' does not name a type
    45. c:/MinGW/include/strmif.h:672: error: `DWORD' does not name a type
    46. c:/MinGW/include/strmif.h:674: error: expected `;' before '*' token
    47. c:/MinGW/include/strmif.h:675: error: `LONG' does not name a type
    48. c:/MinGW/include/strmif.h:678: error: `REFERENCE_TIME' does not name a type
    49. c:/MinGW/include/strmif.h:679: error: `REFERENCE_TIME' does not name a type
    50. c:/MinGW/include/strmif.h:680: error: `DWORD' does not name a type
    51. c:/MinGW/include/strmif.h:681: error: `DWORD' does not name a type
    52. c:/MinGW/include/strmif.h:682: error: `DWORD' does not name a type
    53. c:/MinGW/include/strmif.h:685: error: expected `;' before '*' token
    54. c:/MinGW/include/strmif.h:686: error: expected `;' before '*' token
    55. c:/MinGW/include/strmif.h:690: error: `LPWSTR' does not name a type
    56. c:/MinGW/include/strmif.h:691: error: `BOOL' does not name a type
    57. c:/MinGW/include/strmif.h:692: error: `BOOL' does not name a type
    58. c:/MinGW/include/strmif.h:693: error: `BOOL' does not name a type
    59. c:/MinGW/include/strmif.h:694: error: `BOOL' does not name a type
    60. c:/MinGW/include/strmif.h:695: error: expected `;' before '*' token
    61. c:/MinGW/include/strmif.h:696: error: expected `;' before '*' token
    62. c:/MinGW/include/strmif.h:697: error: `UINT' does not name a type
    63. c:/MinGW/include/strmif.h:702: error: expected `;' before '*' token
    64. c:/MinGW/include/strmif.h:703: error: expected `;' before '*' token
    65. c:/MinGW/include/strmif.h:704: error: `DWORD' does not name a type
    66. c:/MinGW/include/strmif.h:705: error: `UINT' does not name a type
    67. c:/MinGW/include/strmif.h:709: error: `GUID' does not name a type
    68. c:/MinGW/include/strmif.h:710: error: `ULONG' does not name a type
    69. c:/MinGW/include/strmif.h:711: error: `ULONG' does not name a type
    70. c:/MinGW/include/strmif.h:712: error: `ULONG' does not name a type
    71. c:/MinGW/include/strmif.h:713: error: `ULONG' does not name a type
    72. c:/MinGW/include/strmif.h:714: error: `ULONG' does not name a type
    73. c:/MinGW/include/strmif.h:715: error: `ULONG' does not name a type
    74. c:/MinGW/include/strmif.h:716: error: `ULONG' does not name a type
    75. c:/MinGW/include/strmif.h:717: error: `ULONG' does not name a type
    76. c:/MinGW/include/strmif.h:718: error: `ULONG' does not name a type
    77. c:/MinGW/include/strmif.h:721: error: `GUID' does not name a type
    78. c:/MinGW/include/strmif.h:722: error: `DWORD' does not name a type
    79. c:/MinGW/include/strmif.h:723: error: `DWORD' does not name a type
    80. c:/MinGW/include/strmif.h:726: error: `DWORD' does not name a type
    81. c:/MinGW/include/strmif.h:727: error: `DWORD' does not name a type
    82. c:/MinGW/include/strmif.h:728: error: `COLORREF' does not name a type
    83. c:/MinGW/include/strmif.h:729: error: `COLORREF' does not name a type
    84. c:/MinGW/include/strmif.h:735: error: `DWORD' does not name a type
    85. c:/MinGW/include/strmif.h:736: error: `DWORD' does not name a type
    86. c:/MinGW/include/strmif.h:741: error: `LCID' does not name a type
    87. c:/MinGW/include/strmif.h:743: error: `BOOL' does not name a type
    88. c:/MinGW/include/strmif.h:744: error: `DWORD' does not name a type
    89. c:/MinGW/include/strmif.h:745: error: `BYTE' does not name a type
    90. c:/MinGW/include/strmif.h:746: error: `BYTE' does not name a type
    91. c:/MinGW/include/strmif.h:747: error: `DWORD' does not name a type
    92. c:/MinGW/include/strmif.h:750: error: `DWORD' does not name a type
    93. c:/MinGW/include/strmif.h:751: error: `DWORD' does not name a type
    94. c:/MinGW/include/strmif.h:758: error: `DWORD' does not name a type
    95. c:/MinGW/include/strmif.h:759: error: `DWORD' does not name a type
    96. c:/MinGW/include/strmif.h:760: error: `DWORD' does not name a type
    97. c:/MinGW/include/strmif.h:761: error: `DWORD' does not name a type
    98. c:/MinGW/include/strmif.h:769: error: `BYTE' does not name a type
    99. c:/MinGW/include/strmif.h:770: error: `BYTE' does not name a type
    100. c:/MinGW/include/strmif.h:771: error: `BYTE' does not name a type
    101. c:/MinGW/include/strmif.h:772: error: `BYTE' does not name a type
    102. c:/MinGW/include/strmif.h:775: error: `BYTE' does not name a type
    103. c:/MinGW/include/strmif.h:776: error: `BOOL' does not name a type
    104. c:/MinGW/include/strmif.h:777: error: `BOOL' does not name a type
    105. c:/MinGW/include/strmif.h:779: error: `WORD' does not name a type
    106. c:/MinGW/include/strmif.h:786: error: `BOOL' does not name a type
    107. c:/MinGW/include/strmif.h:787: error: `BOOL' does not name a type
    108. c:/MinGW/include/strmif.h:788: error: `BOOL' does not name a type
    109. c:/MinGW/include/strmif.h:789: error: `BOOL' does not name a type
    110. c:/MinGW/include/strmif.h:790: error: `DWORD' does not name a type
    111. c:/MinGW/include/strmif.h:809: error: `ULONG' does not name a type
    112. c:/MinGW/include/strmif.h:810: error: `ULONG' does not name a type
    113. c:/MinGW/include/strmif.h:811: error: `ULONG' does not name a type
    114. c:/MinGW/include/strmif.h:814: error: `ULONG' does not name a type
    115. c:/MinGW/include/strmif.h:815: error: `ULONG' does not name a type
    To copy to clipboard, switch view to plain text mode 


    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?

  7. #7
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    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......
    Attached Files Attached Files

  8. #8
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    I use Windows Xp with SP2

  9. #9
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile 4.4.0

    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/kdesuppo...clude/directx/

  10. #10
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    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
    Qt Code:
    1. [B]#include <windows.h>[/B]
    2. #include <strmif.h>
    3. #include <amaudio.h>
    4. #include <amvideo.h>
    5. #include <evcode.h>
    6. #include <audevcod.h>
    7. #include <dvdevcod.h>
    8. #include <errors.h>
    9. #include <vptype.h>
    10. #include <ks.h>
    11. #include <vidcap.h>
    12. #include <bdatypes.h>
    13. #include <dvdmedia.h>
    14. #include <il21dec.h>
    15. #include <ddraw.h> /* DDSCAPS2, DDPIXELFORMAT */
    16. #ifndef _WINGDI_H
    17. #include <wingdi.h> /* BITMAPINFOHEADER */
    18. #endif
    To copy to clipboard, switch view to plain text mode 

    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

  11. #11
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile 4.4.0

    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.

  12. #12
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    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

  13. #13
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    Dear Christian,
    I follow your explanation. I add #include <windows.h> in dshow.h. and I configure it with the argument
    Qt Code:
    1. 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 -phonon
    To copy to clipboard, switch view to plain text mode 

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

    I willl try it now without phonon. I´ll be back ;o))
    Attached Files Attached Files

  14. #14
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile 4.4.0

    1. Make a backup of your mingw include dir
    2. download and unpack http://winkde.org/pub/kde/ports/win3...-1-lib.tar.bz2
    3. copy over all files listed here: http://websvn.kde.org/trunk/kdesuppo...clude/directx/ to your mingw include dir
    4. go into qt4-src/src/phonon and restart compiling

  15. #15
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    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.........
    Attached Files Attached Files

  16. #16
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    So I compile this time without Phonon and I get new errors ;o((
    Attached Files Attached Files

  17. #17
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile 4.4.0

    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.

  18. #18
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

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

  19. #19
    Join Date
    May 2007
    Location
    Germany
    Posts
    89
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile 4.4.0

    Hello Christian,

    just for your information:
    I have compile qt 435 from src with the parameters
    Qt Code:
    1. 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
    To copy to clipboard, switch view to plain text mode 
    without any error

Similar Threads

  1. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 10:02
  2. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 17:04
  3. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 22:06
  4. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 06:26
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 20:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.