[Qgis-developer] compiling GDAL/OGR C API Port

Marco Hugentobler marco.hugentobler at karto.baug.ethz.ch
Tue Feb 19 04:01:49 EST 2008


Hi,

I compiled the qgis_gdal_c branch and noticed there are some compiler errors 
with debug enabled. All related to sections that print out some debugging 
messages to the console. Here my compiler output:

/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp: In static 
member function »static void 
QgsRasterLayer::buildSupportedRasterFileFilter(QString&)«:
/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp:174: 
Fehler: »void*« ist kein Zeiger auf Objekt
/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp: In member 
function »const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int)«:
/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp:2496: 
Fehler: »void*« ist kein Zeiger auf Objekt
/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp:2503: 
Fehler: »void*« ist kein Zeiger auf Objekt
/home/marco/src/qgis_gdal_c/src/core/raster/qgsrasterlayer.cpp:2510: 
Fehler: »void*« ist kein Zeiger auf Objekt
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/raster/qgsrasterlayer.o] 
Fehler 1

Regards,
Marco

Am Montag 18 Februar 2008 05:54:14 schrieb Frank Warmerdam:
> Tim Sutton wrote:
> > Hi
> >
> > Yes I can make at least ubuntu gutsy debs for testing and probably win
> > MSVC build (sans grass and python) installer.
> >
> > One concern I have is that people reintroduce c++ calls later and undo
> > Franks good work. I wonder if its possible via cmake to restrict the
> > build to use only the C api?
>
> Tim,
>
> I have stripped out use of the C++ include files, so adding calls
> to the C++ API will require adding new #includes, not just an
> inadvertent method call or anything like that.
>
> It is also reasonable easy to verify by doing grepping the "nm"
> output all all the .so files for OGR, GDAL and CPL.  If only the
> C API all that should show up in nice undecorated function names.
>
> Best regards,



-- 
Dr. Marco Hugentobler
Institute of Cartography
ETH Zurich
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list