[GPlates-discuss] GPlates compile error

Gregory Houseman greg.houseman at sydney.edu.au
Mon Jul 24 09:39:44 AEST 2017


Hi John,

thanks for the prompt reply.  I tried going back to gdal 1 but that is a complete can of worms in regard to the bunch of libraries that it depends on, most of which seems to have been superseded by more recent versions. I think I have a better chance of making it work by playing with OgrReader.cc since the immediate problem only concerns a file open operation for which the new syntax appears well defined.  However would I then find many more such instances in other routines ?

cheers

Greg

________________________________________

From: gplates-discuss-bounces at mailman.sydney.edu.au [gplates-discuss-bounces at mailman.sydney.edu.au] on behalf of John Cannon [john.cannon at sydney.edu.au]
Sent: Friday, 21 July 2017 10:34 AM
To: GPlates general discussion mailing list
Subject: Re: [GPlates-discuss] GPlates compile error

Hi Greg,

I'll look into fixing this for the GPlates 2.0.1 bug-fix release (soon).

We currently use GDAL 1, but the latest Ubuntu, etc, use GDAL 2 which has deprecated some of their API that we are using.

Regards,
John

________________________________________
From: gplates-discuss-bounces at mailman.sydney.edu.au [gplates-discuss-bounces at mailman.sydney.edu.au] on behalf of Gregory Houseman [greg.houseman at sydney.edu.au]
Sent: Friday, 21 July 2017 10:30 AM
To: gplates-discuss at mailman.sydney.edu.au
Subject: [GPlates-discuss] GPlates compile error



Hi all,

new to GPlates I tried to compile on a relatively new SUSE linux installation.  I think all the libraries are in place as needed, but the compile step failed at the 78% complete stage with the message copied below.  The problem seems to relate to a process from the GDAL library that may now be deprecated in src/file-io/OgrReader.cc

Any advice about whether a simple amendment is possible that would allow my compiler to pass this problem would be appreciated.

best regards

Greg Houseman

________________________________________
From: Gregory Houseman [G.A.Houseman at leeds.ac.uk]
Sent: Thursday, 20 July 2017 11:19 PM
To: Gregory Houseman
Subject: GPlates compile error

[ 78%] Building CXX object src/file-io/CMakeFiles/file-io.dir/OgrReader.o
/home/greg/GPlates/gplates-2.0.0/src/file-io/OgrReader.cc: In member
function ‘bool GPlatesFileIO::OgrReader::open_file(const QString&)’:
/home/greg/GPlates/gplates-2.0.0/src/file-io/OgrReader.cc:950:22: error:
‘Open’ is not a member of ‘OGRSFDriverRegistrar’
   d_data_source_ptr = OGRSFDriverRegistrar::Open(fname.c_str());
                       ^
src/file-io/CMakeFiles/file-io.dir/build.make:1650: recipe for target
'src/file-io/CMakeFiles/file-io.dir/OgrReader.o' failed
make[2]: *** [src/file-io/CMakeFiles/file-io.dir/OgrReader.o] Error 1


Gregory A. Houseman
Professor of Geophysics
School of Earth and Environment
University of Leeds
Leeds LS2 9JT, UK

tel: +44 113 343 9796; fax +44 113 343 5259
http://earth.leeds.ac.uk/~greg/     e-mail: greg at earth.leeds.ac.uk

_______________________________________________
GPlates-discuss mailing list
GPlates-discuss at mailman.sydney.edu.au
http://mailman.sydney.edu.au/mailman/listinfo/gplates-discuss


_______________________________________________
GPlates-discuss mailing list
GPlates-discuss at mailman.sydney.edu.au
http://mailman.sydney.edu.au/mailman/listinfo/gplates-discuss



More information about the GPlates-discuss mailing list