LiteIDE目前也是一个专门针对Golang的IDE了,我也在使用它,功能很全面,具备语法高亮、自动补全、自动编译、调试、包浏览及管理。
前置条件
1、使用LiteIDE开发go语言需要事先安装go语言运行时环境。详情查看http://golang.org/doc/install.html。
从二进制文件安装
http://sourceforge.net/projects/liteide/files
- windows:解压到C:\
- Linux:解压到 /usr/local or $HOME
从源码安装
LiteIDE的源码可以从https://github.com/visualfc/liteide 获取。您必须先安装Qt4/Qt5来用编译源码。Qt可以从https://qt-project.org/downloads下载。对于苹果电脑,不需要手工安装Qt,可直接通过运行brew update && brew install qt
。
windows
- Qt4
> git clone https://github.com/visualfc/liteide.git
> set QTDIR=c:\Qt\Qt4.8.5
> set MINGWDIR=c:\Qt\MinGW
> cd liteide/build
> update_pkg.cmd
> build_windows_mingw.cmd
> deploy_windows_qt4.8_webkit.cmd
- Qt5.6
> git clone https://github.com/visualfc/liteide.git
> set QTDIR=C:\Qt\Qt5.6.2\5.6\mingw49_32
> set MINGWDIR=C:\Qt\Qt5.6.2\Tools\mingw492_32
> cd liteide/build
> update_pkg.cmd
> build_windows_mingw.cmd
> deploy_windows_qt5.6.cmd
Ubuntu 16.04
- Qt4
## Install Qt4 ##
$ sudo apt-get update
$ sudo apt-get install libqt4-dev
## Git clone and build liteide ##
$ git clone https://github.com/visualfc/liteide.git
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_linux_qt4.sh
## Run it: ##
$ cd liteide/build/liteide/bin
$ ./liteide
## 配置 it: ##
$ cd liteide/build
$ ./deploy_linux_x64_qt4.sh
## 32 bit
$ ./deploy_linux_x32_qt4.sh
- Qt5
## Install Qt5 ##
$ sudo apt-get update
$ sudo apt-get install qt5-default
## Git clone and build liteide ##
$ git clone https://github.com/visualfc/liteide.git
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_linux_qt5.sh
## Run it: ##
$ cd liteide/build/liteide/bin
$ ./liteide
## Deploy it: ##
$ cd liteide/build
$ ./deploy_linux_x64_qt5.sh
## 32 bit
$ ./deploy_linux_x32_qt5.sh
Ubuntu 14.04
$ sudo apt-get update
$ sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui libqtwebkit-dev g++
$ git clone https://github.com/visualfc/liteide.git
$ cd liteide/build
$ ./update_pkg.sh
$ QTDIR=/usr ./build_linux.sh
## Run it: ##
$ cd liteide/build/liteide/bin
$ ./liteide
Linux
$ git clone https://github.com/visualfc/liteide.git
$ export QTDIR=$HOME/QtSDK/Desktop/Qt/484/gcc
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_linux.sh
$ ./deploy_linux_qt4.8_webkit.sh
Mac OS X / macOS
Qt 4
$ git clone https://github.com/visualfc/liteide.git
$ export QTDIR=$HOME/QtSDK/Desktop/Qt/484/gcc #If QT is installed with brew, input: export QTDIR=/usr/local/Cellar/qt/4.8.6
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_macos_qt4.sh
$ ./deploy_macos_qt4.sh
$ open liteide/LiteIDE.app
Qt 5 sdk 安装
从http://www.qt.io/download 下载并安装 Qt. (Qt5.6.2/Qt5.7.1/Qt5.8)
$ git clone https://github.com/visualfc/liteide.git
$ export QTDIR=$HOME/Qt5.6.2/Qt5.6/clang_64
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_macos_qt5.sh
$ ./deploy_macos_qt5.sh
$ open liteide/LiteIDE.app
Qt 5 brew 安装
使用 brew安装qt (比如:brew install qt. 其他版本类似).
$ git clone https://github.com/visualfc/liteide.git
$ export QTDIR=/usr/local/Cellar/qt/5.8.0_2 # or modify accordingly for qt@5.5 and qt@5.7
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_macos_qt5.sh
$ open liteide/LiteIDE.app
OpenBSD
$ git clone https://github.com/visualfc/liteide.git
$ export QTDIR=/usr/local/lib/qt4
$ cd liteide/build
$ ./update_pkg.sh
$ ./build_openbsd.sh
## Run it: ##
$ export LD_LIBRARY_PATH=$HOME/liteide/build/liteide/bin:$LD_LIBRARY_PATH
$ cd liteide/build/liteide/bin
$ ./liteide
Raspbian Jessie
$ sudo apt-get update
$ sudo apt-get install qt5-default xterm
$ git clone https://github.com/visualfc/liteide.git
$ cd liteide/build
$ ./update_pkg.sh
$ QTDIR=/usr ./build_linux.sh
The build process from a µSD card takes approx. 105 minutes on a RPi 2.
## Run it: ##
$ cd liteide/build/liteide/bin
$ ./liteide
! 请确定设置 QTDIR
(windwos用户是MINGWDIR
) 环境变量。
Fedora 27
$ sudo dnf update
$ sudo dnf install qt-devel
$ git clone https://github.com/visualfc/liteide.git
有疑问加站长微信联系(非本文作者)