-
Notifications
You must be signed in to change notification settings - Fork 18.1k
x/mobile/cmd/gomobile: c++ with SWIG #17343
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
Comments
Did someone succeed to do so? |
@vrabeux By any chance, did you succeed to get over this issue? |
@jlouazel No sorry, I did not find a solution for this. However, you can easily "inject" C++ into your golang mobile SDK via a C++ <-> ObjC++ <-> ObjC <-> Go. Not perfect of course, but it does work. Hope it helps |
Please provide me with a (small) complete example that demonstrates the issue. Also, make sure you use Go 1.10 and run |
The problem is with env variables (how gomobile passes them to go build when crosscompiling to ios): A short summary:
|
Thank you. Can you submit a pull request so I can review and merge your fix? |
Absolutely. golang/mobile#20 |
This issue was resolved by CL 134975, but didn't get closed automatically because the commit message wasn't using the pattern described at https://golang.org/wiki/CommitMessage#other-repos. |
Hi,
I am trying to use gomobile to compile a small SDK (android + ios). This SDK contains both Go sources and C++ sources. C++ Go wrappers are generated with SWIG.
Sample project can be found here : https://github.com/vrabeux/testinggomobile
The command line :
go build
works but thegomobile bind -target=android
fails with the folowing error :For info, I have installed Android SDK. There is 2 version of NDK installed there plsu the one from gomobile.
The
gomobile bind -target=ios
also fails :Thanks for your help !
The text was updated successfully, but these errors were encountered: