Pointer type conversion error between OGRSFDriver and GDALDriver

36 views
Skip to first unread message

David Welch

unread,
Aug 13, 2015, 11:27:55 AM8/13/15
to RSGISLib Support
I'm trying to build from source via MacPorts and I need some help.  I've built/ported all the dependencies (KEAlib included), updated the source tree (rev e910d770d9db) and modified the Boost, Geos, and Xercecs include paths in the CMakeCache file (see attached).  I'm getting the following build error:

rsgislib/src/geom/RSGISGeomTestExport.cpp:291:17: error: 

      assigning to 'OGRSFDriver *' from incompatible type 'GDALDriver *'

                shpFiledriver = OGRSFDriverRegistrar::GetRegistrar()->GetDriverByName(pszDriverName );

                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

System: OS X 10.10
Compiler: clang 6.1.0

Any help would be appreciated!
CMakeCache.txt

Daniel Clewley

unread,
Aug 13, 2015, 3:43:16 PM8/13/15
to David Welch, RSGISLib Support
Hi David,

Are you trying to build against version 2.0 of GDAL? Currently only GDAL 1.11 is supported with RSGISLib, as the API was changed in version 2.0 and we haven’t updated the code yet. There is a branch on Bitbucket where we have started adding support for GDAL 2.0 (gdal_2) if you want to look at this.

Our current recommended method for installing under OS X is to use the binaries we provide through conda. You can install by following step 7 of the instructions here: https://spectraldifferences.wordpress.com/2014/09/24/installing-rsgislib-on-windows-through-a-virtual-machine/

Thanks,

Dan

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at http://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
<CMakeCache.txt>

Reply all
Reply to author
Forward
0 new messages