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. cmake not creating makefile.txt
Forum Updated to NodeBB v4.3 + New Features

cmake not creating makefile.txt

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 737 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.
  • V Offline
    V Offline
    Vince2480
    wrote on last edited by
    #1

    I am using a MacBook M1, I have installed Qt 6.2.0 and MySql 8.
    I am following the Qt doc on building the MySql plugin driver.

    qt-cmake -G"Ninja" <qt_installation_path>/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.<so|dylib>"
    

    The config step above appears to have succeeded with no errors reported, but the Cmakefile.txt was not created. I'm hoping others have had this problem and can help me solve this.

    jsulmJ 1 Reply Last reply
    0
    • V Vince2480

      I am using a MacBook M1, I have installed Qt 6.2.0 and MySql 8.
      I am following the Qt doc on building the MySql plugin driver.

      qt-cmake -G"Ninja" <qt_installation_path>/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.<so|dylib>"
      

      The config step above appears to have succeeded with no errors reported, but the Cmakefile.txt was not created. I'm hoping others have had this problem and can help me solve this.

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

      @Vince2480 said in cmake not creating makefile.txt:

      but the Cmakefile.txt was not created

      I guess you mean Makefile?
      You have -G"Ninja" that means you will use ninja to build, you should have build.ninja file in your build folder. So, call ninja to build.

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

      V 1 Reply Last reply
      2
      • jsulmJ jsulm

        @Vince2480 said in cmake not creating makefile.txt:

        but the Cmakefile.txt was not created

        I guess you mean Makefile?
        You have -G"Ninja" that means you will use ninja to build, you should have build.ninja file in your build folder. So, call ninja to build.

        V Offline
        V Offline
        Vince2480
        wrote on last edited by
        #3

        @jsulm Oh, I see.
        So the Qt doc is wrong.
        Thank you.

        jsulmJ 1 Reply Last reply
        0
        • V Vince2480

          @jsulm Oh, I see.
          So the Qt doc is wrong.
          Thank you.

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

          @Vince2480 Can you post the link to that docu? Does it say you need to call make? If so a bug report should be filed.

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

          VRoninV V 2 Replies Last reply
          0
          • jsulmJ jsulm

            @Vince2480 Can you post the link to that docu? Does it say you need to call make? If so a bug report should be filed.

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by VRonin
            #5

            Doc is correct, it tells you to call qt-cmake --build . which will call ninja

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            2
            • jsulmJ jsulm

              @Vince2480 Can you post the link to that docu? Does it say you need to call make? If so a bug report should be filed.

              V Offline
              V Offline
              Vince2480
              wrote on last edited by
              #6

              @jsulm here is the link:
              https://doc.qt.io/qt-6/sql-driver.html#qmysql

              And no, @VRonin qt-cmake --build . on my install results in this error:

              CMake Error: Unknown argument --build
              
              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