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 the QIBASE driver

Building the QIBASE driver

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 521 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.
  • S Offline
    S Offline
    SPopov
    wrote on last edited by
    #1

    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.

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

      @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

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

      S 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @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

        S Offline
        S Offline
        SPopov
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thanks! Silly mistake, I will continue to tune

        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