Skip to content

Building external dependencies for CentOS 7 with Devtoolset

Alexander Koufos edited this page Feb 22, 2019 · 16 revisions

Building External Dependencies

True Reality v0.1 Dependencies List

For best results, build the dependencies in the order they are listed. Some of them depend on others.

Linux

[Notes]

  • Before running any of the commands below, make sure you are using the correct version of devtoolset you would like to use. This can be done by running . /opt/rh/devtoolset-X/enable, where X is the version number you'd like to use.
  • All install paths in the processes below use /home/username/TR-Ext as the install path. You will have to change the path to match where you would like the installation to take place.
  • You can use any number instead of the 7 in the make -j7 install commands below. This is the number of threads used when compiling.
  1. GLEW 2.1.0
  • Download GLEW 2.1.0
  • In terminal, go to the folder in which you downloaded the source and run the following:
       tar -zxvf glew-2.1.0.tgz
       cd glew-2.1.0
       mkdir {build-release,build-debug}
       cd build-debug
       cmake -DCMAKE_INSTALL_PREFIX=/home/username/TR-Ext -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=d ../
       make -j7 install
       cd ../build-release
       cmake -DCMAKE_INSTALL_PREFIX=/home/username/TR-Ext -DCMAKE_BUILD_TYPE=Release ../
       make -j7 install
  1. Boost 1.66.0
  • Download Boost 1.66.0
  • In terminal, go to the folder in which you downloaded the source and run the following:
       tar -zxvf boost_1_66_0.tar.gz
       cd boost_1_66_0
       ./bootstrap.sh --prefix=/home/username/TR-Ext
       ./b2 --build-type=complete link=shared --layout=versioned threading=multi runtime-link=shared address-model=64 --without-python -j7 install
  1. Jsoncpp 1.8.4
  • Download Jsoncpp 1.8.4
  • In terminal, go to the folder in which you downloaded the source and run the following:
       unzip jsoncpp-1.8.4.zip
       cd jsoncpp-1.8.4
       mkdir {build-release,build-debug}
       cd build-debug
       cmake -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/username/TR-Ext -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF -DJSONCPP_WITH_CMAKE_PACKAGE=OFF ../
       make -j7 install
       cd ../build-release
       cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/username/TR-Ext -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF -DJSONCPP_WITH_CMAKE_PACKAGE=OFF ../
       make -j7 install