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

QOCI: update documentation to state building plugin requires at least Oracle Instant Client SDK v12.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Documentation, SQL Support
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      e9932f6372ff5ad802cefaf8f5ca0109500374be (qt/qtbase/dev)

      Description

      OCI uses OCIBindByPos2 from the Oracle SDK that was added in v12.1

      This should be stated in the https://doc.qt.io/qt-5/sql-driver.html#how-to-build-the-oci-plugin-on-unix-and-macos

      Building fails with 11.2.0.4

      d:\_\qt\qt-everywhere-src-5.15.0-beta1\qtbase\src\plugins\sqldrivers>qmake -- OCI_INCDIR=D:\_\oic_11.2.0.4.0_win64\include OCI_LIBDIR=D:\_\oic_11.2.0.4.0_win64\lib\msvc
      
       
      
      Running configuration tests...
      ...
      Checking for OCI (Oracle)... yes
      ...
      Configure summary:
      
       
      
      Qt Sql Drivers:
      ...
        OCI (Oracle) ........................... yes
       
      
      d:\_\qt\qt-everywhere-src-5.15.0-beta1\qtbase\src\plugins\sqldrivers>nmake sub-oci
      
       ...
             cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -Zi -MD -std:c++17 -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\release\qsqloci.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DNDEBUG -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -I. -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtSql\5.15.0 -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtSql\5.15.0\QtSql -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtCore\5.15.0 -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtCore\5.15.0\QtCore -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtSql -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\include\QtCore -I.moc\release -ID:\_\oic_11.2.0.4.0_win64\include -IC:\openssl\include -IC:\Utils\my_sql\mysql-5.7.25-winx64\include -IC:\Utils\postgresql\pgsql\include -ID:\_\qt\Qt5.15.0\5.15.0\msvc2019_64\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\xxx\AppData\Local\Temp\nm945D.tmp
      
      qsql_oci.cpp
      
      .\qsql_oci.cpp(1559): error C3861: 'OCIBindByPos2': identifier not found
      ...
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              andysh Andy Shaw
              Reporter:
              ssproessig Sören Sprößig
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes