-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
dnn and xfeatures2d cmake ocv_download needs PACKAGE instead of FILENAME #1100
Comments
Great thanks! I am stuck with this issue for hours today. This solves my problem. |
This is non fresh OpenCV code.
Looks like, this is the latest opencv_contib code. You should keep codebases synchronized. |
alalek, |
This configuration is not synchronized.
|
Where do you even see the tags at?? Nevermind, I'll find a github book. The ZIP link is what I needed, I guess; I wish it were more prominent, like being able to download ZIPs from the OpenCV site. Thanks for that; I'll close the defect and try to learn more about Git. Too many VCS's to learn. |
@alalek Thanks. How can I synchronize the configuration? |
Thanks. very useful. System information |
in opencv_contrib/modules/dnn_modern/CMakeLists.txt, there is an ocv_download, too. ALSO NEED TO CHANGE FILENAME TO PACKAGE |
Master is broken and this is BAD! Try to download master and you'll reproduce the issue, |
@alalek OK, seems like I now understand what is the problem. I use different sources codebase for open cv and contrib library. Thanks. |
I used opencv 3.2.0, ubuntu 14.04, lastest opencv_contrib. And I used command: cmake -DOPENCV_EXTRA_MODULES_PATH=~/opencv-3.2.0/opencv_contrib/modules/ -DBUILD_opencv_legacy=OFF ~/opencv-3.2.0/ But still error: Can you tell me why? or how to check. Thanks |
Incompatible configuration. You should change opencv to the latest version or opencv_contrib to 3.2.0. Keep these codebases synchronized with the same version. |
@alalek Can you tell me where "Incompatible configuration."? |
You should clone not master but tag 3.2 from github. |
|
System information (version)
Detailed description
When configuring opencv with opencv_contrib, the configure fails on the dnn and xfeatures2d modules. The CMake files use FILENAME in the call to ocv_download, but should use PACKAGE as specified in the opencv. This generates the following errors. I've replicated this on Mac OS X and on Windows 7 using CMake-gui.
Downloading ...
CMake Error at /Users/Documents/opencv/source/opencv-3.2.0/cmake/OpenCVUtils.cmake:1045 (file):
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
CMake Error at /Users/Documents/opencv/source/opencv-3.2.0/cmake/OpenCVUtils.cmake:1049 (message):
Failed to download . Status=
Call Stack (most recent call first):
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
/Users/Documents/opencv/source/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)
Files that use FILENAME instead of PACKAGE:
opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake
opencv_contrib-master/modules/xfeatures2d/cmake/download_boostdesc.cmake
opencv_contrib-master/modules/xfeatures2d/cmake/download_vgg.cmake
Steps to reproduce
Using cmake-gui
The text was updated successfully, but these errors were encountered: