Closed davidcann closed 3 years ago
Hi @davidcann Another RealSense user encountered the same issue in the past with package versus source build size. A RealSense team member advised them to strip debug symbols and other content out of the .so file by using a "strip" command.
https://github.com/IntelRealSense/librealsense/issues/3211
The link below provides advice about methods for using a strip in CMake:
https://stackoverflow.com/questions/38675403/how-to-config-cmake-for-strip-file/38676023
Thanks, that worked.
Issue Description
When building the library from source, the file size of librealsense2.so.2.xx.x ends up being around 200 MB, but the librealsense2.so.2.xx.x installed via the "realsense-hw-public" apt repository is around 19 MB (most recent is 2.35.2 for arm64 on Nvidia Jetson). We need 2.40.0, but I've confirmed that the issue is the same with 2.35.2.
Build command used:
I realize that there are several packages in the apt repository, but we want to use the minimal installation required on our client devices. Is there a way for us to build a minimal library that is smaller than the ~200 MB .so file?