Building Qt 4.7.1 with -qt-sql-oci
I’ve been attempting to build Qt 4.7.1 for the last hour. I spent a few hours earlier getting Oracle 10.2.0.4 installed on my Mac (Snow Leopard 10.6).
Qt ‘configure’ failed when attempting to test compile an oci.cpp file:
OCI auto-detection... ()
g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/macx-g++ -I. -I../../../../oracle/instantclient_10_2/sdk/include -o oci.o oci.cpp
g++ -headerpad_max_install_names -o oci oci.o -L/Users/evadnoob/oracle/instantclient_10_2 -lnnz10 -lclntsh
ld: library not found for -lclntsh
collect2: ld returned 1 exit status
make: *** [oci] Error 1
OCI disabled.
Oracle (OCI) support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
I noticed that I got no complaints from the linking of “nnz10″: -lnnz10. The only difference between -lclntsh and -lnnz10 where in the file names.
-rw-r--r--@ 1 evadnoob staff 288 Apr 1 2009 BASIC_LITE_README
-rw-r--r--@ 1 evadnoob staff 282 Apr 1 2009 SQLPLUS_README
-r--r--r--@ 1 evadnoob staff 1609607 Feb 2 2008 classes12.jar
-rwxr-xr-x@ 1 evadnoob staff 34168 Apr 1 2009 genezi*
-r-xr-xr-x@ 1 evadnoob staff 1525 Aug 30 2004 glogin.sql*
-rwxr-xr-x@ 1 evadnoob staff 25582048 Nov 25 21:19 libclntsh.dylib*
-rwxr-xr-x@ 1 evadnoob staff 25582048 Mar 31 2009 libclntsh.dylib.10.1*
-rwxr-xr-x@ 1 evadnoob staff 2062528 Mar 3 2009 libnnz10.dylib*
-rwxr-xr-x@ 1 evadnoob staff 1277896 Mar 3 2009 libocci.dylib.10.1*
-rwxr-xr-x@ 1 evadnoob staff 4305504 Apr 1 2009 libociicus.dylib*
-rwxr-xr-x@ 1 evadnoob staff 118672 Mar 25 2009 libocijdbc10.dylib*
-rwxr-xr-x@ 1 evadnoob staff 118672 Mar 25 2009 libocijdbc10.jnilib*
-rwxr-xr-x@ 1 evadnoob staff 1108736 Mar 25 2009 libsqlplus.dylib*
-rwxr-xr-x@ 1 evadnoob staff 1438288 Mar 3 2009 libsqlplusic.dylib*
-r--r--r--@ 1 evadnoob staff 1555682 Feb 2 2008 ojdbc14.jar
drwxr-xr-x 7 evadnoob staff 238 Apr 1 2009 sdk/
-rwxr-xr-x@ 1 evadnoob staff 8552 Mar 25 2009 sqlplus*
I’m using the instant client to build with. I copied libclntsh.dylib.10.1 to libclntsh.dylib and things ‘configure’ just fine.
About this entry
You’re currently reading “Building Qt 4.7.1 with -qt-sql-oci,” an entry on Evadnoob
- Published:
- November 26, 2010 / 2:35 am
- Category:
- Uncategorized
- Tags:
No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]