Skip to content

Allow for building with opencv_contrib - #24

Open
thepaulm wants to merge 1 commit into
jetsonhacks:masterfrom
thepaulm:master
Open

Allow for building with opencv_contrib#24
thepaulm wants to merge 1 commit into
jetsonhacks:masterfrom
thepaulm:master

Conversation

@thepaulm

Copy link
Copy Markdown
  • This is needed for things like ArUco fiducial marker support
  • Build like this: WITH_OPENCV_CONTRIB=YES ./buildOpenCV.sh
  • Version defaults to the OpenCV version

- This is needed for things like ArUco fiducial marker support
- Build like this: WITH_OPENCV_CONTRIB=YES ./buildOpenCV.sh
- Version defaults to the OpenCV version
@yarons

yarons commented Feb 21, 2019

Copy link
Copy Markdown

I tried your patch and got:

CMake Error at cmake/OpenCVModule.cmake:352 (message):
  Duplicated modules NAMES has been found
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:370 (_assert_uniqueness)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

Some sort of duplication which I managed to solve by deleting the folders inside modules which doesn't make any sense (I deleted the one before the error repeatedly).

@thepaulm

Copy link
Copy Markdown
Author

I went back and tried this and I'm getting the same thing you are. I don't really understand how I wasn't seeing this before, other than a guess that it wasn't happening because I wasn't starting from a fresh checkout.

I looked at where it's throwing these errors and I don't understand what cmake is attempting to do right there. I'll look at this as I find time. Thanks for pointing this out.

@dmicha02

Copy link
Copy Markdown

It seems that the opencv-contrib version is not the same as opencv (3.4.1 for Jetson). Your script try to install opencv-contrib 4. Specify the particular version of opencv-contrib in your shell script.

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

Successfully merging this pull request may close these issues.

3 participants