NOTE: These instructions are for setup on Ubuntu 14.04 using the terminal. Please feel free to update wherever necessary.
Git setup
Download Git:
sudo apt-get update
sudo apt-get install git
Follow instructions here to setup ssh-keys:
https://help.github.com/articles/generating-ssh-keys/
Download PALISADE Source Code. Run the following commands in a folder of your choice.
git init (intializes an empty git repository)
git clone git@git.njit.edu:palisade/palisade-student-edition.git
Installing cmake
Follow instructions here:
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04
Installing flex and Bison
On your command line run the commands:
sudo apt-get update
sudo apt-get install flex
sudo apt-get install bison
Installing doxygen
NOTE: Before installing doxygen make sure you already installed cmake 2.8.12 or later, flex and bison.
Follow the steps here:
http://www.stack.nl/~dimitri/doxygen/download.html or http://www.stack.nl/~dimitri/doxygen/download.html
Once the installation done, test doxygen. For example, go to cryptolab/palisade-student-edition folder and run 'make apidocs'.
If you see an error like 'error: Problems running epstopdf. Check your TeX installation!', then you need to install any one of the major TeX distributions (say, MiKTeX or TeX Live).
To install TeX Live, run the following command:
sudo apt-get install texlive
After successful installation of Tex Live, repeat Step 2 to ensure there are no errors.
Installing Google Test Framework
Download googletest source:
git clone https://github.com/google/googletest.git
Build and install googletest:
cd googletest/
sudo cmake CMakeLists.txt
sudo make
Copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
sudo cp ./googlemock/gtest/libgtest.a ./googlemock/gtest/libgtest_main.a /usr/lib
Run PALISADE Tests:
Go to the PALISADE folder on your machine. Run 'make alltesttargets' followed by '/test/bin/tests'.