-
Notifications
You must be signed in to change notification settings - Fork 7
Building external dependencies for CentOS 7 with Devtoolset
Alexander Koufos edited this page Mar 16, 2019
·
16 revisions
- YASM 1.3.0
- GLEW 2.1.0
- Boost 1.69.0
- Google Test 1.8.1
- JSonCPP 1.8.4
- Zlib 1.2.11
- FFMpeg 3.4.4
- LibJpeg 9c
- LibTiff 4.0.9
- LibPng 1.6.32
- GDAL 2.2.4
- FreeType 2.9
- OpenSceneGraph 3.6.3
For best results, build the dependencies in the order they are listed. Some of them depend on others.
[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.
- 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
- 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
- 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
- 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