xtensor-zarr
xtensor-zarr copied to clipboard
Unable to compile the example
Tried to follow the example in the documentation and I get an error as follows:
/home/newuser/miniconda3/envs/test_38/include/xtensor-io/xio_vsilfile_wrapper.hpp:4:10: fatal error: cpl_vsi.h: No such file or directory
4 | #include <cpl_vsi.h>
| ^~~~~~~~~~~
compilation terminated.
Steps to reproduce are as follows:
- Create a new environment:
conda create -n test_38 python=3.8 - Install
xtensor-zarras follows:conda install xtensor-zarr -c conda-forge - CMakeLists.txt is here:
add_executable(my_exec my_exec.cpp) target_link_libraries(my_exec PUBLIC xtensor-zarr) - Source for
my_exec.cppis here.
Related issues: #54 in progress.
mamba install -c conda-forge gdal resolves that error for me. But indeed, this package is missing to declare gdal as a dependency in conda ecosystem.
With that fixed, I run into: LINK : fatal error LNK1104: cannot open file 'D:\bld\xtensor-zarr_1619816870026\_h_env\Library\lib\gdal_i.lib'.