Hi all,
I have a problem running nmake to build Qt 5.3 for Windows Embedded Compact 7.
Here´s what I did so far:
1. qmake.conf looks like this:
qmake configuration for Windows Embedded Compact 7 with VS2008 on ARM targets
#
This is just a template for creating WEC7 mkspecs for ARM targets
Replace the SDK name with actual SDK name.
include(../common/wince/qmake.conf)
CE_SDK = Vincell CE7 SDK # replace with actual SDK name
CE_ARCH = armv4i
DEFINES += QT_NO_CLIPBOARD QT_NO_ACCESSIBILITY QT_NO_NATIVE_GESTURES QT_NOSTANDARDSHELL_UI_MODEL CRT_SECURE_NO_DEPRECATE _WIN32_WCE=0×700 $$CE_ARCH _AMRV7 armv7 ARM
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:WINDOWSCE,7.00 /MACHINE:THUMB /ENTRY:mainACRTStartup
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWSCE,7.00 /MACHINE:THUMB
QMAKE_LFLAGS_DLL = /SUBSYSTEM:WINDOWSCE,7.00 /MACHINE:THUMB /DLL /SAFESEH:NO
QMAKE_LIBFLAGS_RELEASE = /LTCG
QMAKE_LIBS = corelibc.lib coredll.lib
QMAKE_LIBS_CORE = corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib coredll.lib winsock.lib
QMAKE_LIBS_GUI = ceshell.lib ole32.lib $$QMAKE_LIBS_CORE
QMAKE_LIBS_NETWORK = ws2.lib $$QMAKE_LIBS_GUI
QMAKE_LIBS_OPENGL =
QMAKE_LIBS_COMPAT =
QMAKE_LIBS_OPENVG = libopenvg.lib
QMAKE_LIBS_OPENGL_ES2 = libEGL.lib libGLESv2.lib
QMAKE_RC = rc
QMAKE_COMPILER_DEFINES -= _MSC_VER=1400
QMAKE_COMPILER_DEFINES += _MSC_VER=1500
2. Configure from Visual Studio command prompt:
configure -platform win32-msvc2008 -xplatform wince70vincell-armv4i-msvc2008 -developer-build -opensource -no-native-gestures -no-accessibility -nomake examples -nomake tests -rtti -qt-crt -qt-libpng -opengl es2 -skip winextras -confirm-license -prefix INSTALLDIR
3. call nmake
—> this produces errors, starting with:
qaccessible.cpp
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : error C2143:
syntax error : missing ‘;’ before ‘*’
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : error C4430:
missing type specifier – int assumed. Note: C++ does not support default-int
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : error C2653:
‘QAccessible’ : is not a class or namespace name
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : error C2061:
syntax error : identifier ‘Id’
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : error C4430:
missing type specifier – int assumed. Note: C++ does not support default-int
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(72) : warning C4183
‘interfaceForId’: missing return type; assumed to be a member function returni
ng ‘int’
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : error C2653:
‘QAccessible’ : is not a class or namespace name
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : error C2146:
syntax error : missing ‘;’ before identifier ‘insert’
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : error C4430:
missing type specifier – int assumed. Note: C++ does not support default-int
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : error C2061:
syntax error : identifier ‘QAccessibleInterface’
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : error C4430:
missing type specifier – int assumed. Note: C++ does not support default-int
c:\qt\5.3\src\qtbase\src\gui\accessible\qaccessiblecache_p.h(73) : warning C4183
‘insert’: missing return type; assumed to be a member function returning ‘int’
…
According to this post (https://bugreports.qt-project.org/browse/QTBUG-32329) the error occurs when QT_NO_ACCESSIBILITY is not defined in the mkspec, but it´s defined in mine and also in the configure options. The output of configure tells me that accessibility is not included.
Any idea how to solve this?
Thanks in advance,
Hinrich
↧