QSqlDatabase: QOCI driver not loaded
-
wrote on 10 Nov 2020, 09:59 last edited by
Hi, guys!
I have a problem when I try to connect to Oracle database, it says "QSqlDatabase: QOCI driver not loaded". I have already built libqsqloci.so and the path is: /home/r/Qt5.12.7/5.12.7/gcc_64/plugins/sqldrivers/libqsqloci.so. But it still show the error "QSqlDatabase: QOCI driver not loaded". So, what can i do to fix it?
System : Ubuntu 16.04
Qt version : 5.12.7
Oracle version : 19.9 -
Hi, guys!
I have a problem when I try to connect to Oracle database, it says "QSqlDatabase: QOCI driver not loaded". I have already built libqsqloci.so and the path is: /home/r/Qt5.12.7/5.12.7/gcc_64/plugins/sqldrivers/libqsqloci.so. But it still show the error "QSqlDatabase: QOCI driver not loaded". So, what can i do to fix it?
System : Ubuntu 16.04
Qt version : 5.12.7
Oracle version : 19.9wrote on 10 Nov 2020, 10:06 last edited by@dangdang
In a terminal executeexport QT_DEBUG_PLUGINS=1
and then run your executable --- or, you can do it from the Run environment inside Creator --- and then look at the diagnostic output, especially the very end which will say why it failed. -
wrote on 11 Nov 2020, 03:30 last edited by
@JonB Thanks bro!I found where my problem was through your method. Actually,I missed a library file named libaio.so.So I apt-get install libaio1, and then problem solved.
1/3