go-sciter 学习 - 1

go-sciter地址:GitHub - sciter-sdk/go-sciter: Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development

Getting Started

快速开始

At the moment only Go 1.10 or higher is supported (issue #136).

  1. 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 to c:\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 弹出了窗口,但是只有标题,没有页面内容。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值