Ask Your Question
0

cmake failing with hash mismatch [closed]

asked 2016-11-18 18:51:49 -0600

aliyesami gravatar image

updated 2016-11-18 20:15:44 -0600

berak gravatar image

I am trying to build opencv but cmake is failing with the following error , i have had this before and i could find the files and manually put them on the server but this time this file "bootdesc_bgm.i" is no where to be found , please help. I even upgraded my cmake to 3.0 .

-- Check contents of boostdesc_bgm.i ...
-- Downloading boostdesc_bgm.i...
CMake Error at /root/opencv/cmake/OpenCVUtils.cmake:895 (file):
  file DOWNLOAD HASH mismatch

    for file: [/root/opencv_contrib/modules/xfeatures2d/cmake/.download/0ea90e7a8f3f7876d450e4149c97c74f/boostdesc_bgm.i]
      expected hash: [0ea90e7a8f3f7876d450e4149c97c74f]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [1;"unsupported protocol"]

here is the cmake command i am using

cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_TBB=ON -DBUILD_TBB=ON -DWITH_OPENGL=ON -DWITH_EIGEN=ON -DFFMPEG_INCLUDE_DIR=/usr/local/include -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules -DBUILD_opencv_legacy=OFF ..
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by aliyesami
close date 2016-11-19 18:58:18.287450

Comments

(not an answer, just leaving a note for tomorrow:)https://github.com/opencv/opencv_3rdparty/tree/contrib_xfeatures2d_boostdesc

(also, cmake seems to call curl under the hood, to download those files, problem might be an outdated version of that)

berak gravatar imageberak ( 2016-11-18 20:10:13 -0600 )edit
1

I checked your URL but they are only file names and not the file itself. Can you or someone send me this file please ?
my curl version is :

[admin@hadoop1 atlas]$ curl --version
    curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
    Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
    [admin@hadoop1 atlas]$
aliyesami gravatar imagealiyesami ( 2016-11-18 22:43:19 -0600 )edit

can you take a look at the boostdesc_bgm.i you downloaded ? (i guess, it's html with an error msg inside, while it should be a c++ header)

also, there's a dozen files like that (and unfortunately this site won't let me upload more than 1mb)

the correct url is: curl https://raw.githubusercontent.com/ope...

also: https://github.com/opencv/opencv_cont...

berak gravatar imageberak ( 2016-11-19 01:52:18 -0600 )edit

I replaced the bootdesc_bgm.I with the file from the url you sent and it accepted it . but now its complaining about another file "bootdesc_bgm_bi.I" can you also send me the url for this one as if I google it I get no links . thanks

aliyesami gravatar imagealiyesami ( 2016-11-19 08:10:21 -0600 )edit
1

ok I found all the files at this URL

link text

aliyesami gravatar imagealiyesami ( 2016-11-19 08:28:20 -0600 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2016-11-19 08:29:51 -0600

berak gravatar image

updated 2016-12-19 00:52:17 -0600

ok, so try to load them manually:

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

https://raw.githubusercontent.com/ope...

in the end, it should look like this:

C:\p\opencv_contrib\modules\xfeatures2d\cmake\.download>tree /F

├───0ae0675534aa318d9668f2a179c2a052
│       boostdesc_lbgm.i
│
├───0ea90e7a8f3f7876d450e4149c97c74f
│       boostdesc_bgm.i
│
├───151805e03568c9f490a5e3a872777b75
│       vgg_generated_120.i
│
├───202e1b3e9fec871b04da31f7f016679f
│       boostdesc_binboost_064.i
│
├───232c966b13651bd0e46a1497b0852191
│       boostdesc_bgm_bi.i
│
├───324426a24fa56ad9c5b8e3e0b3e5303e
│       boostdesc_bgm_hd.i
│
├───7126a5d9a8884ebca5aea5d63d677225
│       vgg_generated_64.i
│
├───7cd47228edec52b6d82f46511af325c5
│       vgg_generated_80.i
│
├───98ea99d399965c03d555cef3ea502a0b
│       boostdesc_binboost_128.i
│
├───e6dcfa9f647779eb1ce446a8d759b6ea
│       boostdesc_binboost_256.i
│
└───e8d0dcd54d1bcfdc29203d011a797179
        vgg_generated_48.i
edit flag offensive delete link more

Comments

thanks it worked now you can add your comment as an answer since I don't want to take the credit . I have opened a new case since now the make is failing . :( if you can kindly look at that

aliyesami gravatar imagealiyesami ( 2016-11-19 13:31:38 -0600 )edit

Thank you very much for this manual solution. I experienced the same problem and downloaded them manually. One point I learned was that all of these files need to be downloaded or it errors out again a little later in the make.

FrankGould gravatar imageFrankGould ( 2018-09-25 16:01:24 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-11-18 18:51:49 -0600

Seen: 9,163 times

Last updated: Dec 19 '16