• 5078阅读
  • 3回复

qt434怎么编译oci驱动? [复制链接]

上一主题 下一主题
离线huyoujun
 

只看楼主 倒序阅读 楼主  发表于: 2008-03-17
— 本帖被 XChinux 执行加亮操作(2008-07-17) —
How to Build the OCI Plugin on Windows
Choosing the option "Programmer" in the Oracle Client Installer from the Oracle Client Installation CD is sufficient to build the plugin.
Build the plugin as follows (here it is assumed that Oracle Client is installed in C:\oracle):
    set INCLUDE=%INCLUDE%;c:\oracle\oci\include
    set LIB=%LIB%;c:\oracle\oci\lib\msvc
    cd %QTDIR%\src\plugins\sqldrivers\oci
    qmake -o Makefile oci.pro
    nmake

按照助手文档里说的,我看了%QTDIR%\src\plugins\sqldrivers 下面就没有oci文件架啊,也没有oci.pro,请问怎么办呢?
离线zncggaofei
只看该作者 1楼 发表于: 2008-03-17
来自:http://www.qtcn.org/bbs/read.php?tid=9960&keyword=oci

用 qt opensource 版本 追加编译 oracle 的 oci 驱动
一直使用的opensource版本的 qt, 后来因为工作需要, 需要使用oracle协同工作. 奈何没有oralce的驱动. 
网上也没有类似的资料. 在qt的assist中有相关的单独编译 oci驱动的说明.
但是需要oci.pro等几个文件.

我的解决办法就是安装一个comercial版本,  把其中的 src目录下plugings和sql下的相关文件复制到我的opensource下的相应目录, 之后按照assist中的说明编译一次 ,就可以了.

然后你可以卸载comercial版本. 

搞定.

另外, 发布你的exe时, sql驱动dll要放在 你的 exe同目录 下的 sqldrivers 目录下.
There is someone that is coming or passing away in your life around the clock, so you may lose sight of those seen, and forget those remembered. There is gain and loss in your life, so you may catch sight of those unseen, and remember those forgotten. Nevertheless, doesn’t the unseen exist for sure? Will the remembered remain forever?
离线zncggaofei
只看该作者 2楼 发表于: 2008-03-17
只有商业版才有oci.pro
There is someone that is coming or passing away in your life around the clock, so you may lose sight of those seen, and forget those remembered. There is gain and loss in your life, so you may catch sight of those unseen, and remember those forgotten. Nevertheless, doesn’t the unseen exist for sure? Will the remembered remain forever?
离线huyoujun

只看该作者 3楼 发表于: 2008-03-17
能把商业版的那几个文件上传一下不?
快速回复
限100 字节
 
上一个 下一个