libcwtch-go/BUILDING_DEBUG.md

33 lines
452 B
Markdown
Raw Permalink Normal View History

2021-02-09 05:08:30 +00:00
*sometimes: rm -rf $GOPATH/pkg*
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
*sometimes: rm -rf /tmp/gomobile*
rm -rf vendor
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
go clean --modcache
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
go mod download
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
go get -u golang.org/x/mobile
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
go get -u golang.org/x/mobile/bind
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
gomobile clean
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
gomobile init
2021-02-09 05:09:42 +00:00
2021-02-09 05:08:30 +00:00
make android
2021-02-10 01:51:59 +00:00
# errors
```
# runtime/cgo
gcc_android.c:6:10: fatal error: android/log.h: No such file or directory
#include <android/log.h>
^~~~~~~~~~~~~~~
compilation terminated.```
```
*solution:* run `gomobile init`