Post by Andy Arhelger on Sept 10, 2018 19:09:17 GMT
I have been trying to build a win32 exe for my application and the link step keeps failing.
I am running on a Windows 10 machine with RMS 6.0.55, Visual Studio 2015 Community edition, and Qt 5.5 which I got from here: files.tau-technologies.com/RMS/QT/qt-opensource-windows-x86-msvc2012-5.5.0.exe
Any idea how I can get this to build?
What combination of Windows 10, RMS, Visual Studio and Qt will let me compile to win32?
Here is the link error.
..
..
..
cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -O2 -MD /O2 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 /wd4996 /wd4100 /wd4005 -GR -EHsc -DUNICODE -DWIN32 -DRHODES_VERSION_1 -DWIN32 -D_WINDOWS -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -D_CRT_SECURE_NO_WARNINGS -D_CRT_NON_CONFORMING_SWPRINTFS -DWIN32_LEAN_AND_MEAN -D_NDEBUG -DNDEBUG -DQT_NO_DEBUG -DRHODES_QT_PLATFORM -DQT_NO_DEBUG -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -IoldVersion -I..\.. -I..\..\ruby -I..\..\ruby\include -I..\..\..\wm\rhodes -I..\..\wtl80\include -IC:\Qt\Qt5-ssl\include -IC:\Qt\Qt5-ssl\include\QtMultimediaWidgets -IC:\Qt\Qt5-ssl\include\QtMultimedia -IC:\Qt\Qt5-ssl\include\QtWebKitWidgets -IC:\Qt\Qt5-ssl\include\QtWidgets -IC:\Qt\Qt5-ssl\include\QtWebKit -IC:\Qt\Qt5-ssl\include\QtGui -IC:\Qt\Qt5-ssl\include\QtANGLE -IC:\Qt\Qt5-ssl\include\QtNetwork -IC:\Qt\Qt5-ssl\include\QtCore -I..\..\..\win32\bin\RhoSimulator\generated_files -I..\..\..\win32\bin\RhoSimulator\generated_files -IC:\Qt\Qt5-ssl\mkspecs\win32-msvc2015 -Fo..\..\..\win32\bin\RhoSimulator\tmp\moc_RhoNativeApiCall.obj ..\..\..\win32\bin\RhoSimulator\generated_files\moc_RhoNativeApiCall.cpp
moc_RhoNativeApiCall.cpp
rc -DUNICODE -DWIN32 -DRHODES_VERSION_1 -DWIN32 -D_WINDOWS -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -D_CRT_SECURE_NO_WARNINGS -D_CRT_NON_CONFORMING_SWPRINTFS -DWIN32_LEAN_AND_MEAN -D_NDEBUG -DNDEBUG -DQT_NO_DEBUG -DRHODES_QT_PLATFORM -DQT_NO_DEBUG -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -fo ..\..\..\win32\bin\RhoSimulator\tmp\simulator.res resources\simulator.rc
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe @c:\Users\AWARHE~1\AppData\Local\Temp\nmB4BB.tmp
qtmain.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1900' in NetRequestImpl.obj
Creating library ..\..\..\win32\bin\RhoSimulator\RhoSimulator.lib and object ..\..\..\win32\bin\RhoSimulator\RhoSimulator.exp
QtSystemImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz) referenced in function _rho_sys_qt_getWebviewFramework
QtMainWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
QtWebPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
RhoNativeApiCall.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)&& " (__imp_?toLatin1@QString@@qhae?AVQByteArray@@xz) referenced in function _main
QtMainWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)&& " (__imp_?toLatin1@QString@@qhae?AVQByteArray@@xz)
qtscrollerfilter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QItemSelection & __thiscall QItemSelection::operator=(class QItemSelection &&)" (__imp_??4QItemSelection@@qaeaav0@$$QAV0@@z) referenced in function "protected: void __thiscall QtScrollerFilter::stateChanged_QAbstractItemView(class QAbstractItemView *,enum QtScroller::State)" (?stateChanged_QAbstractItemView@QtScrollerFilter@@iaexpavqabstractitemview@@w4state@QtScroller@@@z)
RhoNativeApiCall.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QString::toLower(void)const & " (__imp_?toLower@QString@@qgbe?AV1@XZ) referenced in function "public: class QString const __thiscall RhoNativeApiCall::toLowerCase(class QString const &)" (?toLowerCase@RhoNativeApiCall@@qae?BVQString@@abv2@@z)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@yapbdh@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::_System_error_category::message(int)const " (?message@_System_error_category@std@@ube?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@2@H@Z)
..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe : fatal error LNK1120: 5 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
rake aborted!
[rhosimulator_win32_build.bat "DESKTOPAPP_BUILD=1"]
Tasks: TOP => device:win32:production => build:win32
I am running on a Windows 10 machine with RMS 6.0.55, Visual Studio 2015 Community edition, and Qt 5.5 which I got from here: files.tau-technologies.com/RMS/QT/qt-opensource-windows-x86-msvc2012-5.5.0.exe
Any idea how I can get this to build?
What combination of Windows 10, RMS, Visual Studio and Qt will let me compile to win32?
Here is the link error.
..
..
..
cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -O2 -MD /O2 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 /wd4996 /wd4100 /wd4005 -GR -EHsc -DUNICODE -DWIN32 -DRHODES_VERSION_1 -DWIN32 -D_WINDOWS -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -D_CRT_SECURE_NO_WARNINGS -D_CRT_NON_CONFORMING_SWPRINTFS -DWIN32_LEAN_AND_MEAN -D_NDEBUG -DNDEBUG -DQT_NO_DEBUG -DRHODES_QT_PLATFORM -DQT_NO_DEBUG -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -IoldVersion -I..\.. -I..\..\ruby -I..\..\ruby\include -I..\..\..\wm\rhodes -I..\..\wtl80\include -IC:\Qt\Qt5-ssl\include -IC:\Qt\Qt5-ssl\include\QtMultimediaWidgets -IC:\Qt\Qt5-ssl\include\QtMultimedia -IC:\Qt\Qt5-ssl\include\QtWebKitWidgets -IC:\Qt\Qt5-ssl\include\QtWidgets -IC:\Qt\Qt5-ssl\include\QtWebKit -IC:\Qt\Qt5-ssl\include\QtGui -IC:\Qt\Qt5-ssl\include\QtANGLE -IC:\Qt\Qt5-ssl\include\QtNetwork -IC:\Qt\Qt5-ssl\include\QtCore -I..\..\..\win32\bin\RhoSimulator\generated_files -I..\..\..\win32\bin\RhoSimulator\generated_files -IC:\Qt\Qt5-ssl\mkspecs\win32-msvc2015 -Fo..\..\..\win32\bin\RhoSimulator\tmp\moc_RhoNativeApiCall.obj ..\..\..\win32\bin\RhoSimulator\generated_files\moc_RhoNativeApiCall.cpp
moc_RhoNativeApiCall.cpp
rc -DUNICODE -DWIN32 -DRHODES_VERSION_1 -DWIN32 -D_WINDOWS -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -D_CRT_SECURE_NO_WARNINGS -D_CRT_NON_CONFORMING_SWPRINTFS -DWIN32_LEAN_AND_MEAN -D_NDEBUG -DNDEBUG -DQT_NO_DEBUG -DRHODES_QT_PLATFORM -DQT_NO_DEBUG -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -fo ..\..\..\win32\bin\RhoSimulator\tmp\simulator.res resources\simulator.rc
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe @c:\Users\AWARHE~1\AppData\Local\Temp\nmB4BB.tmp
qtmain.lib(qtmain_win.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1700' doesn't match value '1900' in NetRequestImpl.obj
Creating library ..\..\..\win32\bin\RhoSimulator\RhoSimulator.lib and object ..\..\..\win32\bin\RhoSimulator\RhoSimulator.exp
QtSystemImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz) referenced in function _rho_sys_qt_getWebviewFramework
QtMainWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
QtWebPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
RhoNativeApiCall.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1@QString@@qgbe?AVQByteArray@@xz)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)&& " (__imp_?toLatin1@QString@@qhae?AVQByteArray@@xz) referenced in function _main
QtMainWindow.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)&& " (__imp_?toLatin1@QString@@qhae?AVQByteArray@@xz)
qtscrollerfilter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QItemSelection & __thiscall QItemSelection::operator=(class QItemSelection &&)" (__imp_??4QItemSelection@@qaeaav0@$$QAV0@@z) referenced in function "protected: void __thiscall QtScrollerFilter::stateChanged_QAbstractItemView(class QAbstractItemView *,enum QtScroller::State)" (?stateChanged_QAbstractItemView@QtScrollerFilter@@iaexpavqabstractitemview@@w4state@QtScroller@@@z)
RhoNativeApiCall.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QString::toLower(void)const & " (__imp_?toLower@QString@@qgbe?AV1@XZ) referenced in function "public: class QString const __thiscall RhoNativeApiCall::toLowerCase(class QString const &)" (?toLowerCase@RhoNativeApiCall@@qae?BVQString@@abv2@@z)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@yapbdh@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::_System_error_category::message(int)const " (?message@_System_error_category@std@@ube?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@2@H@Z)
..\..\..\win32\bin\RhoSimulator\RhoSimulator.exe : fatal error LNK1120: 5 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
rake aborted!
[rhosimulator_win32_build.bat "DESKTOPAPP_BUILD=1"]
Tasks: TOP => device:win32:production => build:win32