gomobile bind sqlite3 has many errors in windows and mac OS
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 9.2k
- Forks
- 1.2k
- Avg merge
- 19m
- Merged PRs (30d)
- 4
Description
D:\GoProject\src\golib> gomobile bind -target=android golib
gomobile: go build -buildmode=c-shared -o=C:\Users\zzx\AppData\Local\Temp\gomobile-work-264215403\android\src\main\jniLibs\armeabi-v7a\libgojni.so gobind failed: exit status 2
github.com/mattn/go-sqlite3
sqlite3-binding.c:33948:42: error: use of undeclared identifier 'mmap'
sqlite3-binding.c:34037:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:34046:22: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:34073:20: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:34090:16: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:14567:38: note: expanded from macro 'ArraySize'
sqlite3-binding.c:34094:14: error: invalid application of 'sizeof' to an incomplete type 'struct unix_syscall []'
sqlite3-binding.c:14567:38: note: expanded from macro 'ArraySize'
does it suport gomobile?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported gomobile bind -target=android golib failure and inspect sqlite3-binding.c around the reported mmap and unix_syscall errors. Done means the sqlite3 driver can be bound for the affected host environments without these compiler errors; the issue provides no test file or agreed implementation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, go, sqlite
- Domain
- databases, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100