Compiling OCSSW
Instructions for CentOS 7
The binaries that we distribute for linux were built on CentOS 6 using gcc 5.3.1 and run without recompiling. We provide the VIIRS libraries since this code is not yet open source.
- Install CentOS 7
- Install cmake 3.11 (the binaries from CMake work fine)
Get a newer compiler. This gives us gcc-9.3.1
yum install centos-release-scl yum install devtoolset-9 yum install bison flex zlib-devel.x86_64 libX11-devel.x86_64 patch scl enable devtoolset-9 bash yum install python3 pip3 install requests
Download install_ocssw and manifest.py to your home directory.
Install OCSSW binaries and source
cd $HOME chmod +x install_ocssw.py ./install_ocssw.py -i ocssw -t 2020.2 --benchmark --src export OCSSWROOT=~/ocssw source $OCSSWROOT/OCSSW_bash.env
Build the third party libraries
cd $OCSSWROOT/opt rm -rf bin include lib share cd src ./BuildIt.py
Build OCSSW
cd $OCSSWROOT/ocssw-src mkdir build cd build cmake .. make -j 20 install
Run the benchmark
cd $OCSSWROOT/benchmark ./seadas_benchmark.bash