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

Unable to build on Android #1506

Open
b00f opened this issue Sep 26, 2024 · 3 comments
Open

Unable to build on Android #1506

b00f opened this issue Sep 26, 2024 · 3 comments
Labels
build high priority It has high priority

Comments

@b00f
Copy link
Collaborator

b00f commented Sep 26, 2024

By upgrading Pactus to Go 1.23.x, we are no longer able to build Pactus for Android. The error we encounter is:

undefined: anet.Interfaces

After searching the internet, I found this issue mentioned here: https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later. Unfortunately, this solution didn’t work, and I still received the same error.

To build Pactus for Android, you can run this command:

CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o ./build/android/pactus-daemon ./cmd/daemon
@b00f b00f changed the title Unable to build on Anadroid Unable to build on Android Sep 26, 2024
@b00f b00f added high priority It has high priority build labels Sep 26, 2024
@Ja7ad
Copy link
Contributor

Ja7ad commented Oct 8, 2024

Currently anet package fixed issue on v0.0.5: wlynxg/anet#7

@Ja7ad
Copy link
Contributor

Ja7ad commented Oct 8, 2024

@Ja7ad
Copy link
Contributor

Ja7ad commented Oct 9, 2024

Issue is tracking for fix in: libp2p/go-libp2p#2997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build high priority It has high priority
Projects
None yet
2 participants