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

MOAB has dropped FindMOAB_HDF5 #49

Open
ahnaf-tahmid-chowdhury opened this issue Oct 1, 2024 · 2 comments
Open

MOAB has dropped FindMOAB_HDF5 #49

ahnaf-tahmid-chowdhury opened this issue Oct 1, 2024 · 2 comments

Comments

@ahnaf-tahmid-chowdhury
Copy link
Contributor

Recently, I noticed that after removing FindHDF5_MOAB, DD is unable to automatically detect HDF5.

-- Found MOAB Version: 5.5.1
-- MOAB_LIBRARIES is -L/usr/local/lib64 -lMOAB /usr/local/lib64/libnetcdf.sohdf5-shared/usr/lib64/libcurl.so
-- MOAB_INCLUDE_DIRS is /usr/local/include/usr/include/eigen3
-- Found Embree 4.3.3 at 
-- EMBREE_LIBRARY is /usr/local/lib64/libembree4.so.4
-- EMBREE_INCLUDE_DIRS is /usr/local/include
-- Found Git: /usr/local/bin/git (found version "2.45.2")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
CMake Warning at docs/CMakeLists.txt:15 (message):
  Doxygen is required to build the documentation for double-down.


-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /root/dd/build
[  8%] Building CXX object CMakeFiles/dd.dir/src/primitives.cpp.o
[  4%] Building CXX object CMakeFiles/dd.dir/src/RTI.cpp.o
[ 12%] Building CXX object CMakeFiles/dd.dir/src/MOABRay.cpp.o
[ 16%] Building CXX object CMakeFiles/dd.dir/src/MOABDirectAccess.cpp.o
[ 20%] Linking CXX shared library libdd.so
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: cannot find -lhdf5-shared: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/dd.dir/build.make:147: libdd.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/dd.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

@pshriwise
Copy link
Owner

HDF5 isn't a dependency of double-down directly, but rather a dependency for MOAB. This indicates to me that the problem is in the resulting CMake files provided by the MOAB installation rather than in double-down. The CI here (last run yesterday I believe) also doesn't seem to have trouble compiling with the latest development version of MOAB (presumably a version that also has removed the FindHDF5_MOAB file.

@pshriwise
Copy link
Owner

pshriwise commented Oct 1, 2024

Switching to the CMake targets provided by MOAB might be another option to fix this as well, provided that the targets provide the correct information on the location of their dependencies of course.

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