Skip to content

x/mobile/cmd/gomobile: build lost the "libopenal.so" file without error #12550

@DoraemonYu

Description

@DoraemonYu

Qucik reproduce steps

  • Make sure go1.5 and gomobile is okay.
  • Rename the directory name of "%GOPATH%\pkg\gomobile\android-ndk-r10e\openal" ( such as "00opengl"), OR delete it.
  • Build your code which import the "exp/audio".

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions