Compiling Qt 5.5 Beta for WEC 7
-
wrote on 1 Jun 2015, 12:09 last edited by
Hello together,
I try to compile Qt 5.5 Beta for WinCE. Unfortunaly the build fails allways for a reason which I don't understand. I hope somebody can help me.
I do the following steps:
1. Downloading Qt5.5-Beta from qt.io
2. Extract zip file to D:\Qt\qt-src
3. Modify mkspecs for WEC7 (qtbase\mkspecs\wince70embedded-armv4i-msvc2008)
4. configure.bat -platform win32-msvc2008 -xplatform wince70embedded-armv4i-msvc2008 -nomake examples -no-accessibility -opengl es2 -opensource -debug-and-release -skip activeqt -skip winextras -skip qtwebkit -prefix C:\Qt\Libs_V5_5
5. Run nmake
Output:
Generating Code...
cl -c -FIqt_pch.h -Yuqt_pch.h -Fp.pch\debug\Qt5Cored_pch.pch -nologo -Zm200 -Zc:wchar_t- -DDEBUG -D_DEBUG -Zi -MDd -EHsc -W3 -w34100 -w34189 /Fd....\lib\Qt5Cored.pdb -DUNDER_CE -DWINCE -D_WIN
DOWS -D_UNICODE -DUNICODE -D_WIN32 -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_NO_CLIPBOARD -DQT_NO_ACCESSIBILITY -DQT_NO_NATIVE_GESTURES -DQT_NOSTANDARDSHELL_UI_MODEL -D_CRT_SECURE_NO_DEPRECATE -D_WIN32
WCE=0x700 -Darmv4i -D_AMRV7 -Darmv7 -D_ARM_ -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_U
SE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DNO_ERRNO_H -DPCRE_STATIC -DQT_NO_ICONV -DQT_CORE_LIB -DQT_NO_DYNAMIC_CAST -I. -I..\3rdparty\zlib -I....\include -I
....\include\QtCore -I....\include\QtCore\5.5.0 -I....\include\QtCore\5.5.0\QtCore -Itmp -Iglobal -I..\3rdparty\pcre -I..\3rdparty\harfbuzz\src -I..\3rdparty\md5 -I..\3rdparty\md4 -I..\3rdparty\sha
3 -I.moc\debug -I....\mkspecs\wince70embedded-armv4i-msvc2008 -Fo.obj\debug\ @C:\Users\z000jxwy\AppData\Local\Temp\nm1653.tmp
qglobal.cpp
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(728) : warning C4996: 'std::equal': Function call with parameters that may be unsafe - this call relies on the caller to check that
the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\xutility(3047) : see declaration of 'std::equal'
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(720) : while compiling class template member function 'bool QVector<T>::operator ==(const QVector<T> &) const'
with
[
T=QPointF
]
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(893) : see reference to class template instantiation 'QVector<T>' being compiled
with
[
T=QPointF
]
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(728) : warning C4996: 'std::equal': Function call with parameters that may be unsafe - this call relies on the caller to check that
the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\xutility(3047) : see declaration of 'std::equal'
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(720) : while compiling class template member function 'bool QVector<T>::operator ==(const QVector<T> &) const'
with
[
T=QPoint
]
d:\qt\qt-src\qtbase\include\qtcore../../src/corelib/tools/qvector.h(894) : see reference to class template instantiation 'QVector<T>' being compiled
with
[
T=QPoint
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\xmemory(160) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1411)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\bin\x86_arm\cl.EXE. You will be prompted to send an error report to Microsoft later.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\bin\x86_arm\cl.EXE"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop. -
Hi and welcome to devnet,
What did you change the mkspecs ?
-
wrote on 8 Jun 2015, 09:12 last edited by
@SGaist Hi, thanks for the answere.
I changed only this file:
qt-src\qtbase\mkspecs\wince70embedded-armv4i-msvc2008\qmake.confOnly the CE_SDK define to my WEC SDK.
Here is my file:
include(../common/wince/qmake.conf)
CE_SDK = iMX6_SABRE_SDP_WEC7_SDK # replace with actual SDK name
CE_ARCH = armv4iDEFINES += QT_NO_CLIPBOARD QT_NO_ACCESSIBILITY QT_NO_NATIVE_GESTURES QT_NOSTANDARDSHELL_UI_MODEL _CRT_SECURE_NO_DEPRECATE _WIN32_WCE=0x700 $$CE_ARCH AMRV7 armv7 ARM
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:WINDOWSCE,7.00 /MACHINE:THUMB
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.libQMAKE_RC = rc
[link text](link url)
QMAKE_COMPILER_DEFINES -= _MSC_VER=1400
QMAKE_COMPILER_DEFINES += _MSC_VER=1500
[link text](link url)
1/3