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. Problems Building MySql plugin on Mac M1 Qt 6.1.2
Forum Updated to NodeBB v4.3 + New Features

Problems Building MySql plugin on Mac M1 Qt 6.1.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 4 Posters 1.1k Views 1 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.
  • V Offline
    V Offline
    Vince2480
    wrote on last edited by
    #10

    So is it that the ASM compiler doesn't match the required gcc version?
    I've installed gcc-11 using brew and it's first in the $PATH variable, but it's still defaulting ti the Xcode clang version.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #11

      Is it so hard to simply type make to actually build to sources??

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

      V 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Is it so hard to simply type make to actually build to sources??

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

        @Christian-Ehrlicher I've done that, this is what I get...

        % make
        

        make: *** No targets specified and no makefile found. Stop.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #13

          @Vince2480 said in Problems Building MySql plugin on Mac M1 Qt 6.1.2:

          /Users/vinceieraci/Qt/6.1.2/Src/qtbase/src/plugins/build-sqldrivers

          In this directory? I doubt so - configure worked fine so there must be a Makefile or something similar.

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

          V 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Vince2480 said in Problems Building MySql plugin on Mac M1 Qt 6.1.2:

            /Users/vinceieraci/Qt/6.1.2/Src/qtbase/src/plugins/build-sqldrivers

            In this directory? I doubt so - configure worked fine so there must be a Makefile or something similar.

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

            @Christian-Ehrlicher No, configure didn't.

            I want to check we're on the same track.
            The first step was:

            qt-cmake -G"Ninja" /users/vinceieraci/qt/6.1.2/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/users/vinceieraci/qt/6.1.2/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
            

            I think that's what you're referring to the configure step, and although the terminal output indicated success, it generated the error log that I posted earlier.

            jsulmJ 1 Reply Last reply
            0
            • V Vince2480

              @Christian-Ehrlicher No, configure didn't.

              I want to check we're on the same track.
              The first step was:

              qt-cmake -G"Ninja" /users/vinceieraci/qt/6.1.2/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/users/vinceieraci/qt/6.1.2/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
              

              I think that's what you're referring to the configure step, and although the terminal output indicated success, it generated the error log that I posted earlier.

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

              @Vince2480 The Cake call WAS successful (according to your own Make output you posted). Forget the error log.
              Do you call make in this folder: /Users/vinceieraci/Qt/6.1.2/Src/qtbase/src/plugins/build-sqldrivers ?

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

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #16

                Hi,

                Just to be sure we are all one the same path: Qt 6 documentation:

                mkdir build-sqldrivers
                cd build-sqldrivers
                
                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>"
                qt-cmake --build .
                qt-cmake --install
                

                Where did you create build-sqldrivers ?
                Did you properly CS into it ?

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

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  Vince2480
                  wrote on last edited by Vince2480
                  #17

                  Thank you everyone so much for staying with me. At age 70, my brain skips what is so obvious, so I’ve spent the last couple of days going over everything I’ve done, and from what I can see, it’s all to the doc.

                  I’ll detail everything and I hope it will answer everything you're asking me.

                  This is my default zsh shell path:

                  vinceieraci@Vinces-MBP2 sqldrivers % echo $PATH                                              
                  /opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:
                  

                  Then I add:

                  vinceieraci@Vinces-MBP2 sqldrivers export PATH=$PATH:/users/vinceieraci/Qt/6.1.2/macos/bin
                  

                  Now start the steps:

                  vinceieraci@Vinces-MBP2 sqldrivers % mkdir build-sqldrivers
                  vinceieraci@Vinces-MBP2 sqldrivers % cd build-sqldrivers
                  vinceieraci@Vinces-MBP2 build-sqldrivers % qt-cmake -G"Ninja" /users/vinceieraci/qt/6.1.2/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/users/vinceieraci/qt/6.1.2/macos -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.dylib"
                  

                  Files created:
                  vinceieraci@Vinces-MBP2 build-sqldrivers % ls -l
                  total 272
                  -rw-r--r-- 1 vinceieraci staff 47968 5 Aug 09:37 CMakeCache.txt
                  drwxr-xr-x 13 vinceieraci staff 416 5 Aug 09:37 CMakeFiles
                  -rw-r--r-- 1 vinceieraci staff 387 5 Aug 09:37 CTestTestfile.cmake
                  -rw-r--r-- 1 vinceieraci staff 71821 5 Aug 09:37 build.ninja
                  -rw-r--r-- 1 vinceieraci staff 2034 5 Aug 09:37 cmake_install.cmake
                  -rw-r--r-- 1 vinceieraci staff 387 5 Aug 09:37 config.summary
                  drwxr-xr-x 3 vinceieraci staff 96 5 Aug 09:37 lib
                  drwxr-xr-x 6 vinceieraci staff 192 5 Aug 09:37 mysql
                  drwxr-xr-x 3 vinceieraci staff 96 5 Aug 09:37 plugins
                  -rw-r--r-- 1 vinceieraci staff 0 5 Aug 09:37 qtsqldrivers-config.h
                  -rw-r--r-- 1 vinceieraci staff 261 5 Aug 09:37 qtsqldrivers-config_p.h
                  drwxr-xr-x 6 vinceieraci staff 192 5 Aug 09:37 sqlite

                  Hence:

                  vinceieraci@Vinces-MBP2 build-sqldrivers % make 
                  make: *** No targets specified and no makefile found.  Stop.
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #18

                    Since you are using the Ninja generator, you have to call ninja to build.

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

                    V 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Since you are using the Ninja generator, you have to call ninja to build.

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

                      @SGaist I'm about give up, it's beyond my abilities.
                      I'll try again on an Intel machine.

                      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