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就能运行了。运行界面如下