Hi,

I've searched lots of foruns and I managed to get Qt integrated with VS2008. I'm using Qt 4.7.1 vs2008 and 4.7.1 add-in. now I'm getting and error while compiling my projects in VS2008 saying:
LINK : warning LNK4044: unrecognized option '/Wl,-subsystem,windows'; ignored
corelibc.lib(crt0dat.obj) : fatal error LNK1112: module machine type 'ARM' conflicts with target machine type 'X86'
I've read that this may have to do with qt being configured for win32 and not for windows mobile.

Trying to configure with "configure -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008" I always get the same error as stated below. I've already tried this on a linux machine, windows 7 and now i'm on a windows xp virtual machine because there is an issue with cellular emulator for windwos mobile under windows 7 x64

I always get this 1077 error in the nmake step.

Qt Code:
  1. Qt is now configured for building. To start the build run:setcepaths.bat wincewm
  2. 60professional-msvc2008 && nmake.
  3. To reconfigure, run 'nmake confclean' and configure.
  4.  
  5. C:\Qt\4.7.1>setcepaths.bat wincewm60professional-msvc2008
  6. Environment Selection:Windows Mobile 6 Professional SDK (ARMV4I)
  7. Windows Mobile 6 Professional selected, environment is set up
  8.  
  9. C:\Qt\4.7.1>nmake
  10.  
  11. Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
  12. Copyright (C) Microsoft Corporation. All rights reserved.
  13.  
  14. cd src\tools\bootstrap\ && "c:\Program Files\Microsoft Visual Studio 9.0
  15. \VC\bin\nmake.exe" -f Makefile
  16.  
  17. Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
  18. Copyright (C) Microsoft Corporation. All rights reserved.
  19.  
  20. "c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makef
  21. ile.Release
  22.  
  23.  
  24. ...
  25.  
  26. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : error C2059:
  27. syntax error : '...'
  28. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
  29. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  30. initialized in constructor base/member initializer list
  31. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  32. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  33. tfA'
  34. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
  35. 'QString::va_list' : must be initialized in constructor base/member initializer
  36. list
  37. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  38. declaration of 'QString::va_list'
  39. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
  40. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  41. itialized in constructor base/member initializer list
  42. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  43. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  44. '
  45. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
  46. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  47. initialized in constructor base/member initializer list
  48. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  49. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  50. tfA'
  51. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
  52. 'QString::va_list' : must be initialized in constructor base/member initializer
  53. list
  54. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  55. declaration of 'QString::va_list'
  56. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
  57. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  58. itialized in constructor base/member initializer list
  59. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  60. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  61. '
  62. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
  63. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  64. initialized in constructor base/member initializer list
  65. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  66. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  67. tfA'
  68. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
  69. 'QString::va_list' : must be initialized in constructor base/member initializer
  70. list
  71. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  72. declaration of 'QString::va_list'
  73. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
  74. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  75. itialized in constructor base/member initializer list
  76. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  77. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  78. '
  79. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
  80. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  81. initialized in constructor base/member initializer list
  82. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  83. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  84. tfA'
  85. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
  86. 'QString::va_list' : must be initialized in constructor base/member initializer
  87. list
  88. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  89. declaration of 'QString::va_list'
  90. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
  91. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  92. itialized in constructor base/member initializer list
  93. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  94. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  95. '
  96. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
  97. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  98. initialized in constructor base/member initializer list
  99. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  100. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  101. tfA'
  102. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
  103. 'QString::va_list' : must be initialized in constructor base/member initializer
  104. list
  105. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  106. declaration of 'QString::va_list'
  107. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
  108. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  109. itialized in constructor base/member initializer list
  110. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  111. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  112. '
  113. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
  114. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  115. initialized in constructor base/member initializer list
  116. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  117. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  118. tfA'
  119. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
  120. 'QString::va_list' : must be initialized in constructor base/member initializer
  121. list
  122. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  123. declaration of 'QString::va_list'
  124. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
  125. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  126. itialized in constructor base/member initializer list
  127. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  128. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  129. '
  130. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
  131. 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA' : must be
  132. initialized in constructor base/member initializer list
  133. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  134. declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrin
  135. tfA'
  136. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
  137. 'QString::va_list' : must be initialized in constructor base/member initializer
  138. list
  139. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
  140. declaration of 'QString::va_list'
  141. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
  142. 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : must be in
  143. itialized in constructor base/member initializer list
  144. c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
  145. declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
  146. '
  147. c:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include\crtdefs.h(106) : fata
  148. l error C1189: #error : ERROR: Use of C runtime library internal header file.
  149. NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\ce\
  150. bin\x86_arm\cl.EXE"' : return code '0x2'
  151. Stop.
  152. NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\bin
  153. \nmake.exe"' : return code '0x2'
  154. Stop.
  155. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  156. Stop.
  157.  
  158. C:\Qt\4.7.1>
To copy to clipboard, switch view to plain text mode 

can some one please enlighten me? or provide a .zip with this configuration? I'm desperate here :\

thanks in advance!