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