我正在努力为QEC建立Qt 5.4。我正在使用Toradex SDK(http://developer.toradex.com/software-resources/arm-family/windows-ce/development-tools#Visual_Studio_2008)。我可以使用“Configure -platform win32-msvc2008 -xplatform wince70embedded-armv4i-msvc2008”进行配置,但是构建失败时会出现很多链接问题,如下所示:
moc_qabstractitemmodel.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qstringlistmodel.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qeventdispatcher_win_p.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
Qt5Cored_pch.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::Lockit(void)” (_imp??1_Lockit@std@@QAA@XZ) referenced in function “public: __cdecl std::_String_const_iterator<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::_String_const_iterator<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(void)” (??1?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAA@XZ)
moc_qtimeline.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qfilesystemwatcher_p.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qfilesystemwatcher_polling_p.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qfilesystemwatcher_win_p.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qxmlstream.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qabstractanimation_p.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qfuturewatcher.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
moc_qeasingcurve.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimetypeparser.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimemagicrule.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimeglobpattern.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimeprovider.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qsignaltransition.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qeventtransition.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimedatabase.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qmimetype.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qstate.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qfinalstate.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qhistorystate.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qabstracttransition.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
qeventdispatcher_win.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl std::Lockit::~_Lockit(void)” (_imp_??1_Lockit@std@@QAA@XZ)
然后最终失败了:
.... \ lib \ Qt5Cored.dll:致命错误LNK1120:24个未解析的外部
我正在遵循这些说明http://doc.qt.io/qt-5/install-wince.html,http://doc.qt.io/qt-5/windowsce-customization.html,http://doc.qt.io/qt-5/requirements-wince.html。
可以在https://onedrive.live.com/redir?resid=C4C880935B574748!90413&authkey=!ALtPVXdc7CKS1Uk&ithint=file,txt找到nmake的完整输出。
现在这是我第三天一直在努力解决这个问题,我终于试了一下,请帮帮忙!
编辑: 我想我应该从头开始添加这个,但这是我提出的qmake.conf:
# 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 = SDK2wince7
CE_ARCH = ARMV4I
DEFINES += 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 /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
答案 0 :(得分:0)
似乎与此问题有关: What std::_lockit does? 你在构建调试版本或启用一些调试功能? 我会在内部检查是否有人已经在CE上建立了这个版本并让你知道。
答案 1 :(得分:0)
您可以在此处找到带有OpenGL标头的Nvidia Tegra SDK: http://developer.download.nvidia.com/tegra/files/ce6_tegra_250_5265393.msi
我希望KDAB很快就能准备好使用Windows Embedded Compact版本,但最好直接与他们联系:http://www.kdab.com/about-us/people-europe/