Skip to content
Discussion options

You must be logged in to vote

It took some hours of "compile - get error - find solution" looping, but I've finally managed to cross-compile grpcio using crossenv. Thanks for pointing me in the right direction. I'll leave my findings here for future reference.
Python version (for both build and host): 3.10.5
grpcio source code version: 1.49.1
COMPILE_ARGS: I removed "-std=c++14", nothing else.
LINK_ARGS: I removed "-lpthread" and "-lrt" (they don't have an Android counterpart as they are integrated in libc), and I added "-llog" and "-static-libstdc++" (without those two, I was getting runtime "cannot locate symbol" errors).
Then, I had to set the "GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY" flag to true to get past other …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by virtuald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #101 on September 12, 2025 02:02.