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. Building ibase sqldriver for Qt 6 on mac can’t find qconfig.h

Building ibase sqldriver for Qt 6 on mac can’t find qconfig.h

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 347 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.
  • G Offline
    G Offline
    GuyInCorner
    wrote on last edited by
    #1

    I always loath having to update Qt versions because it means having to rebuild the sql drivers.

    I've just installed Qt 6.4. I have successfully built the ibase sql driver on Linux following the directions:
    https://doc.qt.io/qt-6/sql-driver.html

    Following that format I have tried the following steps for the mac:

    cd ~/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/

    mkdir build-sqldrivers

    ~/Qt6/Tools/CMake/CMake.app/Contents/bin/cmake -G Ninja $HOME/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=$HOME/Qt6/6.4.0/macos -DInterbase_INCLUDE_DIR="/Library/Frameworks/firebird.framework/Versions/A/Headers/firebird" -DInterbase_LIBRARY="/Library/Frameworks/Firebird.framework/Versions/A/Resources/lib/libfbclient.dylib"

    The above command ran fine, no problems

    The next command:
    ~/Qt6/Tools/CMake/CMake.app/Contents/bin/cmake --build .

    Errored out with several of these:

    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/ibase/qsql_ibase.cpp:4:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/ibase/qsql_ibase_p.h:18:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtSql/qsqldriver.h:1:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtSql/../../../../sql/kernel/qsqldriver.h:7:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtSql/qtsqlglobal.h:1:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtSql/../../../../sql/kernel/qtsqlglobal.h:7:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtCore/qglobal.h:1:
    In file included from /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtCore/../../../../corelib/global/qglobal.h:32:
    /Users/spooge/Qt6/6.4.0/Src/qtbase/src/plugins/sqldrivers/include/QtCore/qconfig.h:1:10: fatal error: '../../src/corelib/global/qconfig.h' file not found
    #include "../../src/corelib/global/qconfig.h"
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    

    I have quadruple checked that my paths are correct. I have verified that qconfig.h is not there. It seems that it is supposed to be generated somehow.

    The questions is, what step is missing to generate this file?

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, I also do a rebuild (of odbc) for every new release, but I use qt-cmake instead of cmake:
      ~/Qt/6.4.0/macos/bin/qt-cmake -G Ninja ...

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GuyInCorner
        wrote on last edited by GuyInCorner
        #3

        @hskoglund said in Building ibase sqldriver for Qt 6 on mac can’t find qconfig.h:

        Hmm... Interesting.

        I went back to the beginning in order to try qt-make and now I get errors on the first step.

        Thanks for the idea though.

        I really hate having to compile parts of Qt. Maybe I'll just switch to SQLAPI and never have to compile another Qt sqldriver again.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Or use Firebird's ODBC driver...

          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