Skip to content
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

Ubuntu 18 compilation error: SHA1 mismatch #732

Closed
swkonz opened this issue Nov 8, 2018 · 2 comments
Closed

Ubuntu 18 compilation error: SHA1 mismatch #732

swkonz opened this issue Nov 8, 2018 · 2 comments

Comments

@swkonz
Copy link

swkonz commented Nov 8, 2018

After a clean clone of the repo I run: cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -DDRISHTI_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release

This throws an error when trying to clone the hunter manager. The output of the command is as follows:

➜  drishti git:(master) cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -DDRISHTI_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release
HUNTER_RUN_UPLOAD: OFF
-- [hunter *** DEBUG *** 2018-11-07T23:17:58] HUNTER_ROOT set using HOME environment variable
-- [hunter *** DEBUG *** 2018-11-07T23:17:58] HUNTER_ROOT: /home/sean/.hunter
-- [hunter *** DEBUG *** 2018-11-07T23:17:58] Locking directory: /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2
-- [hunter *** DEBUG *** 2018-11-07T23:17:58] Lock done
-- [hunter *** DEBUG *** 2018-11-07T23:17:58] Run generate
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/Build
-- [hunter] Initializing Hunter workspace (f58bcf274f29097ac380bfe4955d2a66f077e741)
-- [hunter]   https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz
-- [hunter]   -> /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2
Scanning dependencies of target Hunter
[ 12%] Creating directories for 'Hunter'
[ 25%] Performing download step (download, verify and extract) for 'Hunter'
-- verifying file...
       file='/home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz'
-- SHA1 hash of
    /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz
  does not match expected value
    expected: 'f58bcf274f29097ac380bfe4955d2a66f077e741'
      actual: 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='/home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz'
   timeout='none'
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retrying...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
^C
➜  drishti git:(master) cmake -H. -B_builds -DHUNTER_STATUS_DEBUG=ON -DDRISHTI_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release
HUNTER_RUN_UPLOAD: OFF
-- [hunter *** DEBUG *** 2018-11-07T23:19:54] HUNTER_ROOT set using HOME environment variable
-- [hunter *** DEBUG *** 2018-11-07T23:19:54] HUNTER_ROOT: /home/sean/.hunter
-- [hunter *** DEBUG *** 2018-11-07T23:19:54] Locking directory: /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2
-- [hunter *** DEBUG *** 2018-11-07T23:19:54] Lock done
-- [hunter *** DEBUG *** 2018-11-07T23:19:54] Run generate
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/Build
-- [hunter] Initializing Hunter workspace (f58bcf274f29097ac380bfe4955d2a66f077e741)
-- [hunter]   https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz
-- [hunter]   -> /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2
Scanning dependencies of target Hunter
[ 12%] Creating directories for 'Hunter'
[ 25%] Performing download step (download, verify and extract) for 'Hunter'
-- verifying file...
       file='/home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz'
-- SHA1 hash of
    /home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz
  does not match expected value
    expected: 'f58bcf274f29097ac380bfe4955d2a66f077e741'
      actual: 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='/home/sean/.hunter/_Base/Download/Hunter/0.23.14/f58bcf2/v0.23.14.tar.gz'
   timeout='none'
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retrying...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz'
CMake Error at Build/Hunter-prefix/src/Hunter-stamp/download-Hunter.cmake:159 (message):
  Each download failed!

    error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         error: downloading 'https://github.com/ruslo/hunter/archive/v0.23.14.tar.gz' failed
         status_code: 1
         status_string: "Unsupported protocol"
         log:
         --- LOG BEGIN ---
         Protocol "https" not supported or disabled in libcurl

  Closing connection -1

  

         --- LOG END ---
         
    


CMakeFiles/Hunter.dir/build.make:89: recipe for target 'Hunter-prefix/src/Hunter-stamp/Hunter-download' failed
make[2]: *** [Hunter-prefix/src/Hunter-stamp/Hunter-download] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/Hunter.dir/all' failed
make[1]: *** [CMakeFiles/Hunter.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

[hunter ** INTERNAL **] Build project failed
[hunter ** INTERNAL **] [Directory:/home/sean/Documents/Invicted/Development/drishti/src/examples/drishti-upload]

------------------------------ WIKI -------------------------------
    https://github.com/ruslo/hunter/wiki/error.internal
-------------------------------------------------------------------

CMake Error at src/examples/cmake/HunterGate.cmake:87 (message):
Call Stack (most recent call first):
  src/examples/cmake/HunterGate.cmake:97 (hunter_gate_wiki)
  src/examples/cmake/HunterGate.cmake:346 (hunter_gate_internal_error)
  src/examples/cmake/HunterGate.cmake:510 (hunter_gate_download)
  src/examples/drishti-upload/init.cmake:50 (HunterGate)
  src/examples/cmake/include/init.cmake:64 (include)
  CMakeLists.txt:6 (include)


-- Configuring incomplete, errors occurred!

There appears to be a SHA1 mismatch between the cloned package and the desired package. I tried to change this manually, but I wasn't able to find the original source location of the expected SHA. I also tried downloading the hunter package directly and still did not have any success here. Am I compiling this incorrectly?

My goal is to run the desktop examples on some testing videos using the native desktop apps in src/example/facefilter. If there is a better way to compile the examples for this purpose, instructions would be appreciated.

@ruslo
Copy link
Collaborator

ruslo commented Nov 8, 2018

status_string: "Unsupported protocol"

See https://docs.hunter.sh/en/latest/faq/how-to-fix-download-error.html

@swkonz
Copy link
Author

swkonz commented Nov 8, 2018

This worked. The solution was following this link: https://github.com/ruslo/hunter/issues/328#issuecomment-198672048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants