Closed hem-28 closed 2 years ago
The issue is resolved. The findHDF5 cmake module had trouble finding all the required necessary variables. Adding the following to CMakeLists.txt helped
SET ( HDF5_NO_FIND_PACKAGE_CONFIG_FILE TRUE )
SET ( HDF5_INCLUDE_DIRS /usr/include )
SET ( HDF5_LIBRARY_DIRS /usr/include/lib64 )
SET ( HDF5_LIBRARY_DIR /usr/include/lib64 )
SET ( HDF5_CXX_LIBRARIES /usr/include/lib64 )
Thanks!
Hi,
I installed all the dependent packages as suggested, and tried to compile the source code. I end up with the following error. Would anyone be able to help me out here? I use the latest version of HDF5, on a CentOS-7 server system
../lib/libVoxel2TetLib.a(Dream3DDataReader.cpp.o): In function, std::allocator > const&, unsigned int, H5::FileCreatPropList const&, H5::FileAccPropList const&)'
Dream3DDataReader.cpp:(.text+0x56e): undefined reference to `H5::CommonFG::openGroup(std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
Dream3DDataReader.cpp:(.text+0x876): undefined reference to `H5::CommonFG::openDataSet(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
collect2: error: ld returned 1 exit status
make[2]: [bin/Cube] Error 1
make[1]: [bin/CMakeFiles/Cube.dir/all] Error 2
make: *** [all] Error 2
voxel2tet::Dream3DDataReader::LoadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': Dream3DDataReader.cpp:(.text+0x4e3): undefined reference to
H5::H5File::H5File(std::cxx11::basic_string<char, std::char_traitsThank You!