[Qgis-developer] invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
Marco Bernasocchi
marco at bernawebdesign.ch
Thu Sep 20 19:01:17 PDT 2012
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*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:78:
error:
initializing argument 1 of 'void
OSRDestroySpatialReference(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'QgsCoordinateReferenceSystem&
QgsCoordinateReferenceSystem::operator=(const
QgsCoordinateReferenceSystem&)':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:255:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:255:
error: initializing argument 1 of 'void
OSRDestroySpatialReference(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:256:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:256:
error: initializing argument 1 of 'OGRSpatialReferenceHS*
OSRClone(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'bool
QgsCoordinateReferenceSystem::loadFromDb(QString, QString, QString)':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:360:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:360:
error: initializing argument 1 of 'void
OSRDestroySpatialReference(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:362:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:362:
error: initializing argument 1 of 'OGRErr
OSRSetFromUserInput(OGRSpatialReferenceHS*, const char*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'bool QgsCoordinateReferenceSystem::axisInverted()
const':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:385:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:385:
error: initializing argument 1 of 'const char*
OSRGetAxis(OGRSpatialReferenceHS*, const char*, int, OGRAxisOrientation*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'bool
QgsCoordinateReferenceSystem::createFromWkt(QString)':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:410:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:410:
error: initializing argument 1 of 'OGRErr
OSRImportFromWkt(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:422:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:422:
error: initializing argument 1 of 'OGRErr
OSRAutoIdentifyEPSG(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:425:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:425:
error: initializing argument 1 of 'const char*
OSRGetAuthorityName(OGRSpatialReferenceHS*, const char*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:426:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:426:
error: initializing argument 1 of 'const char*
OSRGetAuthorityCode(OGRSpatialReferenceHS*, const char*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:437:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:437:
error: initializing argument 1 of 'OGRErr
OSRExportToProj4(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:447:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:447:
error: initializing argument 1 of 'OGRErr
OSRFixup(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:449:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:449:
error: initializing argument 1 of 'OGRErr
OSRExportToProj4(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'QString QgsCoordinateReferenceSystem::toProj4() const':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:863:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:863:
error: initializing argument 1 of 'OGRErr
OSRExportToProj4(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'void
QgsCoordinateReferenceSystem::setProj4String(QString)':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:906:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:906:
error: initializing argument 1 of 'void
OSRDestroySpatialReference(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:909:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:909:
error: initializing argument 1 of 'OGRErr
OSRImportFromProj4(OGRSpatialReferenceHS*, const char*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'void QgsCoordinateReferenceSystem::setMapUnits()':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:949:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:949:
error: initializing argument 1 of 'OGRErr
OSRFixup(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:951:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:951:
error: initializing argument 1 of 'int
OSRIsProjected(OGRSpatialReferenceHS*)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:953:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:953:
error: initializing argument 1 of 'double
OSRGetLinearUnits(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:981:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:981:
error: initializing argument 1 of 'double
OSRGetAngularUnits(OGRSpatialReferenceHS*, char**)'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:
In member function 'QString QgsCoordinateReferenceSystem::toWkt() const':
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:1128:
error: invalid conversion from 'void*' to 'OGRSpatialReferenceHS*'
/home/marco/dev/Quantum-GIS/src/core/qgscoordinatereferencesystem.cpp:1128:
error: initializing argument 1 of 'OGRErr
OSRExportToWkt(OGRSpatialReferenceHS*, char**)'
make[2]: ***
[src/core/CMakeFiles/qgis_core.dir/qgscoordinatereferencesystem.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from
/home/marco/dev/Quantum-GIS/src/core/qgsvectorfilewriter.cpp:41:
/home/marco/dev/qgis-android/out/armeabi/include/ogr_api.h:51: error:
conflicting declaration 'typedef struct OGRGeometryHS* OGRGeometryH'
/home/marco/dev/Quantum-GIS/src/core/qgsvectorfilewriter.h:29: error:
'OGRGeometryH' has a previous declaration as 'typedef void* OGRGeometryH'
/home/marco/dev/qgis-android/out/armeabi/include/ogr_api.h:337: error:
conflicting declaration 'typedef struct OGRLayerHS* OGRLayerH'
/home/marco/dev/Quantum-GIS/src/core/qgsvectorfilewriter.h:28: error:
'OGRLayerH' has a previous declaration as 'typedef void* OGRLayerH'
/home/marco/dev/qgis-android/out/armeabi/include/ogr_api.h:338: error:
conflicting declaration 'typedef struct OGRDataSourceHS* OGRDataSourceH'
/home/marco/dev/Quantum-GIS/src/core/qgsvectorfilewriter.h:27: error:
'OGRDataSourceH' has a previous declaration as 'typedef void*
OGRDataSourceH'
make[2]: ***
[src/core/CMakeFiles/qgis_core.dir/qgsvectorfilewriter.cpp.o] Error 1
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
make: *** [all] Error 2
--
Marco Bernasocchi
http://opengis.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120921/630772a2/attachment.html>
More information about the Qgis-developer
mailing list