OpenCV, how to install on Fedora

Hello

I tried:

dnf install opencv

this installed somthing

But then, when build a project in nSight I get #include errors.

There is reading material in the opencv site on how to download source and compile it. But it is pretty complex.

I just want to install it the standard way one installs stuff on Fedora (or Redhat).

does anyone know how to do it?

these are the includes that I need

#include <cv.h>
#include <opencv/highgui.h>
#include <opencv2/core/core_c.h>
#include <opencv2/core/core.hpp>
#include <opencv2/flann/miniflann.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/video/video.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/calib3d/calib3d.hpp>
//#include “opencv2/ml/ml.hpp”
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/contrib/contrib.hpp>

dnf install opencv-devel