Re: [gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-23 Thread Mateusz Loskot
Limei Ran wrote:
 Hi:
 
 I configured it with the commands:
 
 
 1. ./setenv CFLAGS -fPIC
 
 2. ./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/libs/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  --without-curl --without-expat --without-mysql

It's very hard to diagnose this problem without summary produced by
./configure script. Please, paste the output it's giving you.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


RE: [gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-18 Thread Gong, Shawn (Contractor)
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-boun...@lists.osgeo.org
[mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Limei Ran
Sent: Thursday, June 18, 2009 12:18 PM
To: gdal-dev@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


RE: [gdal-dev] Errors in compiling GDAL on a 64bits Linux

2009-06-18 Thread Chandra Shekhar Kumar
/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
[Chandra ] it looks like it is getting linked against 32-bit libexpat.so
Can you check the same by file path-to-libexpat/libexpat.so and let
me know the result of the same ?

**
This communication contains information which is confidential and may also be 
legally privileged. It is for the exclusive use of the intended recipient(s). 
If you are not the intended recipient(s), disclosure, copying, distribution, or 
other use of, or action taken or omitted to be taken in reliance upon, this 
communication or the information in it is prohibited and maybe unlawful. If you 
have received this communication in error please notify the sender by return 
email, delete it from your system and destroy any copies.
**

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev