Hi Panji,
I have a docker image setup for this purpose:
https://github.com/remotesensinginfo/docker_builds/blob/master/rsinfo_rsgislib_build/Dockerfile
However, you can also do locally installing a new conda environment:
# Minimum Install
conda install --yes -c au-eoed -c conda-forge python=3.9 gdal geos gsl kealib xerces-c muparser boost-cpp rios
# With more python dependencies
conda install --yes -c au-eoed -c conda-forge python=3.9 gdal geos gsl kealib xerces-c muparser boost-cpp rios scikit-learn scikit-image scikit-optimize imbalanced-learn scikit-plot scikit-fuzzy bayesian-optimization matplotlib pandas geopandas statsmodels h5py scipy shapely networkx sqlalchemy pycurl xgboost lightgbm seaborn numba pip sphinx rtree tqdm jinja2 keras parallel pygal jupyterlab psutil pysal libpysal esda; sync \
# You’d need to update this path for your conda environment
export CONDA_ENV_PATH=/Users/pete/.conda/envs/rsgislib_v5_dev
# You’d need to update the install path
cmake -D CMAKE_INSTALL_PREFIX=/Users/pete/Temp/rsgislib_v5_dev_install \
-D BOOST_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D BOOST_LIB_PATH=$CONDA_ENV_PATH/lib \
-D GDAL_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D GDAL_LIB_PATH=$CONDA_ENV_PATH/lib \
-D HDF5_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D HDF5_LIB_PATH=$CONDA_ENV_PATH/lib \
-D GSL_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D GSL_LIB_PATH=$CONDA_ENV_PATH/lib \
-D MUPARSER_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D MUPARSER_LIB_PATH=$CONDA_ENV_PATH/lib \
-D KEA_INCLUDE_DIR=$CONDA_ENV_PATH/include \
-D KEA_LIB_PATH=$CONDA_ENV_PATH/lib \
-D Python_EXECUTABLE=$CONDA_ENV_PATH/bin/python \
-D Python_INCLUDE_DIR=$CONDA_ENV_PATH/include/python3.9/ \
-D Python_LIBRARY_RELEASE=$CONDA_ENV_PATH/lib/libpython3.9.dylib \
-D CMAKE_VERBOSE_MAKEFILE=ON \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_SKIP_RPATH=ON \
..
To run things you’d need to point python etc. at your local install by exporting the following paths:
export LD_LIBRARY_PATH=/Users/pete/Temp/rsgislib_v5_dev_install/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/Users/pete/Temp/rsgislib_v5_dev_install/lib/python3.9/site-packages:$PYTHONPATH
export PATH=/Users/pete/Temp/rsgislib_v5_dev_install/bin:$PATH
Hope that helps.
Best wishes,
Pete
> --
> You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
rsgislib-suppo...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/rsgislib-support/291f5191-77a5-4fd9-9797-f78c2b15202fn%40googlegroups.com.