Public b2nd.h includes blosc-private.h, which is not installed by CMake
cgohlke opened this issue · 2 comments
cgohlke commented
I get the following compiler error when compiling source code that includes the public "b2nd.h" header (for example, imagecodecs/blosc2.pxd):
b2nd.h(30): fatal error C1083: Cannot open include file: 'blosc-private.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Line 30 in c6e8bf6
blosc2-c 2.13.0 was built with Visual Studio 2022 and CMake 3.28.1 on Windows. The relevant lines from the CMake install command are:
-- Install configuration: "Release"
-- Installing: D:/Build/_vc17-x64/include/blosc2.h
-- Installing: D:/Build/_vc17-x64/include/b2nd.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/blosc2-export.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/blosc2-common.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/blosc2-stdio.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/filters-registry.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/codecs-registry.h
-- Installing: D:/Build/_vc17-x64/include/blosc2/tuners-registry.h
blosc-private.h
is not installed. After manually installing the header file the compilation succeeds.
martaiborra commented
With the latest release (2.13.1) this should be fixed.
cgohlke commented
Thank you.