PDA

View Full Version : Trying to get Qt to work with Visual Studio 2008 for windows mobile 6



rickrvo
19th April 2011, 14:25
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 is now configured for building. To start the build run:setcepaths.bat wincewm
60professional-msvc2008 && nmake.
To reconfigure, run 'nmake confclean' and configure.

C:\Qt\4.7.1>setcepaths.bat wincewm60professional-msvc2008
Environment Selection:Windows Mobile 6 Professional SDK (ARMV4I)
Windows Mobile 6 Professional selected, environment is set up

C:\Qt\4.7.1>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

cd src\tools\bootstrap\ && "c:\Program Files\Microsoft Visual Studio 9.0
\VC\bin\nmake.exe" -f Makefile

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

"c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makef
ile.Release


...

c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : error C2059:
syntax error : '...'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(427) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(430) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(507) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(623) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(698) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(729) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrintfA' : must be
initialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::vsprintf_instead_use_StringCbVPrintfA_or _StringCchVPrin
tfA'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
'QString::va_list' : must be initialized in constructor base/member initializer
list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(187) : see
declaration of 'QString::va_list'
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(882) : error C2758:
'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA' : must be in
itialized in constructor base/member initializer list
c:\qt\4.7.1\include\qtcore\../../src/corelib/tools/qstring.h(192) : see
declaration of 'QString::sprintf_instead_use_StringCbPrintfA_or_S tringCchPrintfA
'
c:\Program Files\Microsoft Visual Studio 9.0\VC\ce\include\crtdefs.h(106) : fata
l error C1189: #error : ERROR: Use of C runtime library internal header file.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\ce\
bin\x86_arm\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\bin
\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

C:\Qt\4.7.1>


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

thanks in advance!