Skip to content

Building on Ubuntu 14.04

chrismwendt edited this page Sep 17, 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

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