Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130735

New method of building OCI plugin does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.8.1
    • 6.8.0
    • SQL Support
    • None
    • Linux/X11, Windows
    • c68277c41b99d6791e3c1a5998b70c6cbbf6dc15

      The older doc [SQL Database Drivers | Qt SQL 6.7.3|https://doc.qt.io/qt-6.7/sql-driver.html#qoci-for-the-oracle-call-interface-oci] suggests the following command to build OCI plugin:
      qt-cmake -G Ninja <qt_source_directory>/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DOracle_INCLUDE_DIR="/usr/include/oracle/21/client64" -DOracle_LIBRARY="/usr/lib/oracle/21/client64/lib/libclntsh.<so|dylib>"
      or
      qt-cmake -G Ninja <qt_installation_path>\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>\<platform> -DOracle_INCLUDE_DIR="C:\oracle\sdk\include" -DOracle_LIBRARY="C:\oracle\oci.lib"
      and it works for both Qt 6.7 and 6.8 on both Linux and Windows. The latest doc [SQL Database Drivers | Qt SQL 6.8.0|https://doc.qt.io/qt-6/sql-driver.html#qoci-for-the-oracle-call-interface-oci] suggests
      qt-cmake -G Ninja <qt_source_directory>/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DOracle_ROOT="/usr/include/oracle/21/client64"
      and
      qt-cmake -G Ninja <qt_installation_path>\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>\<platform> -DOracle_ROOT="C:\oracle"
      instead. However, the "Oracle_ROOT" option does not take effects for both Qt 6.7 and 6.8 on both Linux and Windows, i.e., the cmake configuration does not build the OCI plugin at all. For example, on Linux, my Oracle instant client is placed under `/opt/oracle/instantclient_23_5" and libclntsh.<so|dylib> (all versions) files are in it. Besides, I have already added `/opt/oracle/instant_client_23_5` to `LD_LIBRARY_PATH` and `PATH`. Is it a documentation mistake or is it a new feature which does not work?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            chehrlic Christian Ehrlicher
            shizuku Yihua Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes