Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
dev
-
None
-
MSVC 2022
Description
Trying to build with Windows now and it looks like its missing a psql library ?
C:\Users\aaron\GitHub\qt5\build>..\configure + cd qtbase + C:\Users\aaron\GitHub\qt5\qtbase\configure.bat -top-level -- Windows 10 SDK version: 10.0.22621.0 'C:/Program Files/CMake/bin/cmake.exe' '-G' 'Ninja' 'C:/Users/aaron/GitHub/qt5' -- The CXX compiler identification is MSVC 19.35.32215.0 -- The C compiler identification is MSVC 19.35.32215.0 -- The ASM compiler identification is MSVC -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx86/x86/cl.exe -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx86/x86/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx86/x86/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- 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 '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 'qtqa' -- 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' -DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS -DCMAKE_C_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1 -DCMAKE_C_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG -DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS /EHsc -DCMAKE_CXX_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1 -DCMAKE_CXX_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG -DCMAKE_EXE_LINKER_FLAGS=/machine:X86 -DCMAKE_C_STANDARD=11 -DCMAKE_C_STANDARD_REQUIRED=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_MODULE_PATH:STRING=C:/Users/aaron/GitHub/qt5/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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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 build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (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' -- Could NOT find Clang (missing: Clang_DIR) -- Could NOT find Clang (missing: Clang_DIR) -- Configuring submodule 'qtserialport' -- Configuring submodule 'qtpositioning' -- Configuring submodule 'qtwebchannel' -- Configuring submodule 'qtwebengine' Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'html5lib' [QtWebEngine] -- Windows 10 SDK version: 10.0.22621.0 [QtWebEngine] -- Support check for QtWebEngine failed: Python3 html5lib is missing. [QtWebEngine] -- Support check for QtPdf failed: Python3 html5lib is missing. -- Configuring submodule 'qtdoc' -- Configuring submodule 'qtgraphs' -- Configuring submodule 'qtgrpc' -- Configuring submodule 'qtlocation' -- Configuring submodule 'qtlottie' -- Configuring submodule 'qtmqtt' -- Configuring submodule 'qtnetworkauth' -- Configuring submodule 'qtopcua' -- Configuring submodule 'qtqa' -- 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 build/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message): Failed to find optional Qt component "WebEngineCore". Expected Config file at "C:/Users/aaron/GitHub/qt5/build/qtbase/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreConfig.cmake" does NOT existCall Stack (most recent call first): qtwebview/CMakeLists.txt:15 (find_package) -- Could NOT find Qt6WebEngineQuick (missing: Qt6WebEngineQuick_DIR) CMake Warning at build/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message): Failed to find optional Qt component "WebEngineQuick". Expected Config file at "C:/Users/aaron/GitHub/qt5/build/qtbase/lib/cmake/Qt6WebEngineQuick/Qt6WebEngineQuickConfig.cmake" does NOT existCall Stack (most recent call first): qtwebview/CMakeLists.txt:15 (find_package)-- Configuration summary shown below. It has also been written to C:/Users/aaron/GitHub/qt5/build/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 (i386, CPU features: sse sse2) Compiler: msvc 19.35.32215.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 Install examples sources ............... no 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 ................................ no Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no OpenSSL 3.0 ............................ no 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 ................................... no OCSP-stapling .......................... no 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 ............................. yes 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 ......................... no Clang-based lupdate parser ............. no Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes QDoc ................................... no 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 ............. no Support for global discovery server .... no 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 Canada ........................ 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 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 Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available.WARNING: QDoc will not be compiled, probably because clang's C and C++ libraries could not be located. This means that you cannot build the Qt documentation. You may need to set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. Other than clang's libraries, you may need to install another package, such as clang itself, to provide the ClangConfig.cmake file needed to detect your libraries. Once this file is in place, the configure script may be able to detect your system-installed libraries without further environment variables. On macOS, you can use Homebrew's llvm package. You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check. WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. WARNING: QtWebEngine won't be built. Python3 html5lib is missing. WARNING: QtPdf won't be built. Python3 html5lib is missing. WARNING: No perl found, compiling opus without some optimizations.--Qt is now configured for building. Just run 'cmake --build . --parallel'Once everything is built, you must run 'cmake --install .' Qt will be installed into 'C:/Qt/Qt-6.7.0'To configure and build other Qt modules, you can use the following convenience script: C:/Qt/Qt-6.7.0/bin/qt-configure-module.batIf reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory Alternatively, you can add the --fresh flag to your CMake flags.-- Configuring done (798.1s) -- Generating done (43.3s) -- Build files have been written to: C:/Users/aaron/GitHub/qt5/buildC:\Users\aaron\GitHub\qt5\build>cmake --build . [338/11303] Building CXX object qtbase\src\tools\syncqt\CMakeFiles\syncqt.dir\main.cpp.obj C:\Users\aaron\GitHub\qt5\qtbase\src\tools\syncqt\main.cpp(1698): warning C4244: '=': conversion from 'std::streamsize' to 'size_t', possible loss of data C:\Users\aaron\GitHub\qt5\qtbase\src\tools\syncqt\main.cpp(1699): warning C4244: 'argument': conversion from 'std::streamsize' to 'const unsigned int', possible loss of data [1464/11303] Linking CXX shared module qtbase\plugins\sqldrivers\qsqlpsql.dll FAILED: qtbase/plugins/sqldrivers/qsqlpsql.dll cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx86\x86\link.exe /nologo qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\QPSQLDriverPlugin_autogen\mocs_compilation.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\main.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\qsql_psql.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\QPSQLDriverPlugin_resource.rc.res /out:qtbase\plugins\sqldrivers\qsqlpsql.dll /implib:qtbase\plugins\sqldrivers\qsqlpsql.lib /pdb:qtbase\plugins\sqldrivers\qsqlpsql.pdb /dll /version:0.0 /machine:X86 /INCREMENTAL:NO -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE -OPT:REF -OPT:ICF -GUARD:CF "C:\Program Files\PostgreSQL\14\lib\libpq.lib" qtbase\lib\Qt6Sql.lib qtbase\lib\Qt6Core.lib mpr.lib userenv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx86\x86\link.exe /nologo qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\QPSQLDriverPlugin_autogen\mocs_compilation.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\main.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\qsql_psql.cpp.obj qtbase\src\plugins\sqldrivers\psql\CMakeFiles\QPSQLDriverPlugin.dir\QPSQLDriverPlugin_resource.rc.res /out:qtbase\plugins\sqldrivers\qsqlpsql.dll /implib:qtbase\plugins\sqldrivers\qsqlpsql.lib /pdb:qtbase\plugins\sqldrivers\qsqlpsql.pdb /dll /version:0.0 /machine:X86 /INCREMENTAL:NO -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE -OPT:REF -OPT:ICF -GUARD:CF C:\Program Files\PostgreSQL\14\lib\libpq.lib qtbase\lib\Qt6Sql.lib qtbase\lib\Qt6Core.lib mpr.lib userenv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1120) with the following output: Creating library qtbase\plugins\sqldrivers\qsqlpsql.lib and object qtbase\plugins\sqldrivers\qsqlpsql.exp qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQconnectdb referenced in function "public: virtual bool __thiscall QPSQLDriver::open(class QString const &,class QString const &,class QString const &,class QString const &,int,class QString const &)" (?open@QPSQLDriver@@UAE_NABVQString@@000H0@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQfinish referenced in function "public: virtual __thiscall QPSQLDriver::~QPSQLDriver(void)" (??1QPSQLDriver@@UAE@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQstatus referenced in function "public: virtual bool __thiscall QPSQLDriver::isOpen(void)const " (?isOpen@QPSQLDriver@@UBE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQerrorMessage referenced in function "public: void __thiscall QPSQLResultPrivate::deallocatePreparedStmt(void)" (?deallocatePreparedStmt@QPSQLResultPrivate@@QAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQsocket referenced in function "public: virtual bool __thiscall QPSQLDriver::subscribeToNotification(class QString const &)" (?subscribeToNotification@QPSQLDriver@@UAE_NABVQString@@@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQbackendPID referenced in function "private: void __thiscall QPSQLDriver::_q_handleNotification(void)" (?_q_handleNotification@QPSQLDriver@@AAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQexec referenced in function "public: struct pg_result * __thiscall QPSQLDriverPrivate::exec(class QString const &)" (?exec@QPSQLDriverPrivate@@QAEPAUpg_result@@ABVQString@@@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQsendQuery referenced in function "public: int __thiscall QPSQLDriverPrivate::sendQuery(class QString const &)" (?sendQuery@QPSQLDriverPrivate@@QAEHABVQString@@@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQsetSingleRowMode referenced in function "protected: virtual bool __thiscall QPSQLResult::exec(void)" (?exec@QPSQLResult@@MAE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQgetResult referenced in function "protected: void __thiscall QPSQLResult::cleanup(void)" (?cleanup@QPSQLResult@@IAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQconsumeInput referenced in function "private: void __thiscall QPSQLDriver::_q_handleNotification(void)" (?_q_handleNotification@QPSQLDriver@@AAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQnotifies referenced in function "private: void __thiscall QPSQLDriver::_q_handleNotification(void)" (?_q_handleNotification@QPSQLDriver@@AAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQresultStatus referenced in function "protected: virtual bool __thiscall QPSQLDriver::beginTransaction(void)" (?beginTransaction@QPSQLDriver@@MAE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQresultErrorField referenced in function "class QSqlError __cdecl qMakeError(class QString const &,enum QSqlError::ErrorType,class QPSQLDriverPrivate const *,struct pg_result *)" (?qMakeError@@YA?AVQSqlError@@ABVQString@@W4ErrorType@1@PBVQPSQLDriverPrivate@@PAUpg_result@@@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQntuples referenced in function "protected: virtual bool __thiscall QPSQLResult::fetchFirst(void)" (?fetchFirst@QPSQLResult@@MAE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQnfields referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQfname referenced in function "protected: virtual class QSqlRecord __thiscall QPSQLResult::record(void)const " (?record@QPSQLResult@@MBE?AVQSqlRecord@@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQftable referenced in function "protected: virtual class QSqlRecord __thiscall QPSQLResult::record(void)const " (?record@QPSQLResult@@MBE?AVQSqlRecord@@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQftype referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQfsize referenced in function "protected: virtual class QSqlRecord __thiscall QPSQLResult::record(void)const " (?record@QPSQLResult@@MBE?AVQSqlRecord@@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQfmod referenced in function "protected: virtual class QSqlRecord __thiscall QPSQLResult::record(void)const " (?record@QPSQLResult@@MBE?AVQSqlRecord@@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQcmdStatus referenced in function "protected: virtual bool __thiscall QPSQLDriver::commitTransaction(void)" (?commitTransaction@QPSQLDriver@@MAE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQoidValue referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::lastInsertId(void)const " (?lastInsertId@QPSQLResult@@MBE?AVQVariant@@XZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQcmdTuples referenced in function "protected: virtual int __thiscall QPSQLResult::numRowsAffected(void)" (?numRowsAffected@QPSQLResult@@MAEHXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQgetvalue referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQgetisnull referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQclear referenced in function "protected: virtual bool __thiscall QPSQLDriver::beginTransaction(void)" (?beginTransaction@QPSQLDriver@@MAE_NXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQfreemem referenced in function "private: void __thiscall QPSQLDriver::_q_handleNotification(void)" (?_q_handleNotification@QPSQLDriver@@AAEXXZ) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQescapeByteaConn referenced in function "public: virtual class QString __thiscall QPSQLDriver::formatValue(class QSqlField const &,bool)const " (?formatValue@QPSQLDriver@@UBE?AVQString@@ABVQSqlField@@_N@Z) qsql_psql.cpp.obj : error LNK2019: unresolved external symbol _PQunescapeBytea referenced in function "protected: virtual class QVariant __thiscall QPSQLResult::data(int)" (?data@QPSQLResult@@MAE?AVQVariant@@H@Z) C:\Program Files\PostgreSQL\14\lib\libpq.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86' qtbase\plugins\sqldrivers\qsqlpsql.dll : fatal error LNK1120: 30 unresolved externals [1473/11303] Building C object qtbase\src\plugins\sqldrive...iteDriverPlugin.dir\__\__\__\3rdparty\sqlite\sqlite3.c.obj ninja: build stopped: subcommand failed.
Attachments
Issue Links
- is duplicated by
-
QTBUG-116583 qtbase\plugins\sqldrivers\qsqlpsql.dll : fatal error LNK1120: 30 unresolved externals
- Closed