Getting Started
快速开始
At the moment only Go 1.10 or higher is supported (issue #136).
-
Download the sciter-sdk
下载sciter-sdk,打开Download / sciter,选择Sciter.TIS,Download Sciter SDK。
2.Extract the sciter runtime library from sciter-sdk to system PATH
The runtime libraries lives in bin
bin.lnx
bin.osx
with suffix like dll
so
or dylib
- Windows: simply copying
bin\64\sciter.dll
toc:\windows\system32
is just enough
- Linux:
cd sciter-sdk/bin.lnx/x64
export LIBRARY_PATH=$PWD
echo $PWD >> libsciter.conf
sudo cp libsciter.conf /etc/ld.so.conf.d/
sudo ldconfig
ldconfig -p | grep sciter
should print libsciter-gtk.so location
- OSX:
cd sciter-sdk/bin.osx/
export DYLD_LIBRARY_PATH=$PWD
我将sciter.dll放到程序路径内,和程序同步发布,也可避免版本冲突。
3.Set up GCC envrionmnet for CGO
mingw64-gcc (5.2.0 and 7.2.0 are tested) is recommended for Windows users.
MinGW 就是 GCC 的 Windows 版本。
总结:
1、在线下载安装器模式不行,下载无法成功。
2、使用镜像地址,多试几个,我选择JP,几秒钟就下载完成。
参考文档:
1、MinGW-w64安装教程——著名C/C++编译器GCC的Windows版本 - 知乎
2、解决MinGW-w64下载问题 - WWIandMC - 博客园
Under Linux gcc(4.8 or above) and gtk+-3.0 are needed.
4. go get -x github.com/sciter-sdk/go-sciter
下载ZIP代码文件,解压。
5. Run the example and enjoy :)
经测试,最新版本的sicter.dll 4.4.8.3无法弹出窗口,老版本的sciter.dll 4.2.7.5 弹出了窗口,但是只有标题,没有页面内容。