libcwtch-go/BUILDING_DEBUG.md

33 lines
452 B
Markdown
Raw Normal View History

2021-06-24 22:30:46 +00:00
*sometimes: rm -rf $GOPATH/pkg*
*sometimes: rm -rf /tmp/gomobile*
rm -rf vendor
go clean --modcache
go mod download
go get -u golang.org/x/mobile
go get -u golang.org/x/mobile/bind
gomobile clean
gomobile init
make android
# 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`