[QGIS-Developer] QOCISPATIAL driver cannot be loaded

peter.steibert at t-online.de peter.steibert at t-online.de
Fri Mar 19 07:00:07 PDT 2021


Hello,

 

I just compiled the qsqlocialspatial.dll from the QGis project and tried to
use it with QSqlDatabase.

 

QSqlDatabase db2 = QSqlDatabase::addDatabase("QOCISPATIAL");

 

 

When I startet the program it looked like the detection oft he sqldriver was
successful.

 

QFactoryLoader::QFactoryLoader() looking at
"C:/Qt/5.14.2/msvc2017_64/plugins/sqldrivers/qsqlocispatial.dll"

Found metadata in lib
C:/Qt/5.14.2/msvc2017_64/plugins/sqldrivers/qsqlocispatial.dll, metadata=

{

    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",

    "MetaData": {

        "Keys": [

            "QOCISPATIAL8",

            "QOCISPATIAL"

        ]

    },

   "archreq": 0,

    "className": "QOCISpatialDriverPlugin",

    "debug": false,

    "version": 331264

}

 

Got keys from plugin meta data ("QOCISPATIAL8", "QOCISPATIAL")

 

 

Later when I tried to actually use the driver I got the following output.

 

QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/Peter
Steibert/source/repos/QtWidgetsApplication2/x64/Release/sqldrivers" ...

"QtWidgetsApplication2.exe" (Win32):
"C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers\qsqlocispatial.dll" geladen.
Das Modul wurde ohne Symbole erstellt.

"QtWidgetsApplication2.exe" (Win32): "C:\Windows\System32\wsock32.dll"
geladen. 

"QtWidgetsApplication2.exe" (Win32): "C:\Windows\System32\wsock32.dll" wurde
entladen.

"QtWidgetsApplication2.exe" (Win32):
"C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers\qsqlocispatial.dll" wurde
entladen.

Cannot load library
C:\Qt\5.14.2\msvc2017_64\plugins\sqldrivers\qsqlocispatial.dll: Das
angegebene Modul wurde nicht gefunden.

QLibraryPrivate::loadPlugin failed on
"C:/Qt/5.14.2/msvc2017_64/plugins/sqldrivers/qsqlocispatial.dll" : "Cannot
load library
C:\\Qt\\5.14.2\\msvc2017_64\\plugins\\sqldrivers\\qsqlocispatial.dll: Das
angegebene Modul wurde nicht gefunden."

QSqlDatabase: QOCISPATIAL driver not loaded

QSqlDatabase: available drivers: QSQLITE QOCISPATIAL QOCISPATIAL8 QODBC
QODBC3 QPSQL QPSQL7

 

 

Thanks in advance for your help

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210319/ecf638ff/attachment.html>


More information about the QGIS-Developer mailing list