go-sciter icon indicating copy to clipboard operation
go-sciter copied to clipboard

Macos system cannot use sciter-api branch

Open 2vl opened this issue 3 years ago • 9 comments

Macos system cannot use sciter-api branch

error:

#github.com/sciter-sdk/go-sciter ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:76:23: could not determine kind of name for C.BOOL cgo: clang errors for preamble: ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:14:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'? extern BOOL SC_CALLBACK SciterElementCallback_cgo(HELEMENT he, LPVOID param); ^~~~ SBOOL ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here typedef int SBOOL; ^ ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:18:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'? extern BOOL SC_CALLBACK ElementEventProc_cgo(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms ); ^~~~ SBOOL ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here typedef int SBOOL; ^ ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:26:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'? extern BOOL SC_CALLBACK KeyValueCallback_cgo(LPVOID param, const VALUE* pkey, const VALUE* pval ); ^~~~ SBOOL ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here typedef int SBOOL; ^ ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:32:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'? extern BOOL SCAPI SciterGetArchiveItem (HSARCHIVE harc, LPCWSTR path, LPCBYTE* pdata, UINT* pdataLength); ^~~~ SBOOL ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here typedef int SBOOL; ^ ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/sciter.go:34:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'? extern BOOL SCAPI SciterCloseArchive (HSARCHIVE harc); ^~~~ SBOOL ../../go/pkg/mod/github.com/sciter-sdk/[email protected]/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here typedef int SBOOL; ^ 5 errors generated.

2vl avatar Sep 06 '21 10:09 2vl

Can anyone use sciter-api in macos ? Is there anyone who can help me?

2vl avatar Sep 21 '21 15:09 2vl

@pravic @c-smile help

2vl avatar Sep 26 '21 09:09 2vl

Well, I have too little time to support - family and stuff. I'll try.

pravic avatar Sep 27 '21 10:09 pravic

@zyxk you can try use this version https://github.com/AdguardTeam/go-sciter, which was adapted for Sciter 4.4.7.0+

105th avatar Sep 28 '21 09:09 105th

@zyxk you can try use this version https://github.com/wj008/go-sciter which was adapted for Sciter 4.4.8.0+

wj008 avatar Oct 01 '21 21:10 wj008

@zyxk you can try use this version https://github.com/wj008/go-sciter which was adapted for Sciter 4.4.8.0+ 感谢, 这个使用正常. This is great.

@zyxk you can try use this version https://github.com/AdguardTeam/go-sciter, which was adapted for Sciter 4.4.7.0+ I can't use it in Mac.

2vl avatar Oct 09 '21 02:10 2vl

Well, I have too little time to support - family and stuff. I'll try.

I am waiting for the update. Support for macos

2vl avatar Oct 09 '21 02:10 2vl

@wj008 may you please make a pull request on this repo against the sciter-api branch, PR https://github.com/sciter-sdk/go-sciter/pull/299 so everyone can benefit from it. Thank you for your work.

geocine avatar Oct 10 '21 04:10 geocine

PR submitted by @wj008 Thanks! https://github.com/sciter-sdk/go-sciter/pull/322

geocine avatar Oct 30 '21 07:10 geocine