Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large shared library size (200MB) when linking google-cloud-cpp speech and texttospeech libraries #14932

Open
Nullarity opened this issue Jan 11, 2025 · 0 comments

Comments

@Nullarity
Copy link

Nullarity commented Jan 11, 2025

I am developing an application for Android. My application needs to convert voice to text and text to voice. Therefore, I use these two components: google-cloud-cpp::speech and google-cloud-cpp::texttospeech. The following is a simplified CMakeLists.txt:

cmake_minimum_required ( VERSION 3.25 )
project ( assistant VERSION 1.0.0 )
set ( CMAKE_CXX_STANDARD 20 )
find_package ( google_cloud_cpp_speech CONFIG REQUIRED )
find_package ( google_cloud_cpp_texttospeech CONFIG REQUIRED )
add_library ( assistant SHARED src/assistant.cpp )
target_link_libraries ( assistant PRIVATE google-cloud-cpp::speech google-cloud-cpp::texttospeech )

Building this project with MinSizeRel results in an assistant.so of approximately 200MB (google libraries were built shared=off).

My question is: is this normal, or am I doing something wrong (or not doing something right), and should the library size be this large for such basic functionality?

Thank you!

--
Linux x64, gcc 11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant