-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Compilation fails when compiling opencv_hdf with MPI #3858
Comments
I have a slight recollection that I investigated the likely problem before. HDF module uses opencv_contrib/modules/hdf/CMakeLists.txt Lines 19 to 21 in 3e776c8
https://cmake.org/cmake/help/latest/module/FindHDF5.html
But there are some trouble with hdf5-openmpi or hdf5-mpich instead of hdf5-serial. |
I found old my work, but it seems not good solution I think new option to switch reference
|
Thank you for waiting, I believe this problem will be fixed with my patch . Memo: I tried using So I use |
System Information
OpenCV version: 4.7.0 (also tested with 4.10.0)
Operating System: Ubuntu 22.04 (also tested with 24.04)
Compiler version: GCC 11.4.0 (also tested with 13.3.0)
CMake version: 3.22 (also tested with 3.28)
Detailed description
Dear OpenCV community,
When compiling opencv with opencv_contrib with the cmake flag
-DHDF5_PREFER_PARALLEL=ON
and the compilation reaches theopencv_hdf
module, the compilation fails with the following error:When changing the cmake flag to
-DHDF5_PREFER_PARALLEL=OFF
, then the compilation of theopencv_hdf
module succeeds.libopenmpi-dev is installed on my system and I successfully compiled a test program on my system that includes the
mpi.h
file located on my system at/usr/lib/x86_64-linux-gnu/openmpi/include
(albeit with thempic++
script, not simply the gcc/g++ compiler), so the issue does not seem to lie with the file not existing on my system.I also tried to edit the CMakeLists.txt file in
opencv_contrib/modules/hdf/CMakeLists.txt
and add the directory wherempi.h
lies to theHDF5_INCLUDE_DIRS
variable, but this also did not help with the compilation; still the same error as above.How should I solve this issue? 😄
Steps to reproduce
Issue submission checklist
The text was updated successfully, but these errors were encountered: