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 bind cannot build sqlite package #10584

Closed
crawshaw opened this issue Apr 27, 2015 · 2 comments

Comments

Projects
None yet
4 participants
@crawshaw
Copy link
Contributor

commented Apr 27, 2015

From Matt Hawkins via golang-nuts:

$ gomobile bind
# github.com/mattn/go-sqlite3
/Users/mhawkins/Library/go/pkg/gomobile/android-ndk-r10d/arm/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
collect2: error: ld returned 1 exit status
gomobile: exit status 2

@crawshaw crawshaw self-assigned this Apr 27, 2015

@crawshaw crawshaw added this to the Go1.5 milestone Apr 27, 2015

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Apr 27, 2015

fyi. on android, -lpthread is not necessary and linked automatically. http://mobilepearls.com/labs/native-android-api/ndk/docs/STABLE-APIS.html

@minux

This comment has been minimized.

Copy link
Member

commented Apr 27, 2015

The lpthread comes from go-sqlite3:

mattn/go-sqlite3@3080677

@minux minux closed this Apr 27, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.