[gdal-dev] cygwin Gdal with OCI Support
rene at aufwaerts.info
rene at aufwaerts.info
Mon Nov 17 16:55:32 EST 2008
First I would like to say hello.
I hope to get your help with my problem.
I try to compile gdal 1.5.3 with oci support using cygwin.
My Oracle Database is a 10.2.0.3 so I use the header and libraries for
this version. Newer Versions didn't fix my problem.
I created in /tmp/gdal-1.5.3/instantclient/sdk following folders:
lib
rdbms/demo
rdbms/public.
The lib-folder contains:
classes12.jar
genezi
libclntsh.a (created with ar -r libclntsh.so)
libclntsh.so -> libclntsh.so.10.1
libnnz10.so
libocci.so -> libocci.so.10.1
libociei.so
libocijdbc10.so
ojdbc14.jar
I run ./configure --with-oci=/tmp/gdal-1.5.3/instantclient/sdk and it
doesn't find the library files. header files are ok.
Part of the log:
configure:24279: result: no
configure:24419: checking for Oracle OCI headers in
/tmp/gdal-1.5.3/instantclient/sdk/rdbms/public
configure:24462: g++ -c -g -O2
-I/tmp/gdal-1.5.3/instantclient/sdk/rdbms/public
-I/tmp/gdal-1.5.3/instantclient/sdk/rdb
ms/demo conftest.cpp >&5
configure:24468: $? = 0
configure:24481: result: yes
configure:24506: checking for Oracle OCI libraries in
/tmp/gdal-1.5.3/instantclient/sdk/lib
configure:24542: g++ -o conftest.exe -g -O2
-I/tmp/gdal-1.5.3/instantclient/sdk/rdbms/public
-I/tmp/gdal-1.5.3/instantclient/sdk/rdbms/demo
-L/tmp/gdal-1.5.3/instantclient/sdk/lib -lclntsh conftest.cpp
-L/usr/lib -lexpat -ljasper -lhdf5 -lgif -ljpeg -lgeotiff -ltiff -lpng
-lpq -L/usr/lib -lpq -lz -ldl >&5
/cygdrive/d/DOKUME~1/MEIENB~1/LOKALE~1/Temp/cc40W1OS.o: In function `main':
/tmp/gdal-1.5.3/conftest.cpp:60: undefined reference to `_OCIEnvCreate'
/tmp/gdal-1.5.3/conftest.cpp:61: undefined reference to `_OCIHandleFree'
collect2: ld returned 1 exit status
I uploaded the complete config.log to
http://www.mesu-it.de/config.log
I did exactly the same thing on my Ubuntu installation and it worked.
But Ubuntu and Cygwin are not compatible ;-)
Thanks for your help.
Hope to here from you soon. Msg me if you need more information.
Rene
More information about the gdal-dev
mailing list