My project is written in Rust (Ubuntu 16.04, CMake 3.5.1
).
Previously it used grpcio = "0.4.0"
as a dependency in Cargo.toml
and I could successfully cross-compile (i.e., create a static binary) it (using cross
). However, after I changed my dependency to grpcio = { version = "0.4.2", features = ["openssl"] }
I can't cross-compile it anymore: it says that it couldn't compile grpcio-sys = "0.4.2"
and displays a few CMake errors (and I can't continue to use 0.4.0
because it doesn't support features=["openssl"]
):
- Couldn't find some enviroments flags for OpenSSL (even though I installed
sudo apt-get install libssl-dev
) forUbuntu 16.04
. gRPC_PROTOBUF_PROVIDER is "module" but PROTOBUF_ROOT_DIR is wrong
.
How can I fix it? This post says I should avoid OpenSSL completely. And here's another post about cross compiling with OpenSSL.