xtensor-zarr icon indicating copy to clipboard operation
xtensor-zarr copied to clipboard

Unable to compile the example

Open srib opened this issue 4 years ago • 2 comments

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:

  1. Create a new environment: conda create -n test_38 python=3.8
  2. Install xtensor-zarr as follows: conda install xtensor-zarr -c conda-forge
  3. CMakeLists.txt is here:
    add_executable(my_exec my_exec.cpp)
    target_link_libraries(my_exec PUBLIC xtensor-zarr)
    
  4. Source for my_exec.cpp is here.

Related issues: #54 in progress.

srib avatar Jan 12 '22 17:01 srib

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.

dzenanz avatar Apr 04 '22 21:04 dzenanz

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'.

dzenanz avatar Apr 05 '22 15:04 dzenanz