該文章主要講述從源碼編譯LiteIDE的步驟。
編譯環境
Ubuntu 16.04 64bit, Qt 5.5.1
$ uname -a
Linux kev-ubuntu 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ gcc -version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ qmake --version
QMake version 3.0 Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
先決條件
編譯liteIDE需要安裝golang開發環境(設置好gopath即可)。
Git (推薦使用,便於手動“升級軟件”)

sudo apt-get install git-core
編譯步驟
- 獲取源碼
-
git clone https://github.com/visualfc/liteide.git
-
- 設置QTDIR環境變量
-
# 此處使用的是qt5 export QTDIR=/usr/share/qt5
-
- 更新package
-
cd liteide/build
./update_pkg.sh
-
- Build源碼
-
./build_linux.sh
-
- Deploy
-
./deploy_linux_x64_qt5.sh
-
成功之后在src的同級目錄(build目錄)下,會生成一個liteide目錄,進入 liteide/bin目錄運行liteide 就可以了。你也可以選擇將生成的文件復制到你想要的位置,將liteide加入啟動器就OK了。
直接安裝兼容性更好
https://sourceforge.net/projects/liteide/
參考: https://github.com/visualfc/liteide/blob/master/liteidex/deploy/welcome/zh_CN/install.md