QDB2 not loaded qt 6.3.1
Unsolved
Qt 6
-
Running qt-cmake -G Ninja /opt/Qt/6.3.1/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/opt/Qt/6.3.1/ibmdb2 -DDB2_INCLUDE_DIR=/opt/ibm/db2/V11.5/include -DDB2_LIBRARY=/opt/ibm/db2/V11.5/lib64/libdb2.so --log-level=STATUS
cmake --build.
cmake --install .ausgeführt und libsqldb2.so und ..debug nach gcc_64.../plugins/sqldrivers kopiert.
QSqlDatabase db = QSqlDatabase::addDatabase("QDB2"); qDebug() << "QDB2 ?" << db.lastError().text();
QML debugging is enabled. Only use this in a safe environment.
QSqlDatabase: QDB2 driver not loaded
QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QODBC QPSQL
QDB2 ? "Driver not loaded Driver not loaded"Anm: nach 1. qt-cmake : Beseitiung von QMetaType Error -> in ..cpp -> case: ByteArray nach QByteArray geändert