LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing gdal-1.3.2 in fedora 15 for sumo (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gdal-1-3-2-in-fedora-15-for-sumo-948166/)

nadia_kh 06-02-2012 01:09 PM

installing gdal-1.3.2 in fedora 15 for sumo
 
hello
i want to install gdal-1.3.2 on fedora 15
i downloaded gdal-1.3.2.tar.gz
but i don't know which libraries are needed?

after ./configure && make install an error is shown
which command is correct?

Quote:

ilwisdataset.cpp: In function 'ilwisStoreType stNeeded(long unsigned int)':
ilwisdataset.cpp:1755:16: error: 'SHRT_MAX' was not declared in this scope
ilwisdataset.cpp: In member function 'void ValueRange::init(double)':
ilwisdataset.cpp:1799:22: error: 'ULONG_MAX' was not declared in this scope
ilwisdataset.cpp:1804:21: error: 'LONG_MAX' was not declared in this scope
ilwisdataset.cpp: In function 'long int longConv(double)':
ilwisdataset.cpp:262:1: warning: control reaches end of non-void function [-Wreturn-type]
thanks for your answers

knudfl 06-02-2012 06:40 PM

Something like this ...
# yum install \
python-devel sqlite-devel libgeotiff-devel proj-devel geos-devel cfitsio-devel


./configure --with-libz --with-png --with-libtiff=internal --with-geotiff=internal --with-gif --with-jpeg --with-ogr --with-sqlite

'gdal-1.3.2' was compiled OK with g++ version 4.1.2 at release time, 2006.
Fedora 15 : Some files will compile with g++34, some with g++ (4.6).

When an error appears, you can do :
export CC=gcc34 CXX=g++34 && ./configure --<options> && make

And switch back when new errors appear :
export CC=gcc CXX=g++ && ./configure --<options> && make

.

nadia_kh 06-03-2012 02:08 AM

Quote:

Originally Posted by knudfl (Post 4694099)
Something like this ...
# yum install \
python-devel sqlite-devel libgeotiff-devel proj-devel geos-devel cfitsio-devel


./configure --with-libz --with-png --with-libtiff=internal --with-geotiff=internal --with-gif --with-jpeg --with-ogr --with-sqlite

'gdal-1.3.2' was compiled OK with g++ version 4.1.2 at release time, 2006.
Fedora 15 : Some files will compile with g++34, some with g++ (4.6).

When an error appears, you can do :
export CC=gcc34 CXX=g++34 && ./configure --<options> && make

And switch back when new errors appear :
export CC=gcc CXX=g++ && ./configure --<options> && make

.

hi
i used these command but the error is appeared
Quote:

ilwisdataset.cpp: In function 'ilwisStoreType stNeeded(long unsigned int)':
ilwisdataset.cpp:1755:16: error: 'SHRT_MAX' was not declared in this scope
ilwisdataset.cpp: In member function 'void ValueRange::init(double)':
ilwisdataset.cpp:1799:22: error: 'ULONG_MAX' was not declared in this scope
ilwisdataset.cpp:1804:21: error: 'LONG_MAX' was not declared in this scope
ilwisdataset.cpp: In function 'long int longConv(double)':
ilwisdataset.cpp:262:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [../o/ilwisdataset.o] Error 1
make[2]: Leaving directory `/home/nadia/work/gdal-1.3.2/frmts/ilwis'
make[1]: *** [ilwis-install-obj] Error 2
make[1]: Leaving directory `/home/nadia/work/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2
thanks for your help

knudfl 06-03-2012 04:40 AM

Well, you could install gcc41-c++, and make it all in one run.
( I can compile gdal-1.3.2 with either method, no errors.)
http://download.opensuse.org/reposit...E-10_SDK/i586/
# rpm -Uvh cpp41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh libmudflap41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh --nodeps gcc41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh --nodeps libstdc++41-devel-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh gcc41-c++-4.1.2_20070115-47.2.i586.rpm


And by the way :
What makes you think, that you should use this version of gdal ?

.

nadia_kh 06-03-2012 07:58 AM

Quote:

Originally Posted by knudfl (Post 4694329)
Well, you could install gcc41-c++, and make it all in one run.
( I can compile gdal-1.3.2 with either method, no errors.)
http://download.opensuse.org/reposit...E-10_SDK/i586/
# rpm -Uvh cpp41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh libmudflap41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh --nodeps gcc41-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh --nodeps libstdc++41-devel-4.1.2_20070115-47.2.i586.rpm
# rpm -Uvh gcc41-c++-4.1.2_20070115-47.2.i586.rpm


And by the way :
What makes you think, that you should use this version of gdal ?

.

hi
thanks for your help
i want to install TRANS. it is used sumo-0.9.8 and gdal-1.3.2.
the fedora 15 has gdal 1.7.3. but i don't know does TRANS work with that or not!!!!!!

best regards

knudfl 06-03-2012 10:03 AM

# yum remove gdal*
# rpm -Uvh gdal-1.3.2-2.f15.i686.rpm
https://docs.google.com/open?id=0B7S...EdPTTREYmxSX3M


TraNS works : java -jar TraNSv1.2.jar
.. with jdk-1.6.0_31-fcs.i586.rpm from
http://ftp.scientificlinux.org/linux...1-fcs.i586.rpm

Sumo : Please see the new answer in your sumo thread.

.

nadia_kh 06-03-2012 12:41 PM

Quote:

Originally Posted by knudfl (Post 4694471)
# yum remove gdal*
# rpm -Uvh gdal-1.3.2-2.f15.i686.rpm
https://docs.google.com/open?id=0B7S...EdPTTREYmxSX3M


TraNS works : java -jar TraNSv1.2.jar
.. with jdk-1.6.0_31-fcs.i586.rpm from
http://ftp.scientificlinux.org/linux...1-fcs.i586.rpm

Sumo : Please see the new answer in your sumo thread.

.


THANKS knudfl

John VV 06-03-2012 03:56 PM

just be warned fedora 15 is end of life and fedora 17 is the current


All times are GMT -5. The time now is 04:29 AM.