Windows 10 CMake | OPENCV_EXTRA_MODULES_PATH | Bug
Open
Nobody has claimed this yet.
bug
category: build/install
priority: low
- Dominant language
- C++
- Stars
- 90.9k
- Forks
- 57k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 112
Description
- OpenCV => Latest Github
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
CMake Error at cmake/OpenCVModule.cmake:368 (_glob_locations):
Syntax error in cmake code at
E:/opencv_github/opencv/cmake/OpenCVModule.cmake:368
when parsing string
E:\opencv_github\opencv_contrib\modules
Invalid character escape '\o'.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
This error is only generated when i set OPENCV_EXTRA_MODULES_PATH,
I have set the path to the modules folder after taking checkout of opencv_contrib.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cmake/OpenCVModule.cmake at line 368 and the call from modules/CMakeLists.txt. Reproduce the configuration on Windows with OPENCV_EXTRA_MODULES_PATH set to the checked-out opencv_contrib modules directory. Done means CMake accepts the path and continues configuring without the invalid character escape error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100