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
x/mobile: fail to build reverse bind if dependencies on CGO/external lib #19552
Comments
/cc @eliasnaur |
This doesn't seem to be related to the reverse binding machinery. Running
I'm not even sure ltdl.h exists in the NDK. |
You're right. I guess I didn't express myself enough (and maybe I don't know where to ask this question, I tried the gomobile slack already). Is it possible to add an external library to a project with gomobile or to the SDK? |
I don't see why not, but it's not something I've done myself, and there might be issues I don't know about. Is there a specific library you have in mind? It's much easier to start from a specific build error or crash. Also, you should probably ask on gomobile-nuts to get a larger audience and to help others in the same situation. Feel free to CC me so I don't miss your post. |
The library I'm thinking about is the ltdl library that is needed by the https://github.com/miekg/pkcs11 go package. I will post on go-nuts I think. Thank you very much! |
What version of Go are you using (
go version
)?go version go1.8 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
I tried to compile some project for android with the reverse binding, but they were depending on some C library. The library existed on the host, but the compilation failed for android.
The idea is to compile some gRPC client for android in full Go.
What did you expect to see?
A successful build
What did you see instead?
Output from ./gradlew in
golab-2017-training
ping @eliasnaur since the reverse project I'm basing my work on is from him :)
The text was updated successfully, but these errors were encountered: