- cmake (>= 3.14)
- C++-11 compatible compiler (gcc >= 5.0)
- GDAL (>= 3.x)
- Armadillo
- Lapack + Blas or similar implementation like openblas
- Python (>= 3.7)
- Cython
#clang compiler
> sudo port install clang-8.0
> sudo port select clang mp-clang-8.0
#Python and cython
> sudo port install python37 py37-cython
#Armadillo
> sudo port install armadillo
#gdal
> sudo port install gdal py37-gdal
#cmake
> sudo port install cmake
You will also need to install isce2 for using the workflows.
Armadillo installation should also install BLAS + Lapack.
Make sure the C++ compiler is new enough, otherwise, install the latest version using conda, i.e. conda install gxx_linux-64
or conda install clangxx_osx-64
. The latter will set an env variable ${CXX}
to the installed compiler.
Then the requirements file is as follows:
cmake
python
cython
gdal
libgdal
armadillo
isce2
The src, build and install folders need to be separate.
> mkdir install build src
> cd src
> git clone https://github.com/isce-framework/fringe.git
In the build folder
> cd build
#On OSX
> CXX=clang++ cmake -DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_INSTALL_PREFIX=../install ../src/fringe
#On Linux
> CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe
#If "conda install gxx_linux-64 / clangxx_osx-64"
> CXX=${CXX} cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe
> make all
> make install
Set the following variables after installation
export PATH=$PATH:$ISCE_HOME/bin:$ISCE_HOME/applications:path-to-install-folder/bin
export PYTHONPATH=$PYTHONPATH:path-to-install-folder/python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path-to-install-folder/lib