opencv / opencv/opencv

Windows 10 CMake | OPENCV_EXTRA_MODULES_PATH | Bug

Open
#11,655 18 comments 0 reactions 0 assignees View on GitHub

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.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.