Execute the following instructions to get Java8 installed
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Download bazel
echo "deb http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add -
Install bazel
sudo apt-get update
sudo apt-get install bazel
Get latest version of Bazel.
sudo apt-get upgrade bazel
For for information: [http://www.bazel.io/docs/install.html]
sudo apt-get install libgoogle-glog-dev libgflags-dev libargtable2-dev cmake
bazel build -c opt //... --cxxopt="-fopenmp" --linkopt="-fopenmp" --cxxopt="-DGTEST_HAS_TR1_TUPLE=0"
In case you see an error, you may need to set java home by calling: export JAVA_HOME=/usr/lib/jvm/java-8-oracle
bazel test -c opt //... --cxxopt="-fopenmp" --linkopt="-fopenmp" --cxxopt="-DGTEST_HAS_TR1_TUPLE=0"
You can also use -c dbg instead of -c opt to run with debug version of the code.
See running details at [http://www.srl.inf.ethz.ch/phog].