[GPlates-discuss] GPlates compile error

John Cannon john.cannon at sydney.edu.au
Fri Jul 21 10:34:25 AEST 2017

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.


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

More information about the GPlates-discuss mailing list