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

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章