Problems with building qt from source (it doesn't generate lib files)
-
Hey, I am trying to build qt from source because I have run into a problem with strings (converting from and to Qstring), and the solution I found online was to build it yourself, so it builds with the same STL environment. I build qt, and then Visual Studio, the linker specifically, complains about missing files. It stops after the first file, so if I copy this file from the official build, it says the same thing but about a different file.
D:\Libraries\Qt\6.6.0\Build\plugins\styles\qwindowsvistastyle.lib
here is the command I use
configure.bat -release -prefix "D:\Libraries\Qt\6.6.0\Build" & cmake --build . --parallel & cmake --install .
-
Please check that there are no build errors. In particular, consider using
&&
in your command line to stop the build when an error occurs. Finally, it's best practice to not 'pollute' the source directory, as that can sometimes lead to surpising behavior:mkdir build && cd build ..\configure.bat -release -prefix "D:\Libraries\Qt\6.6.0\Build" && cmake --build . --parallel && cmake --install .
-
@kkoehne ok the configuration finished, it didn't go to the build step. here are the logs
+ cd qtbase + D:\Libraries\Qt\6.6.0\Src\qtbase\configure.bat -top-level -release -prefix "D:\Libraries\Qt\6.6.0\Build" -- Windows 10 SDK version: 10.0.22621.0 'C:/Program Files/CMake/bin/cmake.exe' '-DCMAKE_INSTALL_PREFIX=D:/Libraries/Qt/6.6.0/Build' '-DCMAKE_BUILD_TYPE=Release' '-G' 'Ninja' 'D:/Libraries/Qt/6.6.0/Src' -- Checking dependencies of submodule 'qtbase' -- Checking dependencies of submodule 'qtimageformats' -- Checking dependencies of submodule 'qtlanguageserver' -- Checking dependencies of submodule 'qtshadertools' -- Checking dependencies of submodule 'qtsvg' -- Checking dependencies of submodule 'qtdeclarative' -- Checking dependencies of submodule 'qtquicktimeline' -- Checking dependencies of submodule 'qtquick3d' -- Checking dependencies of submodule 'qtmultimedia' -- Checking dependencies of submodule 'qt3d' -- Checking dependencies of submodule 'qt5compat' -- Checking dependencies of submodule 'qtactiveqt' -- Checking dependencies of submodule 'qtcharts' -- Checking dependencies of submodule 'qtcoap' -- Checking dependencies of submodule 'qtconnectivity' -- Checking dependencies of submodule 'qtdatavis3d' -- Checking dependencies of submodule 'qtwebsockets' -- Checking dependencies of submodule 'qthttpserver' -- Checking dependencies of submodule 'qttools' -- Checking dependencies of submodule 'qtserialport' -- Checking dependencies of submodule 'qtpositioning' -- Checking dependencies of submodule 'qtwebchannel' -- Checking dependencies of submodule 'qtwebengine' -- Checking dependencies of submodule 'qtdoc' -- Checking dependencies of submodule 'qtgraphs' -- Checking dependencies of submodule 'qtgrpc' -- Checking dependencies of submodule 'qtinsighttracker' -- Checking dependencies of submodule 'qtlocation' -- Checking dependencies of submodule 'qtlottie' -- Checking dependencies of submodule 'qtmqtt' -- Checking dependencies of submodule 'qtnetworkauth' -- Checking dependencies of submodule 'qtopcua' -- Checking dependencies of submodule 'qtquick3dphysics' -- Checking dependencies of submodule 'qtquickeffectmaker' -- Checking dependencies of submodule 'qtremoteobjects' -- Checking dependencies of submodule 'qtscxml' -- Checking dependencies of submodule 'qtsensors' -- Checking dependencies of submodule 'qtserialbus' -- Checking dependencies of submodule 'qtspeech' -- Checking dependencies of submodule 'qttranslations' -- Checking dependencies of submodule 'qtvirtualkeyboard' -- Checking dependencies of submodule 'qtwayland' -- Checking dependencies of submodule 'qtwebview' -- Configuring submodule 'qtbase' [QtBase] 'qtwebengine_build' is changed from OFF to ON [QtBase] 'qtpdf_build' is changed from OFF to ON [QtBase] 'qtwebengine_core_build' is changed from OFF to ON [QtBase] 'qtwebengine_widgets_build' is changed from OFF to ON [QtBase] 'qtwebengine_quick_build' is changed from OFF to ON [QtBase] 'qtpdf_widgets_build' is changed from OFF to ON [QtBase] 'qtpdf_quick_build' is changed from OFF to ON CMake Warning at qtbase/cmake/QtSetup.cmake:393 (message): Re-configuring in existing build folder. Some features will be re-evaluated automatically. Call Stack (most recent call first): qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:249 (include) qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake:411 (qt_build_internals_set_up_private_api) qtbase/CMakeLists.txt:127 (qt_build_repo_begin) -DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS -DCMAKE_C_FLAGS_DEBUG=/Zi /RTC1 -DCMAKE_C_FLAGS_RELEASE=/DNDEBUG -O2 -Ob3 -DCMAKE_C_FLAGS_RELWITHDEBINFO=/Zi /DNDEBUG -O2 -Ob3 -DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS -DCMAKE_CXX_FLAGS_DEBUG=/Zi /RTC1 -DCMAKE_CXX_FLAGS_RELEASE=/DNDEBUG -O2 -Ob3 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=/Zi /DNDEBUG -O2 -Ob3 -DCMAKE_OBJCOPY=C:/Strawberry/c/bin/objcopy.exe -DCMAKE_EXE_LINKER_FLAGS=/machine:x64 -DCMAKE_C_STANDARD=11 -DCMAKE_C_STANDARD_REQUIRED=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_MODULE_PATH:STRING=D:/Libraries/Qt/6.6.0/Src/qtbase/cmake/platforms -- Configuring submodule 'qtimageformats' -- Configuring submodule 'qtlanguageserver' -- Configuring submodule 'qtshadertools' -- Configuring submodule 'qtsvg' -- Configuring submodule 'qtdeclarative' -- Configuring submodule 'qtquicktimeline' -- Configuring submodule 'qtquick3d' -- Configuring submodule 'qtmultimedia' -- Configuring submodule 'qt3d' CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/render/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/scene3d/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/extras/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/scene2d/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/input/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/logic/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/animation/CMakeLists.txt:10 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring submodule 'qt5compat' CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt5compat/src/imports/graphicaleffects5/CMakeLists.txt:36 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring submodule 'qtactiveqt' -- Configuring submodule 'qtcharts' -- Configuring submodule 'qtcoap' -- Configuring submodule 'qtconnectivity' -- Configuring submodule 'qtdatavis3d' -- Configuring submodule 'qtwebsockets' CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring submodule 'qthttpserver' -- Configuring submodule 'qttools' -- Configuring submodule 'qtserialport' -- Configuring submodule 'qtpositioning' -- Configuring submodule 'qtwebchannel' -- Configuring submodule 'qtwebengine' [QtWebEngine] -- Windows 10 SDK version: 10.0.22621.0 [QtWebEngine] -- Support check for QtWebEngine failed: Tool gperf is required. [QtWebEngine] -- Support check for QtPdf failed: Tool gperf is required. -- Configuring submodule 'qtdoc' -- Configuring submodule 'qtgraphs' -- Configuring submodule 'qtgrpc' -- Configuring submodule 'qtinsighttracker' -- Configuring submodule 'qtlocation' -- Configuring submodule 'qtlottie' -- Configuring submodule 'qtmqtt' -- Configuring submodule 'qtnetworkauth' -- Configuring submodule 'qtopcua' -- Configuring submodule 'qtquick3dphysics' -- Configuring submodule 'qtquickeffectmaker' Nodes path: qml/QtQuickEffectMaker/defaultnodes -- Configuring submodule 'qtremoteobjects' -- Configuring submodule 'qtscxml' -- Configuring submodule 'qtsensors' -- Configuring submodule 'qtserialbus' -- Configuring submodule 'qtspeech' -- Configuring submodule 'qttranslations' -- Configuring submodule 'qtvirtualkeyboard' -- Configuring submodule 'qtwayland' Skipping the build as the condition "LINUX OR MACOS OR QNX" is not met. -- Configuring submodule 'qtwebview' -- Could NOT find Qt6WebEngineCore (missing: Qt6WebEngineCore_DIR) CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:213 (message): Failed to find optional Qt component "WebEngineCore". Expected Config file at "D:/Libraries/Qt/6.6.0/Src/qtbase/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreConfig.cmake" does NOT exist Call Stack (most recent call first): qtwebview/CMakeLists.txt:15 (find_package) -- Could NOT find Qt6WebEngineQuick (missing: Qt6WebEngineQuick_DIR) CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:213 (message): Failed to find optional Qt component "WebEngineQuick". Expected Config file at "D:/Libraries/Qt/6.6.0/Src/qtbase/lib/cmake/Qt6WebEngineQuick/Qt6WebEngineQuickConfig.cmake" does NOT exist Call Stack (most recent call first): qtwebview/CMakeLists.txt:15 (find_package) -- Configuration summary shown below. It has also been written to D:/Libraries/Qt/6.6.0/Src/config.summary -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations. -- Configure summary: Building for: win32-msvc (x86_64, CPU features: ) Compiler: msvc 19.37.32822.0 Build options: Mode ................................... release Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Unity Build ............................ no Relocatable ............................ yes Using precompiled headers .............. yes Using Link Time Optimization (LTCG) .... no Using Intel CET ........................ no Target compiler supports: x86 Intrinsics ....................... Basic VAES AVX512VBMI2 Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs 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 PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... no Using vcpkg ............................ no udev ................................... no OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ yes Using system zlib ...................... no Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. no DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... no ICU .................................... no Using system libb2 ..................... no Built-in copy of the MIME database ..... yes Application permissions ................ yes Tracing backend ........................ <none> OpenSSL based cryptographic hash ....... no Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Schannel ............................... yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qIsEffectiveTLD() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... no Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ yes qmake .................................. yes 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 .................................... no OpenVG ................................. no OpenGL: 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 HiRes wheel support in 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 xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. no EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... no EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ no LinuxFB ................................ no VNC .................................... no VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... no XCB GLX .......................... no EGL-X11 Plugin ..................... no Windows: Direct 2D ............................ yes Direct 2D 1.1 ........................ yes DirectWrite .......................... yes DirectWrite 3 ........................ yes Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows WindowsVista Qt Testlib: Tester for item models ................. yes Batch tests ............................ no Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... yes PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Mimer .................................. no 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 XML http request ................... yes QML Locale ............................. yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... yes Open SLES (Android) .................. no Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. yes Hardware acceleration and features: Video for Linux ...................... no VAAPI support ........................ no Linux DMA buffer support ............. no VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. no Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... yes Qt Tools: Qt Assistant ........................... yes libclang found ......................... yes Clang-based lupdate parser ............. yes Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... yes Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes Serial Port: ntddmodm ............................... no WebEngine Repository Build Options: Build Ninja ............................ no Build Gn ............................... yes Jumbo Build ............................ yes Developer build ........................ no Build QtWebEngine Modules: Build QtWebEngineCore ................ no Build QtWebEngineWidgets ............. no Build QtWebEngineQuick ............... no Build QtPdf Modules: Build QtPdfWidgets ................... no Build QtPdfQuick ..................... no Qt Protobuf tools: Qt Protobuf generator .................. no Qt GRPC: gRPC support ........................... yes Native gRPC support .................... no Qt GRPC tools: Qt GRPC generator ...................... no Qt Opcua: Open62541 .............................. yes Unified Automation C++ SDK ............. no Support for namespace 0 NodeId names ... yes Namespace 0 NodeIds generator .......... no Open62541 security support ............. yes Support for global discovery server .... yes Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: WinRT sensors backend .................. yes Qt SerialBus: Socket CAN ............................. no Socket CAN FD .......................... no SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Example HWR ............................ no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French C anada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: QtWebEngine won't be built. Tool gperf is required. WARNING: QtPdf won't be built. Tool gperf is required. Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes -- Configuring done (2458.9s) -- Generating done (33.0s) -- Build files have been written to: D:/Libraries/Qt/6.6.0/Src Error: could not load cache
-
I didn't realize that using the configure command inside the source directory actually builds in the same directory. It seems to work now after downloading src and rebuilding. although the build command did fail because of QtWebEngine. So I will rebuild it without tomorrow. Thank you very much for the support
FAILED: qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineglobalsettings.cpp.obj C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1437~1.328\bin\Hostx64\x64\cl.exe /nologo /TP -DBUILDING_CHROMIUM -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WEBENGINECORE_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_OPENGL_LIB -DQT_POSITIONING_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WEBCHANNEL_LIB -DUNICODE -DWIN32 -DWIN64 -DWebEngineCore_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -ID:\Libraries\Qt\6.6.0\Src\build\qtwebengine\src\core\api\WebEngineCore_autogen\include -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtWebEngineCore -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api -ID:\Libraries\Qt\6.6.0\Src\build\qtwebengine\src\core\api -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\.. -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\..\..\3rdparty\chromium -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\..\..\3rdparty\chromium\third_party\abseil-cpp -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\..\..\3rdparty\chromium\third_party\perfetto\include -ID:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\..\..\3rdparty\chromium\third_party\boringssl\src\include -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtWebEngineCore\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtWebEngineCore\6.6.0\QtWebEngineCore -ID:\Libraries\Qt\6.6.0\Src\build\qtwebengine\src\core\Release\AMD64\gen -ID:\Libraries\Qt\6.6.0\Src\build\qtwebengine\src\core\Release\AMD64\gen\third_party\perfetto -ID:\Libraries\Qt\6.6.0\Src\build\qtwebengine\src\core\Release\AMD64\gen\third_party\perfetto\build_config -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtCore -ID:\Libraries\Qt\6.6.0\Src\qtbase\mkspecs\win32-msvc -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtGui -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtNetwork -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQuick -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQml -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQmlIntegration -ID:\Libraries\Qt\6.6.0\Src\qtdeclarative\src\qmlintegration -ID:\Libraries\Qt\6.6.0\Src\build\qtdeclarative\src\qmlintegration -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQmlModels -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtOpenGL -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\src\corelib -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtCore\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtCore\6.6.0\QtCore -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\src\gui -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtGui\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtGui\6.6.0\QtGui -ID:\Libraries\Qt\6.6.0\Src\build\qtdeclarative\src\quick -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQuick\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQuick\6.6.0\QtQuick -ID:\Libraries\Qt\6.6.0\Src\build\qtdeclarative\src\qmlmodels -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQmlModels\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQmlModels\6.6.0\QtQmlModels -ID:\Libraries\Qt\6.6.0\Src\build\qtdeclarative\src\qml -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQml\6.6.0 -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtQml\6.6.0\QtQml -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtWebChannel -ID:\Libraries\Qt\6.6.0\Src\build\qtbase\include\QtPositioning /DWIN32 /D_WINDOWS /DNDEBUG -O2 -Ob3 -std:c++17 -MD /W3 /EHs-c- /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /YuD:/Libraries/Qt/6.6.0/Src/build/qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/cmake_pch.hxx /FpD:/Libraries/Qt/6.6.0/Src/build/qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/./cmake_pch.cxx.pch /FID:/Libraries/Qt/6.6.0/Src/build/qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/cmake_pch.hxx /showIncludes /Foqtwebengine\src\core\api\CMakeFiles\WebEngineCore.dir\qwebengineglobalsettings.cpp.obj /Fdqtwebengine\src\core\api\CMakeFiles\WebEngineCore.dir\ /FS -c D:\Libraries\Qt\6.6.0\Src\qtwebengine\src\core\api\qwebengineglobalsettings.cpp
-
@kkoehne Never mind, I finished a full install and still have the same error. I did change the command because I was getting issues other wise. here is the modified command I used:
mkdir build && cd build ..\configure.bat -release -prefix "D:\Libraries\Qt\6.6.0\Build" -skip webengine -nomake tests -nomake examples && cmake --build . --parallel && cmake --install .
-
@Norzka said in Problems with building qt from source (it doesn't generate lib files):
D:\Libraries\Qt\6.6.0\Build\plugins\styles\qwindowsvistastyle.lib
Hang on, why do you expect a .lib file for a plugin, that is supposed not to be linked to (it is loaded at runtime)? There should be a .dll, but not a .lib file.
Do you (try to) explicitly link against the plugin nevertheless, in your project file? Or do you somehow try a static build (which would require Qt to be built statically, too)?