[gdal-dev] Errors in compiling GDAL on a 64bits Linux
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Thu Jun 18 13:59:14 EDT 2009
Hi Limei
I used the following to build GDAL library on a 64-bit Linux Server.
setenv CFLAGS "-fPIC"
./configure --prefix=/home/sgong/build_openev2/dist --with-png=internal
--with-libtiff=internal --with-gif=internal --with-geotiff=internal
--with-libz=/home/sgong/build_openev2/dist
--with-jpeg=/home/sgong/build_openev2/dist
--with-netcdf=/home/sgong/build_openev2/dist
--with-hdf4=/home/sgong/build_openev2/dist
--with-hdf5=/home/sgong/build_openev2/dist --without-ogdi
--without-jasper --without-ecw --without-curl --without-expat
--without-dwgdirect --without-mrsid --without-jp2mrsid --without-mysql
--without-odbc --without-grib --without-pg --with-python
basically, try to exclude as many as possible (like curl, expat, ogdi)
thanks,
Shawn
-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Limei Ran
Sent: Thursday, June 18, 2009 12:18 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] Errors in compiling GDAL on a 64bits Linux
Hi:
I am compiling GDAL library on a 64bits Linux Server for our
applications (we compiled correctly on a 32bits Linux Server). But, I
ran into errors in compiling GDAL on the 64bits Linux. Could you check
for me to see how I can solve the problem?
I configured it using:
./configure
--prefix=/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/gdal-1.6
.1/local
--with-static-proj4=/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/li
bs/proj-4.6.1/local
--with-hdf5=/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/hdf5-
1.8.3/local
--with-libtiff=internal
Then, I type make and got the following error message after a long
compiling:
=========================
...
libtool: link: warning: library
`/afs/isis.unc.edu/pkg/oracle-1020/client//lib/libexpat.la' was moved.
libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o
.libs/libgdal.la.lnkscript -Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/proj-4.6.1/lo
cal/lib
-Wl,-rpath -Wl,/afs/isis.unc.edu/pkg/oracle-1020/client//lib -Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/hdf5-1.8.3/lo
cal/lib
-Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/szip-2.1/loca
l/lib
-Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/proj-4.6.1/lo
cal/lib
-Wl,-rpath -Wl,/afs/isis.unc.edu/pkg/oracle-1020/client//lib -Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/hdf5-1.8.3/lo
cal/lib
-Wl,-rpath
-Wl,/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/szip-2.1/loca
l/lib
-L/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/proj-4.6.1/loca
l/lib
/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/proj-4.6.1/local/
lib/libproj.so
-lsqlite3 -L/afs/isis.unc.edu/pkg/oracle-1020/client//lib -lclntsh
-lnnz10 -L/usr/lib
/afs/isis.unc.edu/pkg/oracle-1020/client//lib/libexpat.so
-L/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/hdf5-1.8.3/loca
l/lib
/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/hdf5-1.8.3/local/
lib/libhdf5.so
-L/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/szip-2.1/local/
lib
/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/szip-2.1/local/li
b/libsz.so
-lgif
-ljpeg -lpng -lz -lrt -ldl -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64
-L/lib/../lib64
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o
-Wl,-soname
-Wl,libgdal.so.1 -o .libs/libgdal.so.1.13.1
/afs/isis.unc.edu/pkg/oracle-1020/client//lib/libexpat.so: could not
read symbols: File
in wrong format
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory
`/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/gdal-1.6.1'
make: *** [check-lib] Error 2
===================================
Thank you,
Limei
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list