Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile the example #59

Open
srib opened this issue Jan 12, 2022 · 2 comments
Open

Unable to compile the example #59

srib opened this issue Jan 12, 2022 · 2 comments

Comments

@srib
Copy link

srib commented Jan 12, 2022

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.

@dzenanz
Copy link
Contributor

dzenanz commented Apr 4, 2022

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
Copy link
Contributor

dzenanz commented Apr 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants