Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macos system cannot use sciter-api branch #318

Open
2vl opened this issue Sep 6, 2021 · 9 comments
Open

Macos system cannot use sciter-api branch #318

2vl opened this issue Sep 6, 2021 · 9 comments

Comments

@2vl
Copy link

2vl commented Sep 6, 2021

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
Copy link
Author

2vl commented Sep 21, 2021

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

@2vl
Copy link
Author

2vl commented Sep 26, 2021

@pravic @c-smile
help

@pravic
Copy link
Member

pravic commented Sep 27, 2021

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

@105th
Copy link

105th commented Sep 28, 2021

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

@wj008
Copy link

wj008 commented Oct 1, 2021

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

@2vl
Copy link
Author

2vl commented Oct 9, 2021

@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
Copy link
Author

2vl commented Oct 9, 2021

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

I am waiting for the update. Support for macos

@geocine
Copy link

geocine commented Oct 10, 2021

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

@geocine
Copy link

geocine commented Oct 30, 2021

PR submitted by @wj008 Thanks! #322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants