QT5.6 + OSX: QOCI driver not loaded but available
Oracle: 11.2 64-bit
Trying to create simple application with Oracle connection. libqsqloci is created successfully (thanks for manual), libqsqloci.dylib is locating in clang_64/plugins/sqldrivers
QT += core gui sql
QSqlDatabase db = QSqlDatabase::addDatabase("QOCI");
Application starts... and I see error:
QSqlDatabase: QOCI driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QOCI QOCI8 QODBC QODBC3 QPSQL QPSQL7
I not found anything working solution, so decide to ask here. Thank you
Hi and welcome to devnet,
Do you have the OCI libraries installed on your system ? More information about them here
@SGaist Thanks for reply. OCI libraries is installed, tnsnames is created, sqlplus is working successfully.
Then you should run
otool -Lon the Qt OCI plugin to see if it is missing something.
By the way, there's no need to put Qt's plugins folder in the LD_LIBRARY_PATH.