Qt-生成oracle的连接文件

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);

 

posted @ 2016-09-28 23:46  lixin08  阅读(362)  评论(0编辑  收藏  举报