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.

  1. Install CentOS 7
  2. Install cmake 3.11 (the binaries from CMake work fine)
  3. 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
  4. Download install_ocssw and manifest.py to your home directory.

  5. 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
  6. Build the third party libraries

    cd $OCSSWROOT/opt
    rm -rf bin include lib share
    cd src
  7. Build OCSSW

    cd $OCSSWROOT/ocssw-src
    mkdir build
    cd build
    cmake ..
    make -j 20 install
  8. Run the benchmark

    cd $OCSSWROOT/benchmark