BPG driver lacks GDALRegister_BPG
|Reported by:||shot2||Owned by:||warmerdam|
After compiling the BPG read-only driver (frmts/bpg/bpgdataset.cpp) by hand - according to instructions provided in the file - the resulting gdal_BPG.so plugin is unable to register the BPG driver.
/usr/local/bin/gdalinfo --format BPG ERROR 1: /usr/local/lib/gdalplugins/gdal_BPG.so: undefined symbol: GDALRegisterMe ERROR 1: /usr/local/lib/gdalplugins/gdal_BPG.so: undefined symbol: GDALRegister_BPG
This seems caused by GDALRegister_BPG() not being called anywhere in the code. Given the crude nature of the driver at this moment, a possible fix may be to alter bpgdataset.cpp before compilation:
CPL_C_START void CPL_DLL GDALRegister_BPG(); #include "libbpg.h" CPL_C_END
Then gdal is able to decode BPG imagery successfully. Context: vanilla Ubuntu 16.04, gdal-svn-trunk-2016.10.23, libbpg-0.9.7