Building the QIBASE driver
-
Good day!
I need to build a driver for Interbase (versions 7.5 and 2017) to use them in PyQt. I guess the process is the same, but suddenly there are subtleties.
Data:- Windows 10
- Qt 5.12.11 (MinGW 32-bit and MinGW 64-bit installed)
- Interbase 7.5 - installed in the c:\Program Files (x86)\Borland\InterBase
- Interbase 2017 - installed in the c:\InterBase
Based on the assembly description on the page (https://doc.qt.io/qt-5/sql-driver.html#qibase), perform the following operations:
cd "c:/Qt/Qt5.12.11/5.12.11/Src/qtbase/src/plugins/sqldrivers/ibase/" qmake -- IBASE_INCDIR=c:\InterBase\SDK\include\
I get the error:
Cannot read C:/Qt/Qt5.12.11/5.12.11/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: No such file or directory Project ERROR: Library 'ibase' is not defined.
ibase.pro standard:
TARGET = qsqlibase HEADERS += $$PWD/qsql_ibase_p.h SOURCES += $$PWD/qsql_ibase.cpp $$PWD/main.cpp # FIXME: ignores libfb (unix)/fbclient (win32) - but that's for the test anyway QMAKE_USE += ibase OTHER_FILES += ibase.json PLUGIN_CLASS_NAME = QIBaseDriverPlugin include(../qsqldriverbase.pri)
After looking at the thread (https://forum.qt.io/topic/75419/ibase-sql-plugin-build-error/3) I tried to set the variables:
QMAKE_INCDIR_IBASE += c:\InterBase\SDK\include QMAKE_LIBDIR_IBASE += c:\InterBase\SDK\lib QMAKE_LIBS_IBASE += c:\InterBase\SDK\lib
I get the error:
Cannot read C:/Qt/Qt5.12.11/5.12.11/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: No such file or directory
Please tell me. Perhaps I am specifying the wrong values.
-
@SPopov said in Building the QIBASE driver:
cd "c:/Qt/Qt5.12.11/5.12.11/Src/qtbase/src/plugins/sqldrivers/ibase/"
You did not follow the documentation:
cd $QTDIR/qtbase/src/plugins/sqldrivers
-
@Christian-Ehrlicher Thanks! Silly mistake, I will continue to tune