1折腾了好久,看到别人的不全,要么不清楚
go to Qt’s Command Prompt window. (VS 2010下)
set INCLUDE=%INCLUDE%; 这里面你的oracle的路径,不固定D:/Work/Oracle_10.2_client/oci/include
set LIB=%LIB%; 这里面你的oracle的路径,不固定D:/Work/Oracle_10.2_client/oci/lib/msvc
cd %QTDIR%/src/plugins/sqldrivers/oci
qmake -o Makefile oci.pro
nmake
在提示出生成的文夹里找到
QString strLibPath (QDir::toNativeSeparators (QApplication::applicationDirPath()) + QDir::separator() + "plugins"); a.addLibraryPath (strLibPath);
时间: 2024-10-09 23:12:28