<div dir="ltr">I got it working, I saw the post Handling pdfium build / integration and fixed it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 2:47 PM, Gane R <span dir="ltr"><<a href="mailto:gane.prog@gmail.com" target="_blank">gane.prog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I am looking for building gdal with minimal set of drivers like gdal with geotiff, jpg, png and sqlite gpkg<br><br></div>so it should do basic warp geotiff and work with geopkg raster. I don't need OGR part I need the core, alg and raster tif, gpkg, jpg and png alone is enought.<br></div>the problem is I get a fat static lib. I want to reduce its size.<br><br>I tried to follow the post <a href="https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers" target="_blank">https://trac.osgeo.org/gdal/<wbr>wiki/<wbr>BuildingOnUnixWithMinimizedDri<wbr>vers</a> It seems it is old.<br><br></div><div>When I build i get error during building the apps like gdalinfo, gdalwarp ....<br><br></div>Any suggestions <br><div><br>my ogr/ogrsf_frmts/GNUmakefile  is <br></div><div>like <br><br>include ../../GDALmake.opt<br><br>SUBDIRS-yes    := \<br>    generic rec shape<br><br>SUBDIRS-$(HAVE_DODS)    += dods<br>SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg<br>SUBDIRS-$(HAVE_FME)    += fme<br>SUBDIRS-$(HAVE_GRASS)    += grass<br>SUBDIRS-$(HAVE_IDB)    += idb<br><br></div><div>I get the following error<br><br>/home/user/home/user/x64/gdal-<wbr>2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::~TABINDFile()'<br>/home/user/home/user/x64/gdal-<wbr>2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::FindNext(int, unsigned char*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_object_add'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `TABINDFile::Open(char const, char const, int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::CreateField(<wbr>OGRFieldDefn*, int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_to_file'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `MITABSpatialRef2CoordSys(<wbr>OGRSpatialReference*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_tokener_free'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_new_int64'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_get_string'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::GetFeatureCount(<wbr>int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `TABINDFile::BuildKey(int, int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_array_add'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_new_object'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRXPlane_ExtendPosition(<wbr>double, double, double, double, double*, double*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::SetNextByIndex(<wbr>long long)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::CreateGeomField(<wbr>OGRGeomFieldDefn*, int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::ResetReading()'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::ICreateFeature(<wbr>OGRFeature*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRXPlane_Distance(double, double, double, double)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `TABINDFile::AddEntry(int, unsigned char*, int)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_put'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `json_object_new_double_with_<wbr>precision'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::TestCapability(<wbr>char const*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::DeleteFeature(<wbr>long long)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_new_int'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `TABINDFile::Close()'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_get_type'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::GetNextFeature()<wbr>'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `OGRMemLayer::OGRMemLayer(char const, OGRSpatialReference, OGRwkbGeometryType)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `TABINDFile::BuildKey(int, char const*)'<br>/home/user/x64/gdal-2.1.0/.<wbr>libs/libgdal.so: undefined reference to `gdal_json_object_from_file'<br><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Gane<br></div></font></span></div>
</blockquote></div><br></div>