elucideye / drishti

Real time eye tracking for embedded and mobile devices.
BSD 3-Clause "New" or "Revised" License
392 stars 82 forks source link

Ubuntu 18 compilation error: SHA1 mismatch #732

Closed swkonz closed 6 years ago

swkonz commented 6 years ago

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 commented 6 years ago

status_string: "Unsupported protocol"

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

swkonz commented 6 years ago

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