Skip to content
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: gomobile cannot add extra so library #58621

Closed
ImagineYao opened this issue Feb 21, 2023 · 2 comments
Closed

x/mobile: gomobile cannot add extra so library #58621

ImagineYao opened this issue Feb 21, 2023 · 2 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@ImagineYao
Copy link

ImagineYao commented Feb 21, 2023

My go project use a so library, such as example.so. After I using gomobile to make an aar and build it in android apk, I get the error that couldn't find the library example.so. There is only ibgojin.so in the aar, example.so is missing.
截屏2023-02-21 23 17 36
截屏2023-02-21 23 26 29

Following is my build command.
CGO_LDFLAGS="-L$(libs_dir)/android_arm64" CC="$(android_ndk_bin)/aarch64-linux-android30-clang" gomobile bind -ldflags "-s -w" -v -target=android/arm64

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Feb 21, 2023
@gopherbot gopherbot added this to the Unreleased milestone Feb 21, 2023
@thanm thanm added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Feb 21, 2023
@ImagineYao ImagineYao changed the title x/mobile: gomobile bind .so library failed x/mobile: gomobile cannot add extra so library Feb 21, 2023
@bcmills
Copy link
Contributor

bcmills commented Feb 21, 2023

(CC @golang/android @hyangah)

@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants