Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1853

Can't build QtMobility 1.2.0 and from git with MinGW from console from QtCreator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 1.2.0
    • Build System
    • None

    Description

      I want build QtMobility 1.2 for Windows XP (Desktop platform) with MinGW from QtSDK 1.1.3 (Qt 4.7.4) console with this commands:

      D:\Work\qt-mobility-qt-mobility>configure -prefix %QTDIR%
      D:\Work\qt-mobility-qt-mobility>mingw32-make
      

      but I get error:

      cd systeminfo\ && mingw32-make -f Makefile 
      mingw32-make[2]: Entering directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make -f Makefile.Debug all
      mingw32-make[3]: Entering directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_SHARED -DQTM_PLUGIN_PATH=\"D:/QtSDK/Desktop/Qt/4.7.4/mingw/plugins\" -DQT_MAKEDLL -DQT_BUILD_SYSINFO_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtNetwork" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include" -I"..\global" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"..\..\build\Debug\QtSystemInfo\moc" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\default" -o ..\..\build\Debug\QtSystemInfo\qsysteminfo_win.o qsysteminfo_win.cpp
      qsysteminfo_win.cpp:80:46: error: HighLevelMonitorConfigurationAPI.h: No such file or directory
      qsysteminfo_win.cpp:85:22: error: BatClass.h: No such file or directory
      qsysteminfo_win.cpp: In member function 'QString QtMobility::QSystemInfoPrivate::version(QtMobility::QSystemInfo::Version, const QString&)':
      qsysteminfo_win.cpp:519: warning: enumeration value 'QtCore' not handled in switch
      qsysteminfo_win.cpp:519: warning: enumeration value 'QtMobility' not handled in switch
      qsysteminfo_win.cpp: In member function 'QtMobility::QSystemNetworkInfo::NetworkStatus QtMobility::QSystemNetworkInfoPrivate::networkStatus(QtMobility::QSystemNetworkInfo::NetworkMode)':
      qsysteminfo_win.cpp:902: warning: enumeration value 'UnknownMode' not handled in switch
      qsysteminfo_win.cpp:902: warning: enumeration value 'LteMode' not handled in switch
      qsysteminfo_win.cpp: In member function 'int QtMobility::QSystemNetworkInfoPrivate::networkSignalStrength(QtMobility::QSystemNetworkInfo::NetworkMode)':
      qsysteminfo_win.cpp:973: warning: enumeration value 'UnknownMode' not handled in switch
      qsysteminfo_win.cpp:973: warning: enumeration value 'LteMode' not handled in switch
      qsysteminfo_win.cpp: In member function 'float QtMobility::QSystemDisplayInfoPrivate::contrast(int)':
      qsysteminfo_win.cpp:1414: error: 'MONITOR_DEFAULTTOPRIMARY' was not declared in this scope
      qsysteminfo_win.cpp:1414: error: 'MonitorFromWindow' was not declared in this scope
      qsysteminfo_win.cpp:1415: error: 'LPPHYSICAL_MONITOR' was not declared in this scope
      qsysteminfo_win.cpp:1415: error: expected ';' before 'physMon'
      qsysteminfo_win.cpp:1418: error: 'GetNumberOfPhysicalMonitorsFromHMONITOR' was not declared in this scope
      qsysteminfo_win.cpp:1420: error: 'physMon' was not declared in this scope
      qsysteminfo_win.cpp:1420: error: expected ';' before 'malloc'
      qsysteminfo_win.cpp:1422: error: 'GetPhysicalMonitorsFromHMONITOR' was not declared in this scope
      qsysteminfo_win.cpp:1426: error: 'GetMonitorCapabilities' was not declared in this scope
      qsysteminfo_win.cpp:1427: error: 'MC_CAPS_CONTRAST' was not declared in this scope
      qsysteminfo_win.cpp:1430: error: 'GetMonitorContrast' was not declared in this scope
      qsysteminfo_win.cpp:1432: error: 'DestroyPhysicalMonitors' was not declared in this scope
      qsysteminfo_win.cpp: In member function 'QString QtMobility::QSystemStorageInfoPrivate::uriForDrive(const QString&)':
      qsysteminfo_win.cpp:1619: error: 'GetVolumeNameForVolumeMountPointW' was not declared in this scope
      qsysteminfo_win.cpp: In function 'bool QtMobility::qax_winEventFilter(void*)':
      qsysteminfo_win.cpp:1739: error: 'POWERBROADCAST_SETTING' was not declared in this scope
      qsysteminfo_win.cpp:1739: error: 'pps' was not declared in this scope
      qsysteminfo_win.cpp:1739: error: expected primary-expression before ')' token
      qsysteminfo_win.cpp:1739: error: expected ';' before 'pMsg'
      qsysteminfo_win.cpp:1741: error: 'GUID_BATTERY_PERCENTAGE_REMAINING' was not declared in this scope
      qsysteminfo_win.cpp: In member function 'QByteArray QtMobility::QSystemDeviceInfoPrivate::uniqueDeviceID()':
      qsysteminfo_win.cpp:2145: error: 'WMIHelper' was not declared in this scope
      qsysteminfo_win.cpp:2145: error: 'wHelper' was not declared in this scope
      qsysteminfo_win.cpp:2146: error: expected type-specifier before 'WMIHelper'
      qsysteminfo_win.cpp:2146: error: expected ';' before 'WMIHelper'
      qsysteminfo_win.cpp: In member function 'void QtMobility::QSystemBatteryInfoPrivate::getBatteryStatus()':
      qsysteminfo_win.cpp:2502: error: 'BATTERY_QUERY_INFORMATION' was not declared in this scope
      qsysteminfo_win.cpp:2502: error: expected ';' before 'batteryQueryInfo'
      qsysteminfo_win.cpp:2507: error: 'IOCTL_BATTERY_QUERY_TAG' was not declared in this scope
      qsysteminfo_win.cpp:2507: error: 'batteryQueryInfo' was not declared in this scope
      qsysteminfo_win.cpp:2509: error: 'BATTERY_INFORMATION' was not declared in this scope
      qsysteminfo_win.cpp:2509: error: expected ';' before 'batteryInfo'
      qsysteminfo_win.cpp:2510: error: 'BatteryInformation' was not declared in this scope
      qsysteminfo_win.cpp:2512: error: 'IOCTL_BATTERY_QUERY_INFORMATION' was not declared in this scope
      qsysteminfo_win.cpp:2512: error: 'batteryInfo' was not declared in this scope
      qsysteminfo_win.cpp:2514: error: 'BATTERY_SYSTEM_BATTERY' was not declared in this scope
      qsysteminfo_win.cpp:2515: error: 'BATTERY_IS_SHORT_TERM' was not declared in this scope
      qsysteminfo_win.cpp:2519: error: 'BATTERY_WAIT_STATUS' was not declared in this scope
      qsysteminfo_win.cpp:2519: error: expected ';' before 'batteryWaitStatus'
      qsysteminfo_win.cpp:2520: error: 'batteryWaitStatus' was not declared in this scope
      qsysteminfo_win.cpp:2522: error: 'BATTERY_STATUS' was not declared in this scope
      qsysteminfo_win.cpp:2522: error: expected ';' before 'batteryStatus'
      qsysteminfo_win.cpp:2523: error: 'IOCTL_BATTERY_QUERY_STATUS' was not declared in this scope
      qsysteminfo_win.cpp:2523: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function.  Say '&QtMobility::QSystemBatteryInfoPrivate::batteryStatus'
      qsysteminfo_win.cpp:2523: error: ISO C++ forbids applying 'sizeof' to an expression of function type
      qsysteminfo_win.cpp:2524: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type
      qsysteminfo_win.cpp:2524: error: 'BATTERY_POWER_ON_LINE' was not declared in this scope
      qsysteminfo_win.cpp:2527: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type
      mingw32-make[3]: *** [../../build/Debug/QtSystemInfo/qsysteminfo_win.o] Error 1
      mingw32-make[3]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make[2]: *** [debug-all] Error 2
      mingw32-make[2]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make[1]: *** [sub-systeminfo-make_default] Error 2
      mingw32-make[1]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src'
      mingw32-make: *** [sub-src-make_default-ordered] Error 2
      

      and I go to Microsoft site and download "Microsoft Media Foundation SDK"/[DVD ISO|http://go.microsoft.com/fwlink/?LinkID=150216&clcid=0x409]/[WinSDKWeb|http://www.microsoft.com/downloads/info.aspx?na=41&srcfamilyid=c17ba869-9671-4330-a63e-1fd44e0e2505&srcdisplaylang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f7%2fA%2fB%2f7ABD2203-C472-4036-8BA0-E505528CCCB7%2fwinsdk_web.exe] (Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1).

      Next I set environment variables for compiler:

      D:\Work\qt-mobility-qt-mobility>set CPLUS_INCLUDE_PATH=D:\Microsoft SDKs\Windows\v7.0\Include
      D:\Work\qt-mobility-qt-mobility>set LIBRARY_PATH=D:\Microsoft SDKs\Windows\v7.0\Lib
      

      and try again build with mingw32-make, but at this moment i see other errors:

      cd systeminfo\ && mingw32-make -f Makefile 
      mingw32-make[2]: Entering directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make -f Makefile.Debug all
      mingw32-make[3]: Entering directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_SHARED -DQTM_PLUGIN_PATH=\"D:/QtSDK/Desktop/Qt/4.7.4/mingw/plugins\" -DQT_MAKEDLL -DQT_BUILD_SYSINFO_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtNetwork" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include" -I"..\global" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"..\..\build\Debug\QtSystemInfo\moc" -I"d:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\default" -o ..\..\build\Debug\QtSystemInfo\qsysteminfo_win.o qsysteminfo_win.cpp
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:77,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/specstrings.h:11:17: error: sal.h: No such file or directory
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:851:2: error: #error Must define a target architecture.
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:1202:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:12880:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:13305:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:156,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:2936:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:2939:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:2942:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:3054:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:3057:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:3060:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winbase.h:3063:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:158,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winuser.h:3183:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:167,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winreg.h:1243:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/winreg.h:1257:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/ole2.h:37,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:201,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/objbase.h:865:1: error: pasting "(" and "__drv_nop" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/msxml.h:284,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/urlmon.h:355,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/objbase.h:1008,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/ole2.h:37,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:201,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/oaidl.h:445:1: error: pasting "/" and "/" does not give a valid preprocessing token
      D:\Microsoft SDKs\Windows\v7.0\Include/oaidl.h:460:1: error: pasting "/" and "/" does not give a valid preprocessing token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:353: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:354: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:355: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:356: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:357: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:358: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:359: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:361: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:362: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:363: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:364: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:366: error: '__possibly_notnullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:367: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:368: error: '__possibly_notnullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:369: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:421: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:422: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:423: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:424: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:425: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:427: error: '__nullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:428: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:430: error: '__possibly_notnullterminated' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:431: error: expected initializer before 'const'
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:446: error: 'LPWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:447: error: 'LPCWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:448: error: 'LPUWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:449: error: 'LPCUWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:450: error: 'LPWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:451: error: 'PZZWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:452: error: 'PCZZWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:453: error: 'PUZZWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:454: error: 'PCUZZWSTR' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:455: error: 'PNZWCH' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:456: error: 'PCNZWCH' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:457: error: 'PUNZWCH' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:458: error: 'PCUNZWCH' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:542: error: typedef '__success' is initialized (use decltype instead)
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:542: error: expected primary-expression before 'return'
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:1201: error: '__post' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:1212: error: expected initializer before '*' token
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:2116: error: '__maybenull' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:2235: error: array bound is not an integer constant
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:6370: error: variable or field 'RtlUnwind' declared void
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:6370: error: '__in_opt' was not declared in this scope
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:6371: error: '__in_opt' was not declared in this scope
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:6372: error: '__in_opt' was not declared in this scope
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:6373: error: '__in' was not declared in this scope
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:8626: error: '__notnull' does not name a type
      D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:8659: error: expected constructor, destructor, or type conversion before '(' token
      In file included from D:\Microsoft SDKs\Windows\v7.0\Include/winnt.h:10773,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windef.h:177,
                       from d:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/excpt.h:20,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/windows.h:151,
                       from D:\Microsoft SDKs\Windows\v7.0\Include/winsock2.h:66,
                       from qsysteminfo_win_p.h:66,
                       from qsysteminfocommon_p.h:62,
                       from qsysteminfo_win.cpp:41:
      D:\Microsoft SDKs\Windows\v7.0\Include/pshpack4.h:31: error: expected '}' before end of line
      D:\Microsoft SDKs\Windows\v7.0\Include/pshpack4.h:31: error: expected '}' before end of line
      D:\Microsoft SDKs\Windows\v7.0\Include/pshpack4.h:31: error: expected declaration before end of line
      mingw32-make[3]: *** [../../build/Debug/QtSystemInfo/qsysteminfo_win.o] Error 1
      mingw32-make[3]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make[2]: *** [debug-all] Error 2
      mingw32-make[2]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src/systeminfo'
      mingw32-make[1]: *** [sub-systeminfo-make_default] Error 2
      mingw32-make[1]: Leaving directory `D:/Work/qt-mobility-qt-mobility/src'
      mingw32-make: *** [sub-src-make_default-ordered] Error 2
      

      So, how I understand, at this moment, it is impossible build QtMobility with MinGW and Microsoft headers.

      Attachments

        Issue Links

          Activity

            People

              cristiano cristiano di flora
              sabrog Vladislav
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: