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/cmd/gomobile: build lost the "libopenal.so" file without error #12550
Comments
CC @crawshaw |
There are two issues:
@crawshaw, should we consider adding checksum hash control to see if the downloaded archive's integrity is not compromised? |
We have a hash: https://github.com/golang/mobile/blob/master/cmd/gomobile/hashes.go#L18 I don't see how gomobile init can succeed if it fails to download OpenAL. I suspect it did fail, but did enough work that gomobile build could run. There seems to be a bunch of unnecessary tree walking code that if removed will present a nicer error message. I'll send a cl. |
CL https://golang.org/cl/14474 mentions this issue. |
o(∩_∩)o Great!
The error message is enough clear now. Additionally, I noticed that an apk file is still created at the same time. Thank you sincerely. |
Fixes golang/go#12550. Change-Id: I744729cfd702f0e044eac22858ee746096977665 Reviewed-on: https://go-review.googlesource.com/14474 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Fixes golang/go#12550. Change-Id: I744729cfd702f0e044eac22858ee746096977665 Reviewed-on: https://go-review.googlesource.com/14474 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Qucik reproduce steps
As the result,the output apk will not inculde the "libopenal.so" file in "xxx.apk\lib\armeabi".
I hope in the build process, gomobile can check whether "gomobile-openal-soft" is missing or not. if yes,then throw an exception or a clear tip.
This will help developor to know the reason.
(Currently is builded successfully but lost the "libopenal.so".So after installed apk to device and run,it will got a crash due to "al: cannot load libopenal.so " )
History of this issus
You can find the actual usage scenario here:
#12514
when the
gomobile init
failed to download the "gomobile-openal-soft-xxxx.tar.gz" , it will cause this issus in build process.Thank you sincerely.
The text was updated successfully, but these errors were encountered: