Solved Compile error on windows 10
-
First I run this command in cmd:
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" amd64
And then run
configure -opensource
Output was:
D:\SoftwareInstaltion\QT_5.15.2>configure -opensource + cd qtbase + D:\SoftwareInstaltion\QT_5.15.2\qtbase\configure.bat -top-level -opensource Bootstrapping qmake ... jom 1.1.3 - empower your cores Info: creating super cache file D:\SoftwareInstaltion\QT_5.15.2\.qmake.super Info: creating cache file D:\SoftwareInstaltion\QT_5.15.2\.qmake.cache Info: creating stash file D:\SoftwareInstaltion\QT_5.15.2\.qmake.stash This is the Qt Open Source Edition. You are licensed to use this software under the terms of the GNU Lesser General Public License (LGPL) version 3 or the GNU General Public License (GPL) version 2. Type 'L' to view the GNU Lesser General Public License version 3 (LGPLv3). Type 'G' to view the GNU General Public License version 2 (GPLv2). Type 'y' to accept this license offer. Type 'n' to decline this license offer. Do you accept the terms of either license? y Running configuration tests... Done running configuration tests. Configure summary: Build type: win32-msvc (x86_64, CPU features: sse sse2) Compiler: msvc 192829335 Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples f16c largefile precompile_header rdrnd rdseed shani x86SimdAlways shared shared debug_and_release release debug build_all c++11 c++14 c++17 c++1z concurrent dbus no-pkg-config release_tools stl Build options: Mode ................................... debug and release; default link: debug; optimized tools Optimize release build for size ........ no Building shared libraries .............. yes Using C standard ....................... C89 Using C++ standard ..................... C++17 Relocatable ............................ yes Using precompiled headers .............. yes Using LTCG ............................. no Target compiler supports: SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX .................................. AVX AVX2 AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI Other x86 ............................ AES F16C RDRAND SHA Build parts ............................ libs examples tools App store compliance ................... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... no udev ................................... no Using system zlib ...................... no Zstandard support ...................... no Qt Core: DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... no iconv .................................. no ICU .................................... no Built-in copy of the MIME database ..... yes Tracing backend ........................ <none> Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Schannel ............................... no OpenSSL ................................ no Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no DTLS ................................... no OCSP-stapling .......................... no SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... yes OpenVG ................................. no OpenGL: ANGLE ................................ yes Combined ANGLE Library ............... no Desktop OpenGL ....................... no Dynamic OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. no libinput ............................... no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. no X11 specific: XLib ................................. no XCB Xlib ............................. no EGL on X11 ........................... no xkbcommon-x11 ........................ no QPA backends: DirectFB ............................... no EGLFS .................................. no LinuxFB ................................ no VNC .................................... no Windows: Direct 2D ............................ yes DirectWrite .......................... yes DirectWrite 2 ........................ yes Qt Sql: SQL item models ........................ yes Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows WindowsVista Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... yes PostgreSQL ............................. no SQLite2 ................................ no SQLite ................................. yes Using system provided SQLite ......... no TDS (Sybase) ........................... no Qt Testlib: Tester for item models ................. yes Serial Port: ntddmodm ............................... no Qt SerialBus: Socket CAN ............................. no Socket CAN FD .......................... no SerialPort Support ..................... yes Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML sequence object .................... yes QML XML http request ................... yes QML Locale ............................. yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: Direct3D 12 ............................ yes AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Gamepad: SDL2 ................................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Output Qt3D GL traces .................. no Use SSE2 instructions .................. yes Use AVX2 instructions .................. no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... no Qt 3D GeometryLoaders: Autodesk FBX ........................... no Qt Wayland Client ........................ no Qt Wayland Compositor .................... no Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no Native Win32 Bluetooth ................. no WinRT Bluetooth API (desktop & UWP) .... yes WinRT advanced bluetooth low energy API (desktop & UWP) . yes Qt Sensors: sensorfw ............................... no Qt Quick Controls 2: Styles ................................. Default Fusion Imagine Material Universal Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Qt Positioning: Gypsy GPS Daemon ....................... no WinRT Geolocation API .................. yes Qt Location: Qt.labs.location experimental QML plugin . yes Geoservice plugins: OpenStreetMap ........................ yes HERE ................................. yes Esri ................................. yes Mapbox ............................... yes MapboxGL ............................. no Itemsoverlay ......................... yes QtXmlPatterns: XML schema support ..................... yes Qt Multimedia: ALSA ................................... no GStreamer 1.0 .......................... no GStreamer 0.10 ......................... no Video for Linux ........................ no OpenAL ................................. no PulseAudio ............................. no Resource Policy (libresourceqt5) ....... no Windows Audio Services ................. yes DirectShow ............................. yes Windows Media Foundation ............... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Tools: Qt Assistant ........................... yes Qt Designer ............................ yes Qt Distance Field Generator ............ yes kmap2qmap .............................. yes Qt Linguist ............................ yes Mac Deployment Tool .................... no makeqpf ................................ yes pixeltool .............................. yes qdbus .................................. yes qev .................................... yes Qt Attributions Scanner ................ yes qtdiag ................................. yes qtpaths ................................ yes qtplugininfo ........................... yes Windows deployment tool ................ yes WinRT Runner Tool ...................... no Qt Tools: QDoc ................................... no Qt WebEngine Build Tools: Use System Ninja ....................... yes Use System Gn .......................... no Jumbo Build Merge Limit ................ no Developer build ........................ no Sanitizer .............................. no Note: No wayland-egl support detected. Cross-toolkit compatibility disabled. Note: The following modules are not being compiled in this configuration: webenginecore webengine webenginewidgets pdf pdfwidgets WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package. On Windows, you must set LLVM_INSTALL_DIR to the installation path. WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine. WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf. WARNING: QtWebEngine will not be built. WARNING: QtPdf will not be built. Qt is now configured for building. Just run 'jom'. Once everything is built, you must run 'jom install'. Qt will be installed into 'C:\Qt\Qt-5.15.2'. Prior to reconfiguration, make sure you remove any leftovers from the previous build.
So I ran this command : "jom -j4" but below error occurred.
What's problem?D:\SoftwareInstaltion\QT_5.15.2>jom -j4 jom 1.1.3 - empower your cores cd qtbase\ && ( if not exist Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\bin\qmake.exe -o Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\qtbase.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd src/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/src.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd doc/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/doc/doc.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release cd tools/bootstrap/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/tools/bootstrap/bootstrap.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd qmake/ && ( test -e Makefile.qmake-aux || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile.qmake-aux D:/SoftwareInstaltion/QT_5.15.2/qtbase/qmake/qmake-aux.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile.qmake-aux "D:\Program Files\jom\jom.exe" -f Makefile.qmake-aux.Release "D:\Program Files\jom\jom.exe" binary "D:\Program Files\jom\jom.exe" -f Makefile.Release cd 3rdparty/pcre2/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/pcre2/pcre2.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release cd 3rdparty/libpng/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/libpng/libpng.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -ffunction-sections -fdata-sections -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_VERSION_STR='"5.15.2"' -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=2 -DQT_BOOTSTRAPPED -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -I. -I../../tools -I../../3rdparty/tinycbor/src -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.15.2 -I../../../include/QtCore/5.15.2/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.15.2 -I../../../include/QtXml/5.15.2/QtXml -Itmp -I../../../mkspecs/win32-g++ -o .obj/release/qglobal.o ../../corelib/global/qglobal.cpp cd 3rdparty/freetype/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/freetype/freetype.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release ../../corelib/global/qglobal.cpp:1177:12: warning: character constant too long for its type return QT_VERSION_STR; ^~~~~~~~~~~~~~ ../../corelib/global/qglobal.cpp: In function 'const char* qVersion()': <command-line>: error: invalid conversion from 'int' to 'const char*' [-fpermissive] ../../corelib/global/qglobal.cpp:1177:12: note: in expansion of macro 'QT_VERSION_STR' return QT_VERSION_STR; ^~~~~~~~~~~~~~ jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\tools\bootstrap\Makefile.Release [.obj\release\qglobal.o] Error 1 g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -ffunction-sections -fdata-sections -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_VERSION_STR='"5.15.2"' -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=2 -DQT_BOOTSTRAPPED -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -I. -I../../tools -I../../3rdparty/tinycbor/src -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.15.2 -I../../../include/QtCore/5.15.2/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.15.2 -I../../../include/QtXml/5.15.2/QtXml -Itmp -I../../../mkspecs/win32-g++ -o .obj/release/qstandardpaths_win.o ../../corelib/io/qstandardpaths_win.cpp jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\tools\bootstrap\Makefile [release] Error 2 jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\Makefile [sub-bootstrap-make_first] Error 2 jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\Makefile [sub-src-make_first] Error 2 jom: D:\SoftwareInstaltion\QT_5.15.2\Makefile [module-qtbase-make_first] Error 2
-
Do you want to compile with msvc or gcc? Please remove the other compiler from your PATH so configure fetches the correct one.
-
@Christian-Ehrlicher said in Compile error in windows 10:
want to compile with msvc
I want to compile with msvc butis it necessary to remove all other paths?
can we set compiler type manually in jom or configure ? -
When you want to compile with msvc then make sure configure does not fetch gcc (which is the case as you can see)
-
@Christian-Ehrlicher
I tried to remove all other compiler's paths but got below error:jom -j4 jom 1.1.3 - empower your cores cd qtbase\ && ( if not exist Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\bin\qmake.exe -o Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\qtbase.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd src/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/src.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd doc/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/doc/doc.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release cd qmake/ && ( test -e Makefile.qmake-aux || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile.qmake-aux D:/SoftwareInstaltion/QT_5.15.2/qtbase/qmake/qmake-aux.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile.qmake-aux "D:\Program Files\jom\jom.exe" -f Makefile.qmake-aux.Release "D:\Program Files\jom\jom.exe" binary cd tools/bootstrap/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/tools/bootstrap/bootstrap.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile cd 3rdparty/pcre2/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/pcre2/pcre2.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release "D:\Program Files\jom\jom.exe" -f Makefile.Release cd 3rdparty/libpng/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/libpng/libpng.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release g++ -c -fno-keep-inline-dllexport -O2 -std=c++1z -ffunction-sections -fdata-sections -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_VERSION_STR='"5.15.2"' -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=2 -DQT_BOOTSTRAPPED -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -I. -I../../tools -I../../3rdparty/tinycbor/src -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.15.2 -I../../../include/QtCore/5.15.2/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.15.2 -I../../../include/QtXml/5.15.2/QtXml -Itmp -I../../../mkspecs/win32-g++ -o .obj/release/qglobal.o ../../corelib/global/qglobal.cpp 'g++' is not recognized as an internal or external command, operable program or batch file. jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\tools\bootstrap\Makefile.Release [.obj\release\qglobal.o] Error 1 jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\tools\bootstrap\Makefile [release] Error 2 jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\src\Makefile [sub-bootstrap-make_first] Error 2 cd 3rdparty/freetype/ && ( test -e Makefile || D:/SoftwareInstaltion/QT_5.15.2/qtbase/bin/qmake.exe -o Makefile D:/SoftwareInstaltion/QT_5.15.2/qtbase/src/3rdparty/freetype/freetype.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile "D:\Program Files\jom\jom.exe" -f Makefile.Release jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\Makefile [sub-src-make_first] Error 2 jom: D:\SoftwareInstaltion\QT_5.15.2\Makefile [module-qtbase-make_first] Error 2
-
As you can see g++ is still used. Start with a clean build dir.
-
@Christian-Ehrlicher
I cleared cache files and reconfigure with this command :configure -opensource -platform win32-msvc
but this time I got this error:
jom -j4 jom 1.1.3 - empower your cores cd qtbase\ && ( if not exist Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\bin\qmake.exe -o Makefile D:\SoftwareInstaltion\QT_5.15.2\qtbase\qtbase.pro ) && "D:\Program Files\jom\jom.exe" -f Makefile 'test' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\Makefile [sub-src-make_first] Error 1 'test' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. 'test' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\Makefile [sub-qmake-qmake-aux-pro-make_first] Error 1 jom: D:\SoftwareInstaltion\QT_5.15.2\qtbase\Makefile [sub-doc-make_first] Error 1 jom: D:\SoftwareInstaltion\QT_5.15.2\Makefile [module-qtbase-make_first] Error 2
-
Are you sure you don't have msys or something in your PATH? Please make sure that there is only msvc and nothing more available!
/edit: and please don't do an in-source build. Download the source code again and do an out-of-source build.
-
@Christian-Ehrlicher
Thanks.
Its worked, I cleaned Folder and re-extracted qt from zip and reconfigure and it compiled,
I also had mys2 in my sys path and cleaned it. -
@Ali-Kiani Then please mark this topic as solved, thx.