Skip to content

Building external dependencies for CentOS 7 with Devtoolset

Alexander Koufos edited this page Mar 16, 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. YASM 1.3.0
  • Download YASM 1.3.0
  • In terminal, go to the folder in which you downloaded the source and run the following:
       unzip yasm-1.3.0.zip
       cd yasm-1.3.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. 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 -DOpenGL_GL_PREFERENCE=GLVND -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=d ../build/cmake
       make -j7 install
       cd ../build-release
       cmake -DCMAKE_INSTALL_PREFIX=/home/username/TR-Ext -DOpenGL_GL_PREFERENCE=GLVND -DCMAKE_BUILD_TYPE=Release ../build/cmake
       make -j7 install
  1. Boost 1.69.0
  • Download Boost 1.69.0
  • In terminal, go to the folder in which you downloaded the source and run the following:
       tar -zxvf boost_1_69_0.tar.gz
       cd boost_1_69_0
       ./bootstrap.sh
       ./b2 tools/bcp
       ./dist/bin/bcp --namespace=trBoost --scan --boost=. $TR_ROOT/src/trBase/UniqueId.cpp $TR_ROOT/include/trBase/UniqueId.h $TR_ROOT/Ext/include
  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_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 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEBUG_POSTFIX=d ../
       make -j7 install
       cd ../build-release
       cmake -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 -DCMAKE_BUILD_TYPE=Release ../
       make -j7 install
  1. Google Test 1.8.1
  • Download Google Test 1.8.1
  • In terminal, go to the folder in which you downloaded the source and run the following:
       tar -zxvf googletest-release-1.8.1.tar.gz
       cd googletest-release-1.8.1
       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. Zlib 1.2.11
  • Download zlib 1.2.11
  • In terminal, go to the folder in which you downloaded the source and run the following:
       unzip zlib-1.2.11.zip
       cd zlib-1.2.11
       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