nim IDE aporia的编译

1 从nim-lang.org 可以进入 aporia 的github.com上的站点

  https://github.com/nim-lang/aporia,下载aporia 代码

 

2  nim依赖gtk2和cairo这两个包

   因此需要从https://github.com/nim-lang/gtk2 下载gtk2

   从  https://github.com/nim-lang/cairo 下载cairo

   或者如果nimble可以用的话(我这边是因为代理所以下不了),nimble install gtk2 也能下载下来

   把下载的包中的*.nim 复制到nim的安装目录下的lib\wrappers 下

3 下面的文字来自于  https://github.com/nim-lang/aporia

GTK+

If you already have GTK+ on your system, you don't need to do anything. Just make sure GTK+ is in your PATH.

If you don't have GTK+ installed then you need to install it. You can get the  latest version fromhere. Make sure that the installer adds GTK+ to the PATH.

GtkSourceView

The GtkSourceView doesn't have an installer, however binaries are available  fromhere (win64). Just pick the latest version and download the archive then copy the files/folders in the archive into the 'bin' directory in gtk's directory (Most likely: C:\Program Files\GTK2-Runtime\bin).

libxml2-2

GtkSourceView depends on libxml2-2. This should be downloaded from  here (win64). And the contents of it should be copied the same 'bin' directory as GtkSourceView above. The zip you are looking for is usually called libxml2_2.X.X-1_win32.zip

pcre

The dll for this can be found in nim's repo, in the "dist" directory. Just copy it into aporia's directory or somewhere into your PATH.

 

通过链接下载GTK2后安装,然后下载GtkSourceView,把dll复制到GTK+的安装目录的bin下,把libxml2-2 的dll复制到GTK的bin下,把pcre的dll也复制过去,在nim的安装目录的dist 目录下。

 

然后dll收集全了。

通过 nim c aporia 就能编译通过了。

把GTK 的 bin下的dll复制到aporia的目录下,运行aporia就能运行了。运行界面如下

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值