Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qmysql driver not loaded qt 6.6
Forum Updated to NodeBB v4.3 + New Features

qmysql driver not loaded qt 6.6

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 503 Views
  • 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.
  • Y Offline
    Y Offline
    yass1213
    wrote on last edited by
    #1

    C:\Qt2\6.6.0\mingw_64>cd C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers

    C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>call C:\Qt2\6.6.0\mingw_64\bin\qt-cmake -G "MinGW Makefiles" . -DMySQL_INCLUDE_DIR="C:\Program Files\MySQL\MySQL Server 8.0\include" -DMySQL_LIBRARY="C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX="C:\Qt2\6.6.0\mingw_64" -DCMAKE_C_COMPILER="gcc.exe" -DCMAKE_CXX_COMPILER="g++.exe"
    -- The CXX compiler identification is GNU 11.2.0
    -- The C compiler identification is GNU 11.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Check for working CXX compiler: C:/Qt2/Tools/mingw1120_64/bin/g++.exe
    -- Check for working CXX compiler: C:/Qt2/Tools/mingw1120_64/bin/g++.exe - works
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - failed
    -- Check for working C compiler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe
    -- Check for working C compiler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe - works
    -- 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
    CMake Warning (dev) at C:/Qt2/Tools/CMake_64/share/cmake-3.24/Modules/GNUInstallDirs.cmake:243 (message):
    Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
    target architecture is known. Please enable at least one language before
    including GNUInstallDirs.
    Call Stack (most recent call first):
    C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2563 (include)
    C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreConfigExtras.cmake:38 (_qt_internal_setup_deploy_support)
    C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:122 (include)
    C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package)
    CMakeLists.txt:13 (find_package)
    This warning is for project developers. Use -Wno-dev to suppress it.

    -- Configuration summary shown below. It has also been written to C:/Qt2/6.6.0/qtbase-everywhere-src-6.6.0/src/plugins/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 ................................... yes
    PostgreSQL ............................. no
    SQLite ................................. yes
    Using system provided SQLite ......... no
    Mimer .................................. no

    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Qt2/6.6.0/qtbase-everywhere-src-6.6.0/src/plugins/sqldrivers

    C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>mingw32-make
    [ 4%] Generating version linker script for target QMYSQLDriverPlugin
    process_begin: CreateProcess(C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, ...) failed.
    make (e=2): The system cannot find the file specified.
    mingw32-make[2]: *** [mysql\CMakeFiles\QMYSQLDriverPlugin_version_script.dir\build.make:72: mysql/QMYSQLDriverPlugin.version] Error 2
    mingw32-make[1]: *** [CMakeFiles\Makefile2:224: mysql/CMakeFiles/QMYSQLDriverPlugin_version_script.dir/all] Error 2
    mingw32-make: *** [Makefile:145: all] Error 2

    i don t know the cause of this issue can anyone help me plz ?

    Christian EhrlicherC 1 Reply Last reply
    0
    • Y yass1213

      C:\Qt2\6.6.0\mingw_64>cd C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers

      C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>call C:\Qt2\6.6.0\mingw_64\bin\qt-cmake -G "MinGW Makefiles" . -DMySQL_INCLUDE_DIR="C:\Program Files\MySQL\MySQL Server 8.0\include" -DMySQL_LIBRARY="C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX="C:\Qt2\6.6.0\mingw_64" -DCMAKE_C_COMPILER="gcc.exe" -DCMAKE_CXX_COMPILER="g++.exe"
      -- The CXX compiler identification is GNU 11.2.0
      -- The C compiler identification is GNU 11.2.0
      -- The ASM compiler identification is GNU
      -- Found assembler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - failed
      -- Check for working CXX compiler: C:/Qt2/Tools/mingw1120_64/bin/g++.exe
      -- Check for working CXX compiler: C:/Qt2/Tools/mingw1120_64/bin/g++.exe - works
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe
      -- Check for working C compiler: C:/Qt2/Tools/mingw1120_64/bin/gcc.exe - works
      -- 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
      CMake Warning (dev) at C:/Qt2/Tools/CMake_64/share/cmake-3.24/Modules/GNUInstallDirs.cmake:243 (message):
      Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
      target architecture is known. Please enable at least one language before
      including GNUInstallDirs.
      Call Stack (most recent call first):
      C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2563 (include)
      C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreConfigExtras.cmake:38 (_qt_internal_setup_deploy_support)
      C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:122 (include)
      C:/Qt2/6.6.0/mingw_64/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package)
      CMakeLists.txt:13 (find_package)
      This warning is for project developers. Use -Wno-dev to suppress it.

      -- Configuration summary shown below. It has also been written to C:/Qt2/6.6.0/qtbase-everywhere-src-6.6.0/src/plugins/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 ................................... yes
      PostgreSQL ............................. no
      SQLite ................................. yes
      Using system provided SQLite ......... no
      Mimer .................................. no

      -- Configuring done
      -- Generating done
      -- Build files have been written to: C:/Qt2/6.6.0/qtbase-everywhere-src-6.6.0/src/plugins/sqldrivers

      C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>mingw32-make
      [ 4%] Generating version linker script for target QMYSQLDriverPlugin
      process_begin: CreateProcess(C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, ...) failed.
      make (e=2): The system cannot find the file specified.
      mingw32-make[2]: *** [mysql\CMakeFiles\QMYSQLDriverPlugin_version_script.dir\build.make:72: mysql/QMYSQLDriverPlugin.version] Error 2
      mingw32-make[1]: *** [CMakeFiles\Makefile2:224: mysql/CMakeFiles/QMYSQLDriverPlugin_version_script.dir/all] Error 2
      mingw32-make: *** [Makefile:145: all] Error 2

      i don t know the cause of this issue can anyone help me plz ?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would try to use a mysql path without spaces.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Y 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        I would try to use a mysql path without spaces.

        Y Offline
        Y Offline
        yass1213
        wrote on last edited by
        #3

        @Christian-Ehrlicher Actually the problem is when I use the command minwg32-make
        here is what I get :
        C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>mingw32-make
        [ 4%] Generating version linker script for target QMYSQLDriverPlugin
        process_begin: CreateProcess(C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, ...) failed.
        make (e=2): The system cannot find the file specified.
        mingw32-make[2]: *** [mysql\CMakeFiles\QMYSQLDriverPlugin_version_script.dir\build.make:72: mysql/QMYSQLDriverPlugin.version] Error 2
        mingw32-make[1]: *** [CMakeFiles\Makefile2:224: mysql/CMakeFiles/QMYSQLDriverPlugin_version_script.dir/all] Error 2
        mingw32-make: *** [Makefile:145: all] Error 2

        Christian EhrlicherC 1 Reply Last reply
        0
        • Y yass1213

          @Christian-Ehrlicher Actually the problem is when I use the command minwg32-make
          here is what I get :
          C:\Qt2\6.6.0\qtbase-everywhere-src-6.6.0\src\plugins\sqldrivers>mingw32-make
          [ 4%] Generating version linker script for target QMYSQLDriverPlugin
          process_begin: CreateProcess(C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, C:\Users\sadfi\AppData\Local\Temp\make9964-1.bat, ...) failed.
          make (e=2): The system cannot find the file specified.
          mingw32-make[2]: *** [mysql\CMakeFiles\QMYSQLDriverPlugin_version_script.dir\build.make:72: mysql/QMYSQLDriverPlugin.version] Error 2
          mingw32-make[1]: *** [CMakeFiles\Makefile2:224: mysql/CMakeFiles/QMYSQLDriverPlugin_version_script.dir/all] Error 2
          mingw32-make: *** [Makefile:145: all] Error 2

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I know - the only idea I've is that the generated makefiles have some problems because of the spaces in the path.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Y 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            I know - the only idea I've is that the generated makefiles have some problems because of the spaces in the path.

            Y Offline
            Y Offline
            yass1213
            wrote on last edited by
            #5

            @Christian-Ehrlicher i don t think so :/, i ve followed this vd step by step he has the same paths as me with spaces and it works for him
            https://www.youtube.com/watch?v=7YIJUL9pz2U&ab_channel=QtWithKetan

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              yass1213
              wrote on last edited by
              #6

              FIXED: just go to this web site (https://github.com/thecodemonkey86/qt_mysql_driver/releases)
              and try to download the build drivers wich are ready and put them at the same folder of your project.
              Big thanks to owner of that git .

              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