Skip to content

Building on Ubuntu 14.04

zenny edited this page Nov 18, 2014 · 23 revisions

Base dependencies

Dependency Python 3.4 Oniguruma Git Mercurial Go 1.2
Command sudo apt-get install python3.4 libonig2 libonig-dev git mercurial golang

Downloading backend and setting up environment

Backend will be automatically downloaded as frontend's dependency.

export GOPATH=~/golang

Dependencies will be downloaded to this folder (see PKG_CONFIG_PATH later).

Building command-line frontend: termbox

Install required libraries

sudo apt-get install libonig-dev python3-dev

Download termbox

export PKG_CONFIG_PATH=$GOPATH/src/github.com/limetext/rubex  
go get -u github.com/limetext/lime/frontend/termbox  
cd $GOPATH/src/github.com/limetext/lime
git submodule update --init

Build and run termbox

cd $GOPATH/src/github.com/limetext/lime/frontend/termbox  
go build
./termbox main.go

Building QML frontend: qml

Install required libraries

sudo apt-get install g++ libqt5qml-graphicaleffects libqt5opengl5-dev qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-controls-plugin qtdeclarative5-quicklayouts-plugin qtdeclarative5-qtquick2-plugin qtdeclarative5-dialogs-plugin qtdeclarative5-window-plugin

Download qml

export PKG_CONFIG_PATH=$GOPATH/src/github.com/limetext/rubex 
go get -u github.com/limetext/lime/frontend/qml  
cd $GOPATH/src/github.com/limetext/lime  
git submodule update --init

Build and run qml

cd $GOPATH/src/github.com/limetext/lime/frontend/qml  
go run main.go