C-bindings for the Go Cwtch Library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
452 B

  1. *sometimes: rm -rf $GOPATH/pkg*
  2. *sometimes: rm -rf /tmp/gomobile*
  3. rm -rf vendor
  4. go clean --modcache
  5. go mod download
  6. go get -u golang.org/x/mobile
  7. go get -u golang.org/x/mobile/bind
  8. gomobile clean
  9. gomobile init
  10. make android
  11. # errors
  12. ```
  13. # runtime/cgo
  14. gcc_android.c:6:10: fatal error: android/log.h: No such file or directory
  15. #include <android/log.h>
  16. ^~~~~~~~~~~~~~~
  17. compilation terminated.```
  18. ```
  19. *solution:* run `gomobile init`