isciences / exactextract

Fast and accurate raster zonal statistics
Apache License 2.0
233 stars 31 forks source link

Error with 'make' command #127

Closed automataIA closed 2 weeks ago

automataIA commented 2 weeks ago

I try to reinstall the library. I followed this procedure:

git clone https://github.com/isciences/exactextract
cd exactextract
mkdir cmake-build-release
cd cmake-build-release
pip install pybind11 Sphinx sphinx-autoapi 
pip install sphinx_rtd_theme 
pip install "pybind11[global]"
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
cd ..
pip install . 

but with make give me this error(wsl2, ubuntu):

.........
...............
 98%] Linking CXX shared module exactextract/_exactextract.cpython-310-x86_64-linux-gnu.so
lto-wrapper: warning: using serial compilation of 7 LTRANS jobs
[ 98%] Built target _exactextract
[100%] Generating html
Running Sphinx v7.3.7
making output directory... done

Extension error:
AutoAPI Directory `/home/name/project/exactextract/python/exactextract` not found. Please check your `autoapi_dirs` setting.
make[2]: *** [python/CMakeFiles/python_html.dir/build.make:75: python/html] Error 2
make[1]: *** [CMakeFiles/Makefile2:1040: python/CMakeFiles/python_html.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

How to solve this?

automataIA commented 2 weeks ago

Solved using this: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_CLI=ON -DBUILD_DOC=OFF ..

Some problem in conf.py