-
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
fatal error: boostdesc_bgm.i: No such file or directory #1301
Comments
Check CMake stdout log - it should warn about failed files downloading. Check CmakeDownloadLog.txt from build folder for details. Currently Similar problem: #1131 |
Many thanks, indeed cmake out shows that all things required by xfeature2d are all download fail:
But, it says unsupported protocol, what this exactly mean? I am able to access internet without doubt. |
the unsupported protocol is https in this case. maybe updating curl (or wget) on your machine already helps, if not so, you could try to download the files manually, e.g.:
(or simply from a webbrowser)
|
Very thanks berak, I'll check it. |
Hi, berak, However another problem occured:
xxfeature2d cannot find cuda.hpp, but I already diabled CUDA. So disappointed. How to get rid of the problem caused by xfeature2d? |
sorry, idk. if you can't solve it, this should probably go into a new issue. |
Hi, berak, I find that all those things needed by xfeature are all failed to download:
How to download them all. It seems this url not end with exactly file name:
I find those file names under opencv/.cache/xfeature2d, but just empty files, I think I have to manually download them, any idea about this? |
Try to use fresh CMake version it should support https protocol (at least for files downloading). |
To note, after I downloaded and pasted the |
same issue。
At the same time, I would like to know these operations is not meant to fix the failure to download the problem?
What operations do I need to be able to compile? |
@berak hello,thanks for your reply,i guess the last filename should be e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i instead of e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i] Meanwhile ,i've tried much time soloving this issues,but still can't pass through,could you help to check and give some advice. /home/shine/Downloads/opencv_contrib-master/modules/xfeatures2d/src/boostdesc.cpp:653:37: fatal error: boostdesc_bgm.i: No such file or directory |
@Firststep2014 , yes there was a typo. (thanks) and you have to run cmake again, so it copies the files from cmake/.downloads to modules/xfeatures2d/src |
@berak OK,thanks,and I've tried copy all the file mannually , it worked |
@Firststep2014 I am facing a similar problem. Can you please tell me which files you manually copied from where to where? |
what is the solution? |
My issue was because of proxy. Solution : Edit: |
With network proxy you can try this too:
|
Hey, I'm new to the compilation game, but I ran into this problem and finally solved it so wanted to share the steps for anyone in the same place. At this point I manually downloaded the boostdesc and vgg files as suggested above. You actually don't have to do much more than lookate the download_with_curl.sh file (that's in your build folder). First ensure the file is executable by running the following command: Now this is where I ran into trouble (took me a while to solve). My extra modules folder which is linked to the xfeatures2d modules is in a seperate file path than the opencv build path. With the above recommendations I made the mistake of copying the boostdesc and vgg folders into opencv/build/modules/xfeatures2d/src that is wrong. You want to copy the two folders to opencv_contrib/modules/xfeatures2d/src That's all folks. Like I said I'm new to this game so sorry if any mistakes. Anyways good luck to you all :-) |
HI, everyone , i got the new issues as follows, although i 've already downloaded files as you guys mentioned above. and copy them to modules/xfeatures2d/src. [ 78%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o |
error: unable to find numeric literal operator \u2018operator""x\u2019 |
i intend to install opencv3.4.0 in raspberry zero pi,by the way. |
This comment has been minimized.
This comment has been minimized.
The same problem. The reason for mine is my cmake does not support protocol which leads to failures in downloading. I used the solution here: https://stackoverflow.com/questions/29816529/unsupported-protocol-while-download-tar-gz-package. That is to rebuild cmake with --system-curl so that it will support protocol and can download files from cmakefiles. Just copy that solution here:
|
My solution:
copy #1301 (comment) into ./dl.txt
your opencv/.cache should look like this: |
hi @BenbenIO , I have manually downloaded all the files above. My file structure is as follows: what should I do next? |
hi @Firststep2014 , so what is the final structure of folder?( |
@Firststep2014 @BenbenIO I solve this problem. |
I pack them up. |
I also meet the same problem, I download them mannually and copy to |
you can search "boostdesc_bgm_xxx.i" in .../opencv/build/CMakeDownloadLog.txt
files like "*.i" exist, but all are empty. |
Thank you for leaving the downloading access for Chinese developers. And it helps a lot! |
I had similar issue, but the reason was manually installed "cmake" which is using internal libcurl (w/o https support) by default. You can find explanation here: |
Let's review this issue, the problem has last more than three years and it's time to end the issue and conclude a satisfactory solution to save programmers' time. Issue RestatementThis issue arises when your CMake fails trying to download the boostdest/vgg packages required by xfeatures2d module. Users would meet the issue either in the procedure of downloading or compiling xfeatures2d. Why?Possible reasons:
Solution@leaf918 's reply resolves my issue quickly. #1301 (comment)
The zip file contains two folders named boostdest and vgg respectively. You would probably find that in your /.cache/xfeatures2d path there are two folders boostdest/vgg which might be either empty or (probably) filled with a series of file with random names. Just unzip the SuggestionIt seems this is a common issue considering the number of replys under this issue. The trouble it made can be regarded as a design leak of opencv build procedure and we'd better schedule to improve the make experience. Changing download link or approach probably would relieve users. |
Looks like this is because of the Chinese National Firewall. The wall prevent user establishes TCP connection to domain raw.githubusercontent.com. After using a proxy, everything goes fine in my experience. |
I am using windows OS, can someone give the solution to the same? I am facing the below error C:\OpenCV_Build\opencv_contrib-4.5.1\modules\xfeatures2d\src\vgg.cpp(490,20): fatal error C1083: Cannot open include fi |
For those of who still suffering from this error. I used a method from link below, which could be a fix: To make it short, append following line into your hosts file:
Then try again. |
nice |
For opencv-4.5.3, when run cmake, it generate You can set proxy to curl in and you can use |
I had a similar issue compiling the opencv.js project with docker, at first sight i thought it was a download issue (proxy?) but the problem was that my shell script hadn't the rights to write to opencv/.cache folder so i added privileges to opencv |
Hello, I am running into similar issues when trying to install opencv on my raspberrypi following this tutorial (https://core-electronics.com.au/guides/object-identify-raspberry-pi/). After running
but I have
EDIT: I also ran |
Using this cmake config:
Just disable some dnn module which need caffe, since I am not installed caffe. But I need xfeatures module which give me those errors. It seems boostdesc.cpp not able to found, but I installed libboost-all-dev.
Any idea about this would be very appreciated, because the exactly same process I have build succeed many times except this. My script build from latest source so I think it might be a recently bug!
The text was updated successfully, but these errors were encountered: