[PROJ] Proj9 small library size

Mike Taves mwtoews at gmail.com
Tue Aug 16 02:19:00 PDT 2022


On Tue, 16 Aug 2022 at 19:07, Even Rouault <even.rouault at spatialys.com> wrote:
> @Mike That's a different thing. libproj-dev from PROJ 7 includes the
> static .a library, whereas the one from PROJ 9 doesn't (since PROJ CMake
> builds only build shared or static libraries, but not both at the same time)

Thanks, that's a detail that I seem to have unlearned! The comparison
should have been:

- https://packages.debian.org/bullseye/libproj19 - PROJ 7 via Autotools
- https://packages.debian.org/bookworm/libproj25 - PROJ 9 via CMake

which have comparable file sizes. Also, I can confirm Even's guess
about debug symbols. Run this:

strip --strip-debug /path/to/libproj.so.22.2.1

and the resulting file will be about 5 MB.


More information about the PROJ mailing list