webview: build on darwin fails

~/src/webview$ go build -x
WORK=/var/folders/q_/6fv7kfsj7b11y457c2dsssgw0000gn/T/go-build352003042
mkdir -p $WORK/webview/_obj/
mkdir -p $WORK/
cd /Users/lsm/src/webview
CGO_LDFLAGS="-g" "-O2" "-framework" "Cocoa" "-framework" "WebKit" /usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64/cgo -objdir $WORK/webview/_obj/ -importpath webview -- -I $WORK/webview/_obj/ -g -O2 -DWEBVIEW_COCOA=1 -x objective-c webview.go
# webview
./webview.go:132:3: struct size calculation error off=8 bytesize=0
~/src/webview$ uname -a 
Darwin io.local 16.1.0 Darwin Kernel Version 16.1.0: Wed Oct 19 20:31:56 PDT 2016; root:xnu-3789.21.4~4/RELEASE_X86_64 x86_64

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18

Most upvoted comments

@zserge you knwo you can run OSX with vagrant / virtual box on a linux or windows box. Its legal also.

great for testing.

@hasit Ok, it seems to be NSModalResponseOK. Can you please manually replace it and see if the warning is gone?