zarray icon indicating copy to clipboard operation
zarray copied to clipboard

Missing headers for compiling xtensor-zarr

Open hankliu5 opened this issue 4 years ago • 1 comments

Hello all,

I was trying to compile xtensor-zarr but found out that some zarray headers were not installed through make install. Those headers are:

${ZARRAY_INCLUDE_DIR}/zarray/zfunctors.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zarray_impl_register.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zmpl.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zarray_temporary_pool.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zinit.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zreducers.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zreducer.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zreducer_options.hpp
${ZARRAY_INCLUDE_DIR}/zarray/zarray_zarray.hpp

It seems that those missing headers are not used directly in xtensor-zarr, but they are included for internal usages of other zarray headers.

I'm not sure whether it is the intention or not, but installing missing headers like #66 allows me to compile xtensor-zarr successfully.

Also, zarray depends on nlohmann_json, but this library is not mentioned in README/Dependencies.

-Hank

hankliu5 avatar Jul 20 '21 20:07 hankliu5

I'm not sure whether it is the intention or not

This is definitely a bug. We reorganized the code a lot recently and missed that, thanks for finding it (and fixing it)!

JohanMabille avatar Jul 21 '21 07:07 JohanMabille