Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Added QMysql plugin to Qt Creator project on MacOS Ventura 13.4
Forum Updated to NodeBB v4.3 + New Features

Added QMysql plugin to Qt Creator project on MacOS Ventura 13.4

Scheduled Pinned Locked Moved Solved General and Desktop
53 Posts 4 Posters 16.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B BushyAxis793

    @SGaist I installed cmake with Homebrew and input:

    ./configure -sql-mysql -- -DCMAKE_INCLUDE_PATH="/usr/local/mysql/include" -DCMAKE_LIBRARY_PATH="/usr/local/mysql/lib"
    

    I got

    + mkdir -p qtbase
    + cd qtbase
    + exec /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/configure -top-level -sql-mysql -- -DCMAKE_INCLUDE_PATH=/usr/local/mysql/include -DCMAKE_LIBRARY_PATH=/usr/local/mysql/lib
    '/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake' '-DCMAKE_INCLUDE_PATH=/usr/local/mysql/include' '-DCMAKE_LIBRARY_PATH=/usr/local/mysql/lib' '-DINPUT_sql_mysql=yes' '-G' 'Unix Makefiles' '/Users/mikolajnawrocki/Qt/6.5.0/Src'
    CMake Warning at qtbase/cmake/QtAutoDetect.cmake:70 (message):
      The officially supported CMake generator for building Qt is Ninja.  You are
      using: 'Unix Makefiles' instead.  Thus, you might encounter issues.  Use at
      your own risk.
    Call Stack (most recent call first):
      qtbase/cmake/QtAutoDetect.cmake:485 (qt_auto_detect_cmake_generator)
      CMakeLists.txt:15 (include)
    
    
    -- The CXX compiler identification is AppleClang 14.0.3.14030022
    -- The C compiler identification is AppleClang 14.0.3.14030022
    -- The ASM compiler identification is Clang with GNU-like command-line
    -- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - 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 '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'
                -DCMAKE_C_FLAGS_DEBUG=-g
                -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
                -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                -DCMAKE_CXX_FLAGS_DEBUG=-g
                -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
                -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                -DCMAKE_C_STANDARD=11
                -DCMAKE_C_STANDARD_REQUIRED=ON
                -DCMAKE_CXX_STANDARD=17
                -DCMAKE_CXX_STANDARD_REQUIRED=ON
                -DCMAKE_MODULE_PATH:STRING=/Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/cmake/platforms
                -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH:BOOL=OFF
    -- 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'
    Condition "WIN32" is not met, enabling documentation build only.
    -- 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'
    -- Could NOT find Clang (missing: Clang_DIR)
    -- Could NOT find Clang (missing: Clang_DIR)
    -- Configuring submodule 'qtserialport'
    -- Configuring submodule 'qtpositioning'
    -- Configuring submodule 'qtwebchannel'
    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):
      qtwebchannel/src/imports/webchannel/CMakeLists.txt:10 (qt_internal_add_qml_module)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring submodule 'qtwebengine'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'html5lib'
    [QtWebEngine] -- Support check for QtWebEngine failed: node.js version 12 or later is required.
    [QtWebEngine] -- Support check for QtPdf failed: node.js version 12 or later is required.
    -- Configuring submodule 'qtdoc'
    -- 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'
    CMake Warning at qtwayland/src/CMakeLists.txt:10 (message):
      QtWayland is missing required dependencies, nothing will be built.
      Although this could be considered an error, the configuration will still
      pass as coin (Qt's continuous integration system) will fail the build if
      configure fails, but will still try to configure the module on targets that
      are missing dependencies.
    
    
    -- Configuring submodule 'qtwebview'
    -- Could NOT find Qt6WebEngineCore (missing: Qt6WebEngineCore_DIR)
    CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message):
      Failed to find optional Qt component "WebEngineCore".
    
      Expected Config file at
      "/Users/mikolajnawrocki/Qt/6.5.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:214 (message):
      Failed to find optional Qt component "WebEngineQuick".
    
      Expected Config file at
      "/Users/mikolajnawrocki/Qt/6.5.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 /Users/mikolajnawrocki/Qt/6.5.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: macx-clang (arm64, CPU features: neon crc32 crypto)
    Compiler: clang (Apple) 14.0.3.14030022
    Build options:
      Mode ................................... release
      Optimize release build for size ........ no
      Fully optimize release builds (-O3) .... no
      Building shared libraries .............. yes
      Using C standard ....................... C11
      Using C++ standard ..................... C++17
      Using ccache ........................... no
      Relocatable ............................ yes
      Using precompiled headers .............. yes
      Using Link Time Optimization (LTCG) .... no
      Using Intel CET ........................ no
      Target compiler supports:
        ARM Extensions ....................... NEON CRC32 AES
      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
      udev ................................... no
      OpenSSL ................................ no
        Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ no
      OpenSSL 3.0 ............................ no
      Using system zlib ...................... yes
      Zstandard support ...................... no
      Thread support ......................... yes
    Common build options:
      Linker can resolve circular dependencies  yes
    Qt Core:
      backtrace .............................. yes
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
      GLib ................................... no
      ICU .................................... no
      Using system libb2 ..................... no
      Built-in copy of the MIME database ..... yes
      cpp/winrt base ......................... no
      Tracing backend ........................ <none>
      Logging backends:
        journald ............................. no
        syslog ............................... no
        slog2 ................................ no
      PCRE2 .................................. yes
        Using system PCRE2 ................... no
      Application permissions ................ yes
    Qt Sql:
      SQL item models ........................ yes
    Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      SecureTransport ........................ yes
      DTLS ................................... no
      OCSP-stapling .......................... no
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. yes
      Brotli Decompression Support ........... no
      qIsEffectiveTLD() ...................... yes
        Built-in publicsuffix database ....... yes
        System publicsuffix database ......... no
    Core tools:
      Android deployment tool ................ yes
      macOS deployment tool .................. yes
      Windows deployment tool ................ no
      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 ....................... 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 ............................ no
        Direct 2D 1.1 ........................ no
        DirectWrite .......................... no
        DirectWrite 3 ........................ no
    Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion macOS Windows
    Qt Testlib:
      Tester for item models ................. yes
      Batch tests ............................ no
    Qt PrintSupport:
      CUPS ................................... yes
    Qt Sql Drivers:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. yes
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite ................................. yes
        Using system provided SQLite ......... 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 .............. no
      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 ............................ yes
        Windows Media SDK .................... no
        Open SLES (Android) .................. no
        Web Assembly ......................... no
      Plugin:
        GStreamer 1.0 ........................ no
        FFmpeg ............................... no
        MMRenderer ........................... no
        AVFoundation ......................... yes
        Windows Media Foundation ............. no
      Hardware acceleration and features:
        Video for Linux ...................... no
        VAAPI support ........................ no
        Linux DMA buffer support ............. no
        VideoToolbox ......................... yes
    Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Use SSE2 instructions .................. no
      Use AVX2 instructions .................. 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 .................... no
    Qt Tools:
      Qt Assistant ........................... yes
      QDoc ................................... no
      Clang-based lupdate parser ............. no
      Qt Designer ............................ yes
      Qt Distance Field Generator ............ yes
      Qt Linguist ............................ yes
      pixeltool .............................. yes
      qdbus .................................. yes
      Qt Attributions Scanner ................ yes
      qtdiag ................................. yes
      qtplugininfo ........................... yes
    Serial Port:
      ntddmodm ............................... no
    WebEngine Repository Build Options:
      Build Ninja ............................ yes
      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
      Optional system libraries:
        re2 .................................. no
        icu .................................. no
        libwebp, libwebpmux and libwebpdemux . no
        opus ................................. no
        ffmpeg ............................... no
        libvpx ............................... no
        snappy ............................... no
        glib ................................. no
        zlib ................................. no
        minizip .............................. no
        libevent ............................. no
        libxml2 and libxslt .................. no
        lcms2 ................................ no
        png .................................. no
        jpeg ................................. no
        libopenjpeg2 ......................... no
        harfbuzz ............................. no
        freetype ............................. no
        libpci ............................... 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 Insight Tracker:
      QML analytics interface ................ 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:
      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
        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 libclang could not be located. This means that you cannot build the Qt documentation.
    Either set CMAKE_PREFIX_PATH or 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.
    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. node.js version 12 or later is required.
    WARNING: QtPdf won't be built. node.js version 12 or later is required.
    
    -- 
    
    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 '/usr/local/Qt-6.5.0'
    
    To configure and build other Qt modules, you can use the following convenience script:
            /usr/local/Qt-6.5.0/bin/qt-configure-module
    
    If 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 (52.4s)
    -- Generating done (7.5s)
    
    

    Then I go to /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers and input:

    /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake -G Ninja /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib" -DCMAKE_OSX_ARCHITECTURES="arm64"
    

    I got:

    CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
    CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
    -- Configuring incomplete, errors occurred!
    
    SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #12

    Please stop trying to reconfigure a full Qt build.

    Just follow the instructions for building the driver directly as you did before, just drop the -G Ninja part. And please do that from a new empty build folder.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    B 1 Reply Last reply
    2
    • SGaistS SGaist

      Please stop trying to reconfigure a full Qt build.

      Just follow the instructions for building the driver directly as you did before, just drop the -G Ninja part. And please do that from a new empty build folder.

      B Offline
      B Offline
      BushyAxis793
      wrote on last edited by
      #13

      @SGaist Ok. I follow the instructions from your link and below is the result:

      mikolajnawrocki@MacBook-Pro-Mikoaj ~ %  cd /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers
      mikolajnawrocki@MacBook-Pro-Mikoaj sqldrivers % mkdir build-sqldrivers
      mikolajnawrocki@MacBook-Pro-Mikoaj sqldrivers % cd build-sqldrivers
      mikolajnawrocki@MacBook-Pro-Mikoaj build-sqldrivers % qt-cmake -G Ninja /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
      zsh: command not found: qt-cmake
      
      SGaistS 1 Reply Last reply
      0
      • B BushyAxis793

        @SGaist Ok. I follow the instructions from your link and below is the result:

        mikolajnawrocki@MacBook-Pro-Mikoaj ~ %  cd /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers
        mikolajnawrocki@MacBook-Pro-Mikoaj sqldrivers % mkdir build-sqldrivers
        mikolajnawrocki@MacBook-Pro-Mikoaj sqldrivers % cd build-sqldrivers
        mikolajnawrocki@MacBook-Pro-Mikoaj build-sqldrivers % qt-cmake -G Ninja /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
        zsh: command not found: qt-cmake
        
        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #14

        Use the full path to the qt-cmake executable.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        B 1 Reply Last reply
        1
        • SGaistS SGaist

          Use the full path to the qt-cmake executable.

          B Offline
          B Offline
          BushyAxis793
          wrote on last edited by
          #15

          @SGaist I got:

          mikolajnawrocki@MacBook-Pro-Mikoaj build-sqldrivers % /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake -G Ninja /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
          CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
          CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
          -- Configuring incomplete, errors occurred!
          
          SGaistS 1 Reply Last reply
          0
          • B BushyAxis793

            @SGaist I got:

            mikolajnawrocki@MacBook-Pro-Mikoaj build-sqldrivers % /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake -G Ninja /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
            CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
            CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
            -- Configuring incomplete, errors occurred!
            
            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #16

            Why did you add the Ninja stuff back ? I just wrote that you should use the full path to qt-cmake.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            B 2 Replies Last reply
            1
            • SGaistS SGaist

              Why did you add the Ninja stuff back ? I just wrote that you should use the full path to qt-cmake.

              B Offline
              B Offline
              BushyAxis793
              wrote on last edited by
              #17

              @SGaist I am not sure I understand what you are talking about. But I input :

              /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake -G /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
              

              and I got:

              CMake Error: Could not create named generator /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers
              
              Generators
              * Unix Makefiles               = Generates standard UNIX makefiles.
                Ninja                        = Generates build.ninja files.
                Ninja Multi-Config           = Generates build-<Config>.ninja files.
                Watcom WMake                 = Generates Watcom WMake makefiles.
                Xcode                        = Generate Xcode project files.
                CodeBlocks - Ninja           = Generates CodeBlocks project files.
                CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
                CodeLite - Ninja             = Generates CodeLite project files.
                CodeLite - Unix Makefiles    = Generates CodeLite project files.
                Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
                Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
                Kate - Ninja                 = Generates Kate project files.
                Kate - Unix Makefiles        = Generates Kate project files.
                Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
                Sublime Text 2 - Unix Makefiles
                                             = Generates Sublime Text 2 project files.
              
              CMake Warning:
                No source or binary directory provided.  Both will be assumed to be the
                same as the current working directory, but note that this warning will
                become a fatal error in future CMake releases.
              
              1 Reply Last reply
              0
              • SGaistS SGaist

                Why did you add the Ninja stuff back ? I just wrote that you should use the full path to qt-cmake.

                B Offline
                B Offline
                BushyAxis793
                wrote on last edited by
                #18

                @SGaist Ok I was need some time to unsderstand. I input :

                /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
                

                And I got:

                -- The CXX compiler identification is AppleClang 14.0.3.14030022
                -- The C compiler identification is AppleClang 14.0.3.14030022
                -- The ASM compiler identification is Clang with GNU-like command-line
                -- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
                -- Detecting CXX compiler ABI info
                -- Detecting CXX compiler ABI info - done
                -- Check for working CXX compiler: /usr/bin/clang++ - 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: /usr/bin/clang - skipped
                -- Detecting C compile features
                -- Detecting C compile features - done
                -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
                -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
                -- Found Threads: TRUE  
                -- Performing Test HAVE_STDATOMIC
                -- Performing Test HAVE_STDATOMIC - Success
                -- Found WrapAtomic: TRUE  
                
                -- Configuration summary shown below. It has also been written to /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers/build-sqldrivers/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:
                
                Qt Sql Drivers:
                  DB2 (IBM) .............................. no
                  InterBase .............................. no
                  MySql .................................. yes
                  OCI (Oracle) ........................... no
                  ODBC ................................... no
                  PostgreSQL ............................. no
                  SQLite ................................. yes
                    Using system provided SQLite ......... no
                 
                
                -- Configuring done (3.8s)
                -- Generating done (0.0s)
                -- Build files have been written to: /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers/build-sqldrivers
                
                

                Then I input:

                cmake --build .

                and I got:

                [  9%] Automatic MOC for target QMYSQLDriverPlugin
                [  9%] Built target QMYSQLDriverPlugin_autogen
                [ 18%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o
                [ 27%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.o
                [ 36%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.o
                [ 45%] Linking CXX shared module ../plugins/sqldrivers/libqsqlmysql.dylib
                ld: warning: ignoring file /usr/local/mysql/lib/libmysqlclient.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
                Undefined symbols for architecture x86_64:
                  "_mysql_affected_rows", referenced from:
                      QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                  "_mysql_character_set_name", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) (.cold.1) in qsql_mysql.cpp.o
                  "_mysql_close", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                      QMYSQLDriver::close() in qsql_mysql.cpp.o
                  "_mysql_data_seek", referenced from:
                      QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                  "_mysql_errno", referenced from:
                      qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*) in qsql_mysql.cpp.o
                      QMYSQLResult::record() const in qsql_mysql.cpp.o
                  "_mysql_error", referenced from:
                      qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*) in qsql_mysql.cpp.o
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) (.cold.1) in qsql_mysql.cpp.o
                  "_mysql_fetch_field", referenced from:
                      QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                      QMYSQLResult::record() const in qsql_mysql.cpp.o
                      QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                  "_mysql_fetch_field_direct", referenced from:
                      QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                  "_mysql_fetch_lengths", referenced from:
                      QMYSQLResult::data(int) in qsql_mysql.cpp.o
                  "_mysql_fetch_row", referenced from:
                      QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                      QMYSQLResult::fetchNext() in qsql_mysql.cpp.o
                  "_mysql_field_count", referenced from:
                      QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                  "_mysql_field_seek", referenced from:
                      QMYSQLResult::record() const in qsql_mysql.cpp.o
                  "_mysql_free_result", referenced from:
                      QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                      QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                  "_mysql_init", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_insert_id", referenced from:
                      QMYSQLResult::lastInsertId() const in qsql_mysql.cpp.o
                  "_mysql_list_fields", referenced from:
                      QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                  "_mysql_next_result", referenced from:
                      QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                  "_mysql_num_fields", referenced from:
                      QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                  "_mysql_num_rows", referenced from:
                      QMYSQLResult::fetchLast() in qsql_mysql.cpp.o
                      QMYSQLResult::size() in qsql_mysql.cpp.o
                  "_mysql_options", referenced from:
                      setOptionString(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                      setOptionInt(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                      setOptionBool(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                  "_mysql_query", referenced from:
                      QMYSQLDriver::beginTransaction() in qsql_mysql.cpp.o
                      QMYSQLDriver::commitTransaction() in qsql_mysql.cpp.o
                      QMYSQLDriver::rollbackTransaction() in qsql_mysql.cpp.o
                  "_mysql_real_connect", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_real_escape_string", referenced from:
                      QMYSQLDriver::formatValue(QSqlField const&, bool) const in qsql_mysql.cpp.o
                  "_mysql_real_query", referenced from:
                      QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                  "_mysql_select_db", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_server_end", referenced from:
                      QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                      QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                      QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                  "_mysql_server_init", referenced from:
                      QMYSQLDriver::QMYSQLDriver(QObject*) in qsql_mysql.cpp.o
                      QMYSQLDriver::QMYSQLDriver(MYSQL*, QObject*) in qsql_mysql.cpp.o
                  "_mysql_set_character_set", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_stmt_affected_rows", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_attr_set", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_bind_param", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_bind_result", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_close", referenced from:
                      QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_stmt_data_seek", referenced from:
                      QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                  "_mysql_stmt_errno", referenced from:
                      qMakeStmtError(QString const&, QSqlError::ErrorType, MYSQL_STMT*) in qsql_mysql.cpp.o
                  "_mysql_stmt_error", referenced from:
                      qMakeStmtError(QString const&, QSqlError::ErrorType, MYSQL_STMT*) in qsql_mysql.cpp.o
                  "_mysql_stmt_execute", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_fetch", referenced from:
                      QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                      QMYSQLResult::fetchNext() in qsql_mysql.cpp.o
                  "_mysql_stmt_free_result", referenced from:
                      QMYSQLResult::detachFromResultSet() in qsql_mysql.cpp.o
                  "_mysql_stmt_init", referenced from:
                      QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_stmt_insert_id", referenced from:
                      QMYSQLResult::lastInsertId() const in qsql_mysql.cpp.o
                  "_mysql_stmt_num_rows", referenced from:
                      QMYSQLResult::fetchLast() in qsql_mysql.cpp.o
                      QMYSQLResult::size() in qsql_mysql.cpp.o
                  "_mysql_stmt_param_count", referenced from:
                      QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_stmt_prepare", referenced from:
                      QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  "_mysql_stmt_reset", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_stmt_result_metadata", referenced from:
                      QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                  "_mysql_stmt_store_result", referenced from:
                      QMYSQLResult::exec() in qsql_mysql.cpp.o
                  "_mysql_store_result", referenced from:
                      QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                      QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                      QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                  "_mysql_thread_end", referenced from:
                      QMYSQLDriver::close() in qsql_mysql.cpp.o
                  "_mysql_thread_init", referenced from:
                      QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                ld: symbol(s) not found for architecture x86_64
                clang: error: linker command failed with exit code 1 (use -v to see invocation)
                make[2]: *** [plugins/sqldrivers/libqsqlmysql.dylib] Error 1
                make[1]: *** [mysql/CMakeFiles/QMYSQLDriverPlugin.dir/all] Error 2
                make: *** [all] Error 2
                
                

                What now?

                SGaistS 1 Reply Last reply
                0
                • B BushyAxis793

                  @SGaist Ok I was need some time to unsderstand. I input :

                  /Users/mikolajnawrocki/Qt/6.5.0/macos/bin/qt-cmake /Users/mikolajnawrocki/Qt/6.5.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/mikolajnawrocki/Qt/6.5.0/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
                  

                  And I got:

                  -- The CXX compiler identification is AppleClang 14.0.3.14030022
                  -- The C compiler identification is AppleClang 14.0.3.14030022
                  -- The ASM compiler identification is Clang with GNU-like command-line
                  -- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
                  -- Detecting CXX compiler ABI info
                  -- Detecting CXX compiler ABI info - done
                  -- Check for working CXX compiler: /usr/bin/clang++ - 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: /usr/bin/clang - skipped
                  -- Detecting C compile features
                  -- Detecting C compile features - done
                  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
                  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
                  -- Found Threads: TRUE  
                  -- Performing Test HAVE_STDATOMIC
                  -- Performing Test HAVE_STDATOMIC - Success
                  -- Found WrapAtomic: TRUE  
                  
                  -- Configuration summary shown below. It has also been written to /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers/build-sqldrivers/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:
                  
                  Qt Sql Drivers:
                    DB2 (IBM) .............................. no
                    InterBase .............................. no
                    MySql .................................. yes
                    OCI (Oracle) ........................... no
                    ODBC ................................... no
                    PostgreSQL ............................. no
                    SQLite ................................. yes
                      Using system provided SQLite ......... no
                   
                  
                  -- Configuring done (3.8s)
                  -- Generating done (0.0s)
                  -- Build files have been written to: /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers/build-sqldrivers
                  
                  

                  Then I input:

                  cmake --build .

                  and I got:

                  [  9%] Automatic MOC for target QMYSQLDriverPlugin
                  [  9%] Built target QMYSQLDriverPlugin_autogen
                  [ 18%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o
                  [ 27%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.o
                  [ 36%] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.o
                  [ 45%] Linking CXX shared module ../plugins/sqldrivers/libqsqlmysql.dylib
                  ld: warning: ignoring file /usr/local/mysql/lib/libmysqlclient.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
                  Undefined symbols for architecture x86_64:
                    "_mysql_affected_rows", referenced from:
                        QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                    "_mysql_character_set_name", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) (.cold.1) in qsql_mysql.cpp.o
                    "_mysql_close", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                        QMYSQLDriver::close() in qsql_mysql.cpp.o
                    "_mysql_data_seek", referenced from:
                        QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                    "_mysql_errno", referenced from:
                        qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*) in qsql_mysql.cpp.o
                        QMYSQLResult::record() const in qsql_mysql.cpp.o
                    "_mysql_error", referenced from:
                        qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*) in qsql_mysql.cpp.o
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) (.cold.1) in qsql_mysql.cpp.o
                    "_mysql_fetch_field", referenced from:
                        QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                        QMYSQLResult::record() const in qsql_mysql.cpp.o
                        QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                    "_mysql_fetch_field_direct", referenced from:
                        QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                    "_mysql_fetch_lengths", referenced from:
                        QMYSQLResult::data(int) in qsql_mysql.cpp.o
                    "_mysql_fetch_row", referenced from:
                        QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                        QMYSQLResult::fetchNext() in qsql_mysql.cpp.o
                    "_mysql_field_count", referenced from:
                        QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                    "_mysql_field_seek", referenced from:
                        QMYSQLResult::record() const in qsql_mysql.cpp.o
                    "_mysql_free_result", referenced from:
                        QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                        QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                    "_mysql_init", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_insert_id", referenced from:
                        QMYSQLResult::lastInsertId() const in qsql_mysql.cpp.o
                    "_mysql_list_fields", referenced from:
                        QMYSQLDriver::record(QString const&) const in qsql_mysql.cpp.o
                    "_mysql_next_result", referenced from:
                        QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                    "_mysql_num_fields", referenced from:
                        QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                    "_mysql_num_rows", referenced from:
                        QMYSQLResult::fetchLast() in qsql_mysql.cpp.o
                        QMYSQLResult::size() in qsql_mysql.cpp.o
                    "_mysql_options", referenced from:
                        setOptionString(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                        setOptionInt(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                        setOptionBool(MYSQL*, mysql_option, QStringView) in qsql_mysql.cpp.o
                    "_mysql_query", referenced from:
                        QMYSQLDriver::beginTransaction() in qsql_mysql.cpp.o
                        QMYSQLDriver::commitTransaction() in qsql_mysql.cpp.o
                        QMYSQLDriver::rollbackTransaction() in qsql_mysql.cpp.o
                    "_mysql_real_connect", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_real_escape_string", referenced from:
                        QMYSQLDriver::formatValue(QSqlField const&, bool) const in qsql_mysql.cpp.o
                    "_mysql_real_query", referenced from:
                        QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                    "_mysql_select_db", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_server_end", referenced from:
                        QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                        QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                        QMYSQLDriver::~QMYSQLDriver() in qsql_mysql.cpp.o
                    "_mysql_server_init", referenced from:
                        QMYSQLDriver::QMYSQLDriver(QObject*) in qsql_mysql.cpp.o
                        QMYSQLDriver::QMYSQLDriver(MYSQL*, QObject*) in qsql_mysql.cpp.o
                    "_mysql_set_character_set", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_stmt_affected_rows", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_attr_set", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_bind_param", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_bind_result", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_close", referenced from:
                        QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_stmt_data_seek", referenced from:
                        QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                    "_mysql_stmt_errno", referenced from:
                        qMakeStmtError(QString const&, QSqlError::ErrorType, MYSQL_STMT*) in qsql_mysql.cpp.o
                    "_mysql_stmt_error", referenced from:
                        qMakeStmtError(QString const&, QSqlError::ErrorType, MYSQL_STMT*) in qsql_mysql.cpp.o
                    "_mysql_stmt_execute", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_fetch", referenced from:
                        QMYSQLResult::fetch(int) in qsql_mysql.cpp.o
                        QMYSQLResult::fetchNext() in qsql_mysql.cpp.o
                    "_mysql_stmt_free_result", referenced from:
                        QMYSQLResult::detachFromResultSet() in qsql_mysql.cpp.o
                    "_mysql_stmt_init", referenced from:
                        QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_stmt_insert_id", referenced from:
                        QMYSQLResult::lastInsertId() const in qsql_mysql.cpp.o
                    "_mysql_stmt_num_rows", referenced from:
                        QMYSQLResult::fetchLast() in qsql_mysql.cpp.o
                        QMYSQLResult::size() in qsql_mysql.cpp.o
                    "_mysql_stmt_param_count", referenced from:
                        QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_stmt_prepare", referenced from:
                        QMYSQLResult::prepare(QString const&) in qsql_mysql.cpp.o
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                    "_mysql_stmt_reset", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_stmt_result_metadata", referenced from:
                        QMYSQLResultPrivate::bindInValues() in qsql_mysql.cpp.o
                    "_mysql_stmt_store_result", referenced from:
                        QMYSQLResult::exec() in qsql_mysql.cpp.o
                    "_mysql_store_result", referenced from:
                        QMYSQLResult::cleanup() in qsql_mysql.cpp.o
                        QMYSQLResult::reset(QString const&) in qsql_mysql.cpp.o
                        QMYSQLResult::nextResult() in qsql_mysql.cpp.o
                    "_mysql_thread_end", referenced from:
                        QMYSQLDriver::close() in qsql_mysql.cpp.o
                    "_mysql_thread_init", referenced from:
                        QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&) in qsql_mysql.cpp.o
                  ld: symbol(s) not found for architecture x86_64
                  clang: error: linker command failed with exit code 1 (use -v to see invocation)
                  make[2]: *** [plugins/sqldrivers/libqsqlmysql.dylib] Error 1
                  make[1]: *** [mysql/CMakeFiles/QMYSQLDriverPlugin.dir/all] Error 2
                  make: *** [all] Error 2
                  
                  

                  What now?

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #19

                  Looks like you installed an arm only version of the MySQL library while working with an x86_64 build of Qt.

                  What is your machine ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  B 2 Replies Last reply
                  1
                  • SGaistS SGaist

                    Looks like you installed an arm only version of the MySQL library while working with an x86_64 build of Qt.

                    What is your machine ?

                    B Offline
                    B Offline
                    BushyAxis793
                    wrote on last edited by BushyAxis793
                    #20

                    @SGaist Information below:

                    602a9680-6574-4a79-bd9b-4f122bd6de6b-Zrzut ekranu 2023-05-28 o 21.26.59.png

                    I supposed I installed Qt arm64 version... So should I Install MySQL x86_64?

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Looks like you installed an arm only version of the MySQL library while working with an x86_64 build of Qt.

                      What is your machine ?

                      B Offline
                      B Offline
                      BushyAxis793
                      wrote on last edited by
                      #21

                      @SGaist Ok, I uninstall MySQL for amr64 and install x86. Run in terminal what I need and I got no error. But when I open project in Qt Creator I got this:

                      33a26803-a55b-42b5-b5b6-1c3303b05bc8-image.png
                      30896348-c510-4ae1-b594-7b28892361b3-image.png

                      SGaistS 1 Reply Last reply
                      0
                      • B BushyAxis793

                        @SGaist Ok, I uninstall MySQL for amr64 and install x86. Run in terminal what I need and I got no error. But when I open project in Qt Creator I got this:

                        33a26803-a55b-42b5-b5b6-1c3303b05bc8-image.png
                        30896348-c510-4ae1-b594-7b28892361b3-image.png

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #22

                        Unless I am mistaken, your Qt build is a universal build. I.e. it contains both the x86_64 and arm64 symbols. Hence you need to also use a universal MySQL library to link to. If you only have separated libraries for each architecture, you can use lipo to combine them and the use that one.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        B 3 Replies Last reply
                        1
                        • SGaistS SGaist

                          Unless I am mistaken, your Qt build is a universal build. I.e. it contains both the x86_64 and arm64 symbols. Hence you need to also use a universal MySQL library to link to. If you only have separated libraries for each architecture, you can use lipo to combine them and the use that one.

                          B Offline
                          B Offline
                          BushyAxis793
                          wrote on last edited by
                          #23

                          @SGaist Ok. I will try and I let you know.

                          1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Unless I am mistaken, your Qt build is a universal build. I.e. it contains both the x86_64 and arm64 symbols. Hence you need to also use a universal MySQL library to link to. If you only have separated libraries for each architecture, you can use lipo to combine them and the use that one.

                            B Offline
                            B Offline
                            BushyAxis793
                            wrote on last edited by
                            #24
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Unless I am mistaken, your Qt build is a universal build. I.e. it contains both the x86_64 and arm64 symbols. Hence you need to also use a universal MySQL library to link to. If you only have separated libraries for each architecture, you can use lipo to combine them and the use that one.

                              B Offline
                              B Offline
                              BushyAxis793
                              wrote on last edited by
                              #25

                              @SGaist I find command line for lipo. I copied x86 and arm folders on my desktop and input this in terminal:

                              lipo /Users/mikolajnawrocki/Desktop/mysql-8.0.33-macos13-x86_64/lib/libmysqlclient.dylib /Users/mikolajnawrocki/Desktop/mysql-8.0.33-macos13-arm64/lib/libmysqlclient.dylib -output /Users/mikolajnawrocki/Desktop/universal/libmysqlclient.dylib -create
                              

                              In the folder appeared much bigger libmysqlclient.dylib. So I guess fusion was completed.

                              Then I copied new file to /usr/local/mysql/lib/libmysqlclient.dylib" and paste it. Then I run Qt Creator. The last errors disappeared. But I still got error with mysql plugin.

                              87ac4678-2140-4fb7-a1a9-4b3f3ccf01f5-image.png

                              Below is my folder structure of build-sqldrivers

                              8cb51c7b-aac2-4e77-8e34-dcba4cb39a58-image.png

                              123d421b-d700-4440-b3c3-426dc88acdbd-image.png

                              SGaistS 1 Reply Last reply
                              0
                              • B BushyAxis793

                                @SGaist I find command line for lipo. I copied x86 and arm folders on my desktop and input this in terminal:

                                lipo /Users/mikolajnawrocki/Desktop/mysql-8.0.33-macos13-x86_64/lib/libmysqlclient.dylib /Users/mikolajnawrocki/Desktop/mysql-8.0.33-macos13-arm64/lib/libmysqlclient.dylib -output /Users/mikolajnawrocki/Desktop/universal/libmysqlclient.dylib -create
                                

                                In the folder appeared much bigger libmysqlclient.dylib. So I guess fusion was completed.

                                Then I copied new file to /usr/local/mysql/lib/libmysqlclient.dylib" and paste it. Then I run Qt Creator. The last errors disappeared. But I still got error with mysql plugin.

                                87ac4678-2140-4fb7-a1a9-4b3f3ccf01f5-image.png

                                Below is my folder structure of build-sqldrivers

                                8cb51c7b-aac2-4e77-8e34-dcba4cb39a58-image.png

                                123d421b-d700-4440-b3c3-426dc88acdbd-image.png

                                SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #26

                                If you copy the file on the command line, it will, by default, copy the content of the pointed file and thus you will have the library you want.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                B 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  If you copy the file on the command line, it will, by default, copy the content of the pointed file and thus you will have the library you want.

                                  B Offline
                                  B Offline
                                  BushyAxis793
                                  wrote on last edited by
                                  #27

                                  @SGaist So what I should doing now? The universal libqmysqlclient.dylib is in the correct place. I got no errors in Terminal. But I got one in Qt Creator.

                                  SGaistS 1 Reply Last reply
                                  0
                                  • B BushyAxis793

                                    @SGaist So what I should doing now? The universal libqmysqlclient.dylib is in the correct place. I got no errors in Terminal. But I got one in Qt Creator.

                                    SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #28

                                    Which error are you getting now ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    B 1 Reply Last reply
                                    1
                                    • SGaistS SGaist

                                      Which error are you getting now ?

                                      B Offline
                                      B Offline
                                      BushyAxis793
                                      wrote on last edited by
                                      #29

                                      @SGaist Error below

                                      QSqlDatabase: QMYSQL driver not loaded
                                      QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
                                      
                                      SGaistS 1 Reply Last reply
                                      0
                                      • B BushyAxis793

                                        @SGaist Error below

                                        QSqlDatabase: QMYSQL driver not loaded
                                        QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
                                        
                                        SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #30

                                        Did you ensure that the plugin was put in the plugins folder ? Did you build it for both debug and release ? Did you copy both variants to the appropriate subfolder ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        B 1 Reply Last reply
                                        1
                                        • SGaistS SGaist

                                          Did you ensure that the plugin was put in the plugins folder ? Did you build it for both debug and release ? Did you copy both variants to the appropriate subfolder ?

                                          B Offline
                                          B Offline
                                          BushyAxis793
                                          wrote on last edited by
                                          #31

                                          @SGaist I think I did.

                                          Copied files from

                                          /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers/build-sqldrivers/plugins/sqldrivers

                                          to

                                          /Users/mikolajnawrocki/Qt/6.5.0/macos/plugins/sqldrivers

                                          Builded debug and release

                                          8f4769b6-5d99-46a9-a979-3a9934154088-image.png

                                          SGaistS 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved