<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Gane,</p>
    <p>You can try to use Cmake build of GDAL
      (<a class="moz-txt-link-freetext" href="https://github.com/nextgis-borsch/lib_gdal">https://github.com/nextgis-borsch/lib_gdal</a>). <br>
    </p>
    <p>It can be configured via CMake-gui or command line.</p>
    <p>This is an example of minimal static build of GDAL -
<a class="moz-txt-link-freetext" href="https://github.com/nextgis/nextgis_datastore/blob/master/cmake/extlib.cmake#L94-L175">https://github.com/nextgis/nextgis_datastore/blob/master/cmake/extlib.cmake#L94-L175</a><br>
    </p>
    <pre class="moz-signature" cols="72">Best regards,
    Dmitry</pre>
    <div class="moz-cite-prefix">29.03.17 12:17, Gane R пишет:<br>
    </div>
    <blockquote
cite="mid:CALMrLdB9F82YsffMrAKp0jUcUk+Nxc4bNeGA1LfK9AKNjqb=wg@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
href="https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers">https://trac.osgeo.org/gdal/wiki/BuildingOnUnixWithMinimizedDrivers</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-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>
          <br>
        </div>
        <div>Thanks<br>
        </div>
        <div>Gane<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>