-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Error at: xobjdetect/CMakeLists.txt:6 (add_subdirectory) - OpenCV 5.0.0-alpha #3861
Comments
Alright, seems like there was some error in OpenCV core and OpenCV contrib folders, for which there was some mismatch in version contents and wasn't properly downloaded. So I properly downloaded both the git sources and now seem to get no errors. OpenCV Core:
OpenCV Extra Modules:
|
Actually this did not solved the issue, seems like I get the issue back once I start enabling If I disable |
Yes,when BUILD_opencv_world is checked,the error come out,but if disable BUILD_opencv_world ,there will be lots of dlls |
(I’m sorry there are no test environment on my PC. ) It looks like 'CMAKE_CURRENT_SOURCE_DIR' should be added in LINE6 .
set(the_description "Object detection algorithms")
ocv_define_module(xobjdetect opencv_core opencv_imgproc opencv_imgcodecs opencv_features WRAP python java objc js)
if (BUILD_opencv_apps AND NOT APPLE_FRAMEWORK)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tools ${CMAKE_CURRENT_BINARY_DIR}/tools)
endif()
- add_subdirectory(data)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/data ${CMAKE_CURRENT_BINARY_DIR}/data) |
I can reproduce this problem in Ubuntu 24.11. If only set
So - add_subdirectory(data)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/data ${CMAKE_CURRENT_BINARY_DIR}/data) |
|
I was able to confirm that my patch works well. I have created a pull request. |
Hello,
Trying to build OpenCV using CMake GUI.
Performed the following:
I get an error for xobjdetect module during config build process.
Here is the tree for the xobjdetect module:
Here is the CMake error:
What could be issue?
Thanks.
The text was updated successfully, but these errors were encountered: