google-deepmind / google-deepmind/torch-hdf5

Could NOT find HDF5 (missing: HDF5_LIBRARIES) (Required is at least version "1.8")

Open
#93 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
241
Forks
125
PR merge metrics
No merged PRs in 30d

Description

## Thanks for you code ! i meet this error ,could you give me some advice ??

sun@sunwin:~/torch-hdf5$ luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/sun/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/sun/torch/install/lib/luarocks/rocks/hdf5/0-0";
make

-- Found Torch7 in /home/sun/torch/install
CMake Warning (dev) at /home/sun/cmake-3.2.2/Modules/FindHDF5.cmake:211 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "hdf5".
Call Stack (most recent call first):
CMakeLists.txt:4 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at /home/sun/cmake-3.2.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find HDF5 (missing: HDF5_LIBRARIES) (Required is at least version
"1.8")
Call Stack (most recent call first):
/home/sun/cmake-3.2.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
/home/sun/cmake-3.2.2/Modules/FindHDF5.cmake:360 (find_package_handle_standard_args)
CMakeLists.txt:4 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/home/sun/torch-hdf5/build/CMakeFiles/CMakeOutput.log".
make: *** 没有指明目标并且找不到 makefile。 停止。

Error: Build error: Failed building.

I have installed hdf5 1.8.18 in my home and add to ~/.bashrc!!

export PATH=$PATH:/home/sun/hdf5-1.8.18/hdf5

export PATH="$PATH:/usr/local/hdf5"

export HDF5_INCLUDE_DIR="/usr/local/hdf5/include/"

export HDF5_LIBRARIES="/usr/local/hdf5/lib/"

anyone who meet some problem? thanks for you kindness O(∩_∩)O

Contributor guide

Open the contributing guide

Research direction

Start with CMakeLists.txt and the reported FindHDF5.cmake failure, then reproduce the `luarocks make hdf5-0-0.rockspec` command using the paths shown in the issue. Done means CMake completes configuration, generates the build files, and the package build succeeds with HDF5 detected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, lua
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.