Skip to content

Latest commit

 

History

History
86 lines (65 loc) · 3.54 KB

dependencies.md

File metadata and controls

86 lines (65 loc) · 3.54 KB

Dependencies

chiventure requires the following software/libraries:

CMake will warn if any of these are not installed with an error of the form "Could NOT find <library>"

Right now, chiventure has only been tested on Linux. The following installation instructions are specifically for Ubuntu 16.04, and may require adjustments in other platforms.

Installing CMake

Ubuntu 16.04 includes an older version of CMake, so you will need to follow the instructions in the Kitware APT Repository to install the latest version of CMake.

Installing protobuf and protobuf-c

Protobuf (and protobuf-c) are data serialization libraries.

Run the following to install protobuf:

wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar xvzf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1/
./configure --prefix=/usr
make
sudo make install

And the following to install protobuf-c:

wget https://github.com/protobuf-c/protobuf-c/releases/download/v1.2.1/protobuf-c-1.2.1.tar.gz
tar xvzf protobuf-c-1.2.1.tar.gz
cd protobuf-c-1.2.1/
./configure --prefix=/usr
make
sudo make install

Please note the use of --prefix=/usr. If you omit this parameter, the libraries will be installed in /usr/local/lib, which can cause problems on some systems. If you encounter an error like this:

error while loading shared libraries: libprotoc.so.N: cannot open shared object file:
                                                                       No such file or directory

you will need to explicitly add /usr/local/lib (or any alternate prefix you specify when installing) to the LD_LIBRARY_PATH environment variable:

export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib

Installing LibYAML

LibYAML is a YAML parser and emitter library.

To install, download the source package from here

To build and install LibYAML, in the folder you downloaded the .tar.gz file in, run

tar -xvf <yaml tarball name>
cd <newly created yaml folder>
./configure
make
sudo make install

Installing ncurses

Curses is a terminal UI framework. You can install it by running:

sudo apt-get install libncurses5-dev libncursesw5-dev

Installing criterion

Criterion is a testing framework for C/C++. You can install it by running the following:

sudo add-apt-repository ppa:snaipewastaken/ppa
sudo apt-get update
sudo apt-get install criterion-dev

Note: if you are on an unsupported ubuntu release for Criterion (like ubuntu 19), you can try to add a different release repository to your apt sources. To do so, open software updater, click the "Other Software" tab, and click the "Add" button. Then, add the line deb http://ppa.launchpad.net/snaipewastaken/ppa/ubuntu cosmic main (to add the Ubuntu 18 version) as the source. You should probably remove the source afterwards, since it's a different Ubuntu release and might cause issues the next time you use apt.