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

No BLOSC-config.cmake and blosc-config.cmake are available in the Release installation tree. #391

Open
vessokolev opened this issue Dec 18, 2024 · 1 comment

Comments

@vessokolev
Copy link

vessokolev commented Dec 18, 2024

The issue that I am currently encountering pertains 3-rd party software developers. The problem is not related to the quality of the library code -- it works as expected. It is about missing CMake config files in the installation tree. In particular, I cannot get neither blosc-config.cmake nor BLOSCConfig.cmake (the package configuration files) to appear in the installation tree (I presume they should be located under lib64/cmake/Blosc or lib/cmake/Blosc). Shown below are the actual CMake command lines invoked to configure and run the compilation, testing, and installation:

cmake -B build-${COMPILER} \
      -DCMAKE_C_COMPILER=clang \
      -DCMAKE_BUILD_TYPE=Release \
      -DBUILD_TESTS=ON \
      -DPREFER_EXTERNAL_LZ4=ON \
      -DLZ4_INCLUDE_DIR=${LZ4_LOCATION}/include \
      -DLZ4_LIBRARY=${LZ4_LOCATION}/lib64/liblz4.so \
      -DPREFER_EXTERNAL_ZLIB=ON \
      -DZLIB_INCLUDE_DIR=${ZLIB_LOCATION}/include \
      -DZLIB_LIBRARY_RELEASE=${ZLIB_LOCATION}/lib/libz.so \
      -DPREFER_EXTERNAL_ZSTD=ON \
      -DZSTD_INCLUDE_DIR=${ZSTD_LOCATION}/include \
      -DZSTD_LIBRARY=${ZSTD_LOCATION}/lib64/libzstd.so \
      -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}-${COMPILER}

cmake --build build-${COMPILER} -j ${NUM_PAR_COMP} || exit
ctest --test-dir build-${COMPILER} || exit
cmake --install build-${COMPILER} || exit

Note that the messages describing the installation procedure show that neither blosc-config.cmake nor BLOSCConfig.cmake are being installed (while the support file for autotools pkgconfig/blosc.pc is):

Total Test time (real) =  55.16 sec
-- Install configuration: "Release"
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/pkgconfig/blosc.pc
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/include/blosc.h
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/include/blosc-export.h
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so.1.21.6
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so.1
-- Up-to-date: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.so
-- Installing: /opt/software/c-blosc/1/1.21.6-llvm/lib64/libblosc.a

This is the complete log collected during the configuration, compilation, testing, and installation.

Are those package configuration files not intentionally generated, or am I simply missing something here? Note that such files exist in the installation tree of c-blosc2.

Thank you very much in advance for your attention.

@vessokolev vessokolev changed the title No BLOSC-config.cmake or blosc-config.cmake are available in the Release installation tree. No BLOSC-config.cmake and blosc-config.cmake are available in the Release installation tree. Dec 18, 2024
@kalvdans
Copy link
Contributor

Maybe @johnwparent can help out here, we're discussing using LZ4 cmake config files in #386

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