From 46b34f0a601639f513b74b6167e8ff3da9d58be8 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 22 Jun 2022 11:51:04 -0700 Subject: [PATCH] pull in windows build notes from pr 67 --- .drone.yml | 4 ++-- README.md | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3673926..9e1b905 100644 --- a/.drone.yml +++ b/.drone.yml @@ -164,8 +164,8 @@ steps: - make libCwtch.x64.dylib - name: build-macos-arm64 when: - #event: - # - push + event: + - push status: [ success ] commands: - export PATH=$PATH:/usr/local/go/bin/ diff --git a/README.md b/README.md index 21e7ae3..26f897e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ C-bindings for the Go Cwtch Library. make linux make android make windows + make macos ## Android Build Notes @@ -16,6 +17,12 @@ Go 1.17.4, NDK 22.1.7171670, and gomobile 4e6c2922fdeed32d3596616518aaee7b0d79ce Other version combinations untested and some definitely do not work. +## Windows + +Cwtch relies on sqlite which in turn requires the use of CGO. As per [this issue](https://github.com/golang/go/issues/12029) +that means [TDM-GCC](https://jmeubank.github.io/tdm-gcc/download/) is required to be installed and used to compile on Windows. +Install it and add it to your path and `make windows` should then work. + ## Experimental iOS support make ios @@ -43,4 +50,4 @@ written to `stdout` when `DebugInfo()` is called. ## MacOS -- copy libCwtch.dylib into the directory you are executing from +- copy libCwtch.x64.dylib and libCwtch.arm.dylib into the directory you are executing from