Skip to content

Building: Ubuntu 12.0

Craig Minihan edited this page Dec 29, 2016 · 11 revisions

The compiler that ships with Ubuntu 12.0 is too old to build libjsapi. Update it as follows:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update

You should run the following script to install the required packages:

sudo apt-get install curl wget unzip bzip2 pkg-config zlib1g-dev
sudo apt-get install make autoconf automake libtool git
sudo apt-get install autoconf2.13 
sudo apt-get install gcc-4.9 g++-4.9

Clone the repository into a suitable directory:

git clone --recursive https://github.com/RipcordSoftware/libjsapi.git

Now build:

cd libjsapi
make CC=gcc-4.9 CXX=g++-4.9