Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After trying hundreds of different combinations it finally worked!!!

I'm not sure which was the modification responsible for making it work, since in my last attempt I've modified two things:

  1. Instead of /Users/MatheusTorquato/OpenCV/opencv_contrib/modules I've used ~/OpenCV/opencv_contrib/modules (I can't really spot the difference)
  2. I've added ~/OpenCV/main after the "opencv_contrib/modules" path in the OPENCV_EXTRA_MODULES_PATH resulting in:

    -D OPENCV_EXTRA_MODULES_PATH= ~/OpenCV/opencv_contrib/modules ~/OpenCV/main
    

Where ~/OpenCV/opencv_contrib/modules is the opencv_contrib/modules path and ~/OpenCV/main is the OpenCV source directory path.

I've found this information in the file README.md in the opencv_contrib folder:

Here is the CMake command for you:


$ cd <opencv_build_directory>
$ cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>
$ make -j4

erm

After trying hundreds of different combinations it finally worked!!!

I'm not sure which was the modification responsible for making it work, since in my last attempt I've modified two things:

  1. Instead of /Users/MatheusTorquato/OpenCV/opencv_contrib/modules I've used ~/OpenCV/opencv_contrib/modules (I can't really spot the difference)
  2. I've added ~/OpenCV/main after the "opencv_contrib/modules" path in the OPENCV_EXTRA_MODULES_PATH resulting in:

    -D OPENCV_EXTRA_MODULES_PATH= ~/OpenCV/opencv_contrib/modules ~/OpenCV/main
    

Where ~/OpenCV/opencv_contrib/modules is the opencv_contrib/modules path and ~/OpenCV/main is the OpenCV source directory path.

I've found this information in the file README.md in the opencv_contrib folder:

Here is the CMake command for you:


$ cd <opencv_build_directory>
$ cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>
$ make -j4

erm