64 - bit win10 qt5.12.0 oracle11g R2 client
Compiling method did not detail
Qt5.12.0 when installation should choose source
Open the oci. Pro file must need to be amended
# QMAKE_USE +=oci
QMAKE_LFLAGS +=C: \ oracle \ product \ 11.2.0 \ dbhome_1 \ OCI \ lib \ MSVC \ OCI DLL
INCLUDEPATH +=C: \ oracle \ product \ 11.2.0 \ dbhome_1 \ OCI \ include
LIBPATH +=C: \ oracle \ product \ 11.2.0 \ dbhome_1 \ OCI \ lib \ MSVC
Oracle12 without this problem oracle11g need to modify the function
Qsql_oci. CPP near 1559
Replace OCIBindByPos function and one of the parameter conversion reinterpret_cast & lt; Ub2 * & gt; (bindColumn. Lengths),
Compiled that generated the release version and the debug version of the two files
Qsqlsoci. DLL
Libqsqloci. A
Resource connection later attached
CodePudding user response:
The building Lord, how are you, I have the same environment and you, have not been generated to connect the oracle driver, can you give a resource?