以oracle 10g express edition (10.2.0)为例:

How to build QOCI under linux platform:

1st:


cd $QTDIR/src/plugins/sqldrivers/oci

2nd:


qmake "INCLUDEPATH+=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/demo" "LIBS+=-L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib" oci.pro      

//确保oci.h能包含在include path里,可以先在oracle的目录下找到该文件


3rd:
make

 

Details:


make

 

How to build QOCI under Windows platform:

 

1st:
go to Qt’s Command Prompt window. (VS 2008
)


2nd:
set INCLUDE=%INCLUDE%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\include


3rd:
set LIB=%LIB%;C:\oraclexe\app\oracle\product\10.2.0\server\OCI\lib\MSVC


4th:cd %QTDIR%\src\plugins\sqldrivers\oci


5th:
qmake -o Makefile oci.pro


6th:
nmake

 

相关文章: