Home > other >  QT OCI driver isn't working with MSVC compiler
QT OCI driver isn't working with MSVC compiler

Time:06-10

QT version 6.2.x I have compiled the oci driver for MinGW and MSVC. It works with MinGW compiler but not with MSVC. When I use MSVC compiler in my project I get the error "QOCI driver not loaded". The driver is compiled according to the instructions: qt-cmake.bat -G Ninja F:\Qt\6.2.0\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=F:\Qt\6.2.0\msvc2019_64 -DOracle_INCLUDE_DIR="C:\oracle\sdk\include" -DOracle_LIBRARY="C:\oracle\sdk\lib\msvc\oci.lib" cmake --build . cmake --install .

CodePudding user response:

The problem has been fixed by using the VS Command Prompt.

  • Related