lnicola / gdal-autocxx-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building

autocxx doesn't support GDALDriver::{AddFieldDomain, UpdateFieldDomain, AddRelationship, UpdateRelationship}, they have to be patched out of gdal_priv.h.

protected members are also unsupported, so you must replace it with public in GDALDataset and GDALRasterBand.

Even so, this does not work because autocxx doesn't support re-entrant non-const calls, like GetMinimum -> GetMetadataItem.

Set the library search path in build.rs if required.

$ cargo build
$ cp target/debug/libgdal_autocxx_test.so target/debug/gdal_autocxx_test.so
$ GDAL_DRIVER_PATH=target/debug gdalinfo --formats

About


Languages

Language:Rust 87.5%Language:C 12.5%