[Qgis-developer] Fwd: Re: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'

Marco Bernasocchi marco at bernawebdesign.ch
Fri Sep 21 02:47:06 PDT 2012




-------- Original Message --------
Subject: Re: [Qgis-developer] invalid conversion from 'void*' to
'OGRSpatialReferenceHS*'
Date: Fri, 21 Sep 2012 15:43:58 +0700
From: Marco Bernasocchi <marco at bernawebdesign.ch>
To: Even Rouault <even.rouault at mines-paris.org>

Thanks Even,
bizarre that nobody had that issue before no?

ciao
Marco
On 09/21/2012 03:27 PM, Even Rouault wrote:
> Selon Marco Bernasocchi <marco at bernawebdesign.ch>:
> 
>> hi every body, updating to th letest android qt version is being tougher
>> than planned ... I got all the dependencies ok now but building qgis gives
>> me this errors below. any Ideas? this is using android ndk 8b with gcc 4.4.3
>>
>> thanks a lot
>>
>> /home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
>> In destructor
>> 'QgsCoordinateReferenceSystem::~QgsCoordinateReferenceSystem()':
>> /home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:78:
>> error:
>> invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
> 
> There's an error in
> https://github.com/qgis/Quantum-GIS/blob/master/src/core/qgscoordinatereferencesystem.h#L475
> 
> The pointer should be of type OGRSpatialReferenceH instead of void*
> 
> The compilation error must be unnoticed for people compiling QGIS without
> -DDEBUG defined, but when -DDEBUG is actually defined, OGRSpatialReferenceH is
> no longer aliased to void*. See
> http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_api.h#L59
> 


-- 
Marco Bernasocchi
http://opengis.ch




More information about the Qgis-developer mailing list