-
Notifications
You must be signed in to change notification settings - Fork 5.8k
make error #1131
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
Comments
Could you run |
thanks for reply @StevenPuttemans
and this the output of make -j5
|
So let us reduce this down to the actual error which is
Looking at your CMAKE this is expected to fail, since @alalek could you take a look at this? This seems like an actual bug. |
This include statement is guarded by this condition:
CMake says that xfeatures2d module is not available, so this should not be called. But it is processed... Reviewing of Current workaround is to disable xfeatured2d manually: Reproducer (all downloads are failed): http://pullrequest.opencv.org/buildbot/builders/master-contrib_valgrind-lin64-debug/builds/10013 |
I had the same issue but managed to solve it. As far as I can see, the real problem is caused by the failed downloads:
I believe that in my case this occured because my cmake version had no HTTPS support. To fix this, you have to install or build cmake with HTTPS support. In my case the easiest way was to build
I think that opencv-contrib's cmake should fail with a better error message if there's no HTTPS support. |
Thanks a lot @skvark for your recommendation of rebuilding Cmake with HTTPS support. I was running into the same problems of xfeatures2d not building because the downloads failed. |
Another reason not to download the package could be a network connection through a proxy server. |
Hey, guys sorry to reopen this but I wasn't really sure where else to go. I am having the same problem and did what was suggested by @skvark and the following was the output when running cmake
I think the problem is with the following:
I don't think that " \, " is supposed to be there after "O=GItHub" but I'm not sure how to fix it. Any help would be appreciated |
@Eyenga In your case just comment/delete mentioned line ( |
@alalek Okay, that worked. Thank you my nigga! |
Hi, everyone, I tried @skvark 's methods. However, I met something wrong in my process. The output is
The system is Ubuntu 16.04 and I didn't install cuda. PS: I am not sure whether xfeature2 has the dependency to Cuda and I don't think whether there is a relationship between them. Could you please help me and give me the answer? THX a lot :-) |
Ubuntu uses apt-get, not yum. You'll have to modify the commands, my instructions were for Cent OS 5. |
Yep. Thanks for your answer. And do you know the instructions for Ubuntu 16.04. My instructions are
The output is
I Google these 2 packages and I got little info about them. Do you think whether I can complete the following step without these 2 packages? THX a lot. |
@ElegantLin you need to install the Ubuntu equivalent packages:
|
This may not be the best place to post it, but as I came to this thread when fighting to build OpenCV 3.4.1 + contrib I think it may be useful to others. Please point me to any better place to share this. First I performed the build under Ubuntu 14.04, but this should be replicable with other Linux versions, and the problems I found affect all distributions. There are two problems I found and corrected. I'm unsure about the inclusion problem with CUDA headers pointed by @StevenPuttemans , this may be another issue but I enabled CUDA support and had appropriate headers on my test server, so I did not encountered this one. Here is the command I used to prepare the build:
First problem: cmake-related: lack of SSL support of the integrated libcurl version included in cmakeBy default, cmake ships its own libraries and the libcurl one is built without ssl support Here are the steps I followed:
Many thanks to @Eyenga for the reference to the right development headers for libcurl. More references:
Second problem: OpenCV-related: Lack of support for escape characters during log outputThe error is visible when calling cmake:
There is a problem in The solution is to rewrite the log code to something suitable. I did not want to follow @alalek 's advice because it suppresses the output. A better way is to avoid interpreting string literals by changing the macro to a function. I changed the file
to
More references:
Hoping this may help someone. |
This suppresses the interpretation of string literals by switching the ocv_download_log from a macro to a function. This avoid crashes when the string to log contains escape characters. More details about the problem this PR fixes are available at: opencv/opencv_contrib#1131
Turn off xfeatures2d flag from CMakeLists.txt. It worked for me |
Is it possible to get an absolute answer to this cuda.hpp: No such file or directory? I see all kinds of possible solutions that might take hours to try after I've spent hours with other proxy problems where files are not downloaded and have to be manually. Now it appears either the xfeatures2d flag in CMakeList.txt needs to be turned off but I could not find xfeatures2d in that file. The other solution is to cmake -D BUILD_opencv_xfeatures2d=OFF but that means deleting my build directory and starting everything from scratch. Any suggestions will be greatly appreciated. I am installing OpenCV on Raspbian. I downloaded the cuba.hpp file but do not know where opencv2/xfeatures2d/ folder is located to put the file. |
Hi, i am getting this error while building the project in android studio. #include <opencv2/contrib/detection_based_tracker.hpp> file not found Please help asap. |
@Aashima-Gupta P.S. Off-topic messages will be deleted. |
@alalek http://answers.opencv.org/question/200186/cudahdd-not-found-with-raspbian/ |
I just got 'Download failed: 1;"Unsupported protocol"' error while building opencv in a docker. I am building a docker such that I make a user, then make that user a sudoer so that when my docker starts, I get a user on terminal and not root (which is what you get when you use an ubuntu docker). In this case of a user, we need to run every command with sudo, hence adding that removed the mentioned error. Gist: just try using 'sudo' before CMAKE! |
hi , For details please refer to the download log file: C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt Call Stack (most recent call first): OpenCV Python: during development append to PYTHONPATH: C:/Qt/opencv_cv2/opencv/Release/python_loader For details please refer to the download log file: C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt Call Stack (most recent call first): FFMPEG: Download: opencv_videoio_ffmpeg_64.dll For details please refer to the download log file: C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt Call Stack (most recent call first): FFMPEG: Download: ffmpeg_version.cmake For details please refer to the download log file: C:/Qt/opencv_cv2/opencv/Release/CMakeDownloadLog.txt Call Stack (most recent call first): } |
whene i excute this command make -j5 i got this error
The text was updated successfully, but these errors were encountered: