Building gprc in C++ used 3.6GB space

57 views
Skip to first unread message

ganesh gurung

unread,
Jul 29, 2023, 4:50:45 PM7/29/23
to grpc.io
Hi There,
I build the gprc in C++ and occupied 3.6GB space. 

I want to build server and client only. Is it possible to reduce the size? We are trying to use linux board which will have only 1GB of free space.

I followed below line to build the gPRC.

cmake -DgRPC_INSTALL=ON \ -DgRPC_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \ ../..

Thanks
Ganesh

AJ Heller

unread,
Jul 12, 2024, 5:23:45 PM7/12/24
to grpc.io
I realize this is an old thread, but have you considered cross-compiling for your target platform? 3.6GB seems really excessive, but even if the build artifacts are large (~1GB using the standard bazel opt build), the resulting library should be pretty small.
Reply all
Reply to author
Forward
0 new messages