[gdal-dev] Question about GDAL lib size

Patrick Valsecchi patrick.valsecchi at camptocamp.com
Tue Apr 2 00:14:35 PDT 2019


cmake -DCMAKE_BUILD_TYPE=Release ...

But typically the libs are not stripped in this mode either. I never
understood why and always add steps to do it afterwards.

On Tue, Apr 2, 2019 at 8:52 AM Fan Liu <fan.liu at ericsson.com> wrote:

> Hi,
>
>
>
> I tried ‘strip lib’, it reduce the lib file size to 17MB.
>
> Do you know is there any parameters during “./configure” to compile
> without debug? I didn’t find the document.
>
>
>
> BRs,
>
> Fan Liu
>
>
>
> *From:* Fan Liu
> *Sent:* Tuesday, April 2, 2019 2:40 PM
> *To:* Patrick Valsecchi <patrick.valsecchi at camptocamp.com>
> *Subject:* RE: [gdal-dev] Question about GDAL lib size
>
>
>
> Hi Patrick,
>
>
>
> Thanks for the reply.
>
> I checked online, it looks like strip a library will only remove unused
> links for debug.
>
>
>
> Is it possible to get confirm that strip a library will not impact
> functions?
>
>
>
> BRs,
>
> Fan Liu
>
>
>
> *From:* Patrick Valsecchi <patrick.valsecchi at camptocamp.com>
> *Sent:* Tuesday, April 2, 2019 2:27 PM
> *To:* Fan Liu <fan.liu at ericsson.com>
> *Subject:* Re: [gdal-dev] Question about GDAL lib size
>
>
>
> Hi,
>
>
>
> Most likely Redhat's is stripped and yours not. And yours is maybe also
> compiled in debug...
>
> Plus, you don't look at the same version of GDAL.
>
>
>
> To strip a library, use the "strip" command.
>
>
>
> CU
>
>
>
> On Tue, Apr 2, 2019 at 8:12 AM Fan Liu <fan.liu at ericsson.com> wrote:
>
> Resent question after register. Could anyone support?
>
>
>
> BRs,
>
> Fan Liu
>
>
>
> *From:* Fan Liu
> *Sent:* Tuesday, April 2, 2019 10:24 AM
> *To:* 'gdal-dev at lists.osgeo.org' <gdal-dev at lists.osgeo.org>
> *Subject:* Question about GDAL lib size
>
>
>
> Hello,
>
>
>
> I have a question related with lib size. When I install GDAL via rpm on
> redhat, it lib size is 13MB. But when I compile GDAL frou source code on
> SUSE, the lib is 121MB. This confuse me, could anyone provide any
> suggestions? Why it's so big?
>
>
>
> -rwxr-xr-x 1 root root 121M Apr  1 08:37 libgdal.so.20.5.0  ## compile via
> source code 2.4.0
>
> -rwxr-xr-x  1 root root  13M Jan 28  2018 libgdal.so.1.18.4  ## installed
> via rpm on redhat
>
>
>
>
>
> BRs,
>
> Fan Liu
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190402/1ad57ef4/attachment-0001.html>


More information about the gdal-dev mailing list