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

cl error D8016 when building oracle oci plugin for sql driver

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.7.2
    • None
    • qt-cmake/cmake version 3.23.3
    • Windows

    Description

      I followed the documentation Building SQL modules and run
      ```cmd
      qt-cmake -G "Visual Studio 17 2022" D:\Qt\6.7.2\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=D:\Qt\6.7.2\msvc2019_64 -DOracle_INCLUDE_DIR=C:\Users\DELL\Downloads\WINDOWS.X64_193000_db_home\oci\include -DOracle_LIBRARY=C:\Users\DELL\Downloads\WINDOWS.X64_193000_db_home\oci\lib\msvc\oci.lib
      ```
      in Qt 6.7.2 (MSVC 2019 64-bit) command line prompt. Then, I ran `cmake --build .` and it shows
      ```text
        Checking Build System
        Automatic MOC for target QOCIDriverPlugin
        Generating RelWithDebInfo/QOCIDriverPlugin_resource.rc
        Generating Debug/QOCIDriverPlugin_resource.rc
        Building Custom Rule D:/Qt/6.7.2/Src/qtbase/src/plugins/sqldrivers/oci/CMakeLists.txt
      cl : Command line  error D8016: “/O2” and “/RTC1” command-line options are incompatible [E:\...\build-sqldrivers\oci\QOCIDriverPlugin.vcx
      proj]
      ```

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes