Qt帮助文档中提到的编译方法如下:
How to Build the OCI Plugin on WindowsChoosing 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 oci.pro nmake
If you are not using a Microsoft compiler, replace nmake with make in the line above.
When you run your application you will also need to add the oci.dll path to your PATH environment variable:
set PATH=%PATH%;c:\oracle\bin
Note: This database plugin is not supported for Windows CE.
本人按以上方法编译不成功,nmake一大堆错,mingw32-make也不行。
经仔细检查,发现是找不到oracle相关文件导致的,因此,修改qmake指令参数如下:
qmake "INCLUDEPATH+=c:\oracle\oci\include" "LIBS+=-Lc:\oracle\oci\lib\msvc" oci.pro
然后调用mingw32-make,搞定!
分享到:
相关推荐
在linux用qt访问oracle数据库需要自己编译oracle驱动qoci
与对上层用户提供统一的数据库接口相反的是,Qt使用不同的插件访问相应的下层数据库。若要访问某一数据库,需给Qt提供相对应的驱动插件。Qt默认只提供SQLite数据库驱动程序,...本文档介绍Qt关于Oracle驱动QOCI的编译
使用Qt编译Qt下的Oracle驱动,包含Windows平台和Linux平台。
win7下Qt5.4编译oracle数据库驱动及使用
QT在Windows下编译MySQL驱动的详细步骤~
由于工作上需要使用qt连接oracle数据库,首先要搭建能使用QOCI的环境,下面都是自己在网络上搜索并亲自测试总结的经验,希望大家能少走弯路
在Windows下编译FFmpeg详细说明
window下,qt图形用户开发工具,oracle数据库驱动,mingw编译器,编译方法
Qt5.3.2编译好的oracle支持库oci驱动
windows下编译libiconv-1.15 '
vlc在windows下编译中文版
Windows10系统下,Qt5.12.8 + VS2017编译的Oracle_64位驱动程序qsqloci.rar 解压后将文件复制至:\InstallDir\Qt5.12.8\5.12.8\msvc2017_64\plugins\sqldrivers\中即可加载成功
环境:ubuntu12.04+qt4.8.0+oracle11g2 是个编译文档,希望对你有帮助
详细介绍如何在windows下编译php-beast扩展,详细介绍了参考网址、编译环境、编译文件、编译步骤等信息
此驱动适用于Oracle11g 32bit,驱动是使用Qt4.8.4和VS2008编译生成的,驱动已成功应用于所开发的应用程序中,另需要注意的是使用QOCI驱动,在发布时还需要加入oci.dll(资源中提供的是32bit的,不适用于64bit),还...
描述如何在Winodows下用MSYS & MinGW 建立环境用Sourcery 的编译器编译u-boot源码,进一步在ECLIPSE 下编译调试u-boot代码
QQ群中收集的:VC编译Windows驱动程序.doc
windows下编译开源工具FreeRDP相信很多新手都不知道如何编译,或者出现大量错误,因此,我整理了windows下编译FreeRDP所需要的软件,环境配置,按照操作步骤,几分钟就会编译成功。
linux系统中使用shell脚本对oracle存储过程进行编译
在windows上编译好的snort-2.9.11.1源码,可以直接拿来运行