<font size=2 face="sans-serif">Hi Gane, </font>
<br><font size=2 face="sans-serif">it might be slightly heretic, but I
succeeded in a similar task by using GDAL version 1.11. In that version
there seem to be much less interdependencies between the dlls under Windows,
and I guess it will be the same under Unix. </font>
<br><font size=2 face="sans-serif">I found out by starting the projects
without any GDAL-dlls and then adding them one by one until it worked (and
I ended up with only two dlls). It's a hack, but it worked for me. </font>
<br><font size=2 face="sans-serif">Hope that helps.</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Niels</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">Gane R <gane.prog@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">gdal-dev@lists.osgeo.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">29.03.2017 11:17</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">[Newsletter]
[gdal-dev] Building GDAL on linux with minimal drivers</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:    
   </font><font size=1 face="sans-serif">"gdal-dev"
<gdal-dev-bounces@lists.osgeo.org></font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi all,<br>
</font>
<br><font size=3>I am looking for building gdal with minimal set of drivers
like gdal with geotiff, jpg, png and sqlite gpkg<br>
</font>
<br><font size=3>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.</font>
<br><font size=3>the problem is I get a fat static lib. I want to reduce
its size.<br>
<br>
I tried to follow the post </font><a href=https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers><font size=3 color=blue><u>https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers</u></font></a><font size=3>
It seems it is old.<br>
</font>
<br><font size=3>When I build i get error during building the apps like
gdalinfo, gdalwarp ....<br>
</font>
<br><font size=3>Any suggestions </font>
<br><font size=3><br>
my ogr/ogrsf_frmts/GNUmakefile  is </font>
<br><font size=3>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>
</font>
<br><font size=3>I get the following error<br>
<br>
/home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
to `TABINDFile::~TABINDFile()'<br>
/home/user/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference
to `TABINDFile::FindNext(int, unsigned char*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_object_add'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::Open(char
const, char const, int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::CreateField(OGRFieldDefn*,
int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_to_file'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `MITABSpatialRef2CoordSys(OGRSpatialReference*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_tokener_free'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_new_int64'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_get_string'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::GetFeatureCount(int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::BuildKey(int,
int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_array_add'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_new_object'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRXPlane_ExtendPosition(double,
double, double, double, double*, double*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::SetNextByIndex(long
long)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::CreateGeomField(OGRGeomFieldDefn*,
int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::ResetReading()'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::ICreateFeature(OGRFeature*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRXPlane_Distance(double,
double, double, double)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::AddEntry(int,
unsigned char*, int)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_put'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `json_object_new_double_with_precision'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::TestCapability(char
const*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::DeleteFeature(long
long)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_new_int'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::Close()'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_get_type'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::GetNextFeature()'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `OGRMemLayer::OGRMemLayer(char
const, OGRSpatialReference, OGRwkbGeometryType)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `TABINDFile::BuildKey(int,
char const*)'<br>
/home/user/x64/gdal-2.1.0/.libs/libgdal.so: undefined reference to `gdal_json_object_from_file'<br>
</font>
<br><font size=3>Thanks</font>
<br><font size=3>Gane</font><tt><font size=2>_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
</font></tt><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"><tt><font size=2>https://lists.osgeo.org/mailman/listinfo/gdal-dev</font></tt></a>
<br>
<br>