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. qmake not running
Qt 6.11 is out! See what's new in the release blog

qmake not running

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.1k 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.
  • E Offline
    E Offline
    Executer
    wrote on last edited by
    #1

    I want to create the libs for MySql following Qt Documentation->How to Build the QMYSQL Plugin on Windows. But when I try to use qmake I get the help page only.

    D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -v
    QMake version 3.1
    Using Qt version 6.2.1 in D:/Tools/Qt/6.2.1/mingw81_64/lib
    
    D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR="C:/Program Files/MariaDB 10.6/include/mysql" MYSQL_LIBDIR="C:/Program Files/MariaDB 10.6/lib"
    Usage: qmake [mode] [options] [files]
    
    QMake has two modes, one mode for generating project files based on
    some heuristics, and the other for generating makefiles. Normally you
    shouldn't need to specify a mode, as makefile generation is the default
    mode for qmake, but you may use this to test qmake on an existing project
    
    Mode:
      -project       Put qmake into project file generation mode
                     In this mode qmake interprets [files] as files to
    ...
    

    Can anybody give me a hint what I'm doing wrong?

    jsulmJ 1 Reply Last reply
    0
    • E Executer

      I want to create the libs for MySql following Qt Documentation->How to Build the QMYSQL Plugin on Windows. But when I try to use qmake I get the help page only.

      D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -v
      QMake version 3.1
      Using Qt version 6.2.1 in D:/Tools/Qt/6.2.1/mingw81_64/lib
      
      D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR="C:/Program Files/MariaDB 10.6/include/mysql" MYSQL_LIBDIR="C:/Program Files/MariaDB 10.6/lib"
      Usage: qmake [mode] [options] [files]
      
      QMake has two modes, one mode for generating project files based on
      some heuristics, and the other for generating makefiles. Normally you
      shouldn't need to specify a mode, as makefile generation is the default
      mode for qmake, but you may use this to test qmake on an existing project
      
      Mode:
        -project       Put qmake into project file generation mode
                       In this mode qmake interprets [files] as files to
      ...
      

      Can anybody give me a hint what I'm doing wrong?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Executer said in qmake not running:

      D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers

      Is there a *.pro file in this folder? Also, Qt6 switched to CMake, probably you have to use CMake. Is there a CMakeLists.txt file in that folder?
      Also, you should use absolute path to qmake in case you have more than one Qt version installed to make sure you call qmake from Qt version you want to use.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Executer
        wrote on last edited by
        #3

        There is no *.pro but CMakeLists.txt in this folder. The Makefile indicates, that qmake has been used sucessfully.
        Also using an absolute path for qmake makes no difference.

        jsulmJ 1 Reply Last reply
        0
        • E Executer

          There is no *.pro but CMakeLists.txt in this folder. The Makefile indicates, that qmake has been used sucessfully.
          Also using an absolute path for qmake makes no difference.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Executer said in qmake not running:

          Also using an absolute path for qmake makes no difference.

          That's clear, I only suggested that to make sure you use Qt version you want to use.
          Since you're building for Qt6 you should follow this documentation: https://doc.qt.io/qt-6/sql-driver.html#qmysql

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • E Offline
            E Offline
            Executer
            wrote on last edited by
            #5

            Looks like I used the wrong documentation. Thanks for pointing me to the new one.

            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