Skip to content

fatal error: mpi.h:No such file or directory (when compile opencv4.6) #3447

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

Open
3 of 4 tasks
LF177 opened this issue Feb 27, 2023 · 1 comment
Open
3 of 4 tasks

fatal error: mpi.h:No such file or directory (when compile opencv4.6) #3447

LF177 opened this issue Feb 27, 2023 · 1 comment
Labels
category: build/install category: hdf duplicate question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/

Comments

@LF177
Copy link

LF177 commented Feb 27, 2023

System Information

OPENCV4.6.0
Ubuntu22.04
GCC 11.3.0

Detailed description

I compile the opencv4.6 and sudo make it then the following error happen:

In file included from /usr/include/hdf5/openmpi/hdf5.h:22,
from /home/lyf/Work/Opencv/opencv_contrib-4.6.0/modules/hdf/src/hdf5.cpp:37:
/usr/include/hdf5/openmpi/H5public.h:63:13: fatal error: mpi.h: No such file or directory
63 | # include <mpi.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [modules/hdf/CMakeFiles/opencv_hdf.dir/build.make:76:modules/hdf/CMakeFiles/opencv_hdf.dir/src/hdf5.cpp.o] error 1
make[1]: *** [CMakeFiles/Makefile2:3885:modules/hdf/CMakeFiles/opencv_hdf.dir/all] error 2

Steps to reproduce

it is a small problem but i can not fix it

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)
@LF177 LF177 added the bug label Feb 27, 2023
@alalek
Copy link
Member

alalek commented Feb 27, 2023

duplicate of #3216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build/install category: hdf duplicate question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/
Projects
None yet
Development

No branches or pull requests

2 participants