Compile fails with vector data disabled (--without-ogr)
|Reported by:||peterdm||Owned by:||warmerdam|
I want to build gdal without vector data support because I don't need it. Disabling vector data makes compilation fail though.
Steps to reproduce:
- ./configure --without-ogr --with-java
-> make fails
Note that make succeeds when omitting '--without-ogr'. Possibly the root cause is that there is an illegal dependency from pdf on ogr?
I looked for an option to disable pdf too since I don't need that either, but couldn't find any option to do os. So the only workaround I could find is to make with ogr enabled.
[make] ../../GDALmake.opt:576: recipe for target '../o/pdfwritabledataset.lo' failed [make] make: Leaving directory '/mnt/data/jenkins-slave/workspace/GDAL_-_2016.0_-_Native_Build_-_Linux64/native/gdal-2.0.0/frmts/pdf' [make] GNUmakefile:10: recipe for target 'pdf-install-obj' failed [make] make: Leaving directory '/mnt/data/jenkins-slave/workspace/GDAL_-_2016.0_-_Native_Build_-_Linux64/native/gdal-2.0.0/frmts' [make] GNUmakefile:61: recipe for target 'frmts-target' failed [make] pdfwritabledataset.cpp: In member function 'virtual OGRErr PDFWritableVectorDataset::SyncToDisk()': [make] pdfwritabledataset.cpp:307:17: error: 'class GDALPDFWriter' has no member named 'WriteOGRLayer' [make] oWriter.WriteOGRLayer((OGRDataSourceH)this, [make] ^ [make] make: *** [../o/pdfwritabledataset.lo] Error 1 [make] make: *** [pdf-install-obj] Error 2 [make] make: *** [frmts-target] Error 2