Open arthw opened 3 years ago
As ruslo/hunter is obsolete we replace this with cpp-pm/hunter HunterGate( URL "https://github.com/cpp-pm/hunter/archive/v0.23.300.tar.gz" SHA1 "1151d539465d9cdbc880ee30f794864aec11c448" LOCAL )
Please find below mentioned piece of CMakeList.txt. But after this change we ended up with below mentioned error:
CMake Error at src/jsonrpccpp/CMakeLists.txt:144 (add_library): Target "client" links to target "intsizeof::intsizeof" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. CMakeFiles/libjson-rpc-cpp-Release.dir/build.make:94: recipe for target 'libjson-rpc-cpp-Release-prefix/src/libjson-rpc-cpp-Release-stamp/libjson-rpc-cpp-Release-configure' failed make[2]: [libjson-rpc-cpp-Release-prefix/src/libjson-rpc-cpp-Release-stamp/libjson-rpc-cpp-Release-configure] Error 1 make[2]: Leaving directory '/home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp/Build' CMakeFiles/Makefile2:85: recipe for target 'CMakeFiles/libjson-rpc-cpp-Release.dir/all' failed make[1]: [CMakeFiles/libjson-rpc-cpp-Release.dir/all] Error 2 make[1]: Leaving directory '/home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp/Build' Makefile:93: recipe for target 'all' failed make: *** [all] Error 2
[hunter FATAL ERROR ] Build step failed (dir: /home/s2600bottom/.hunter/_Base/1151d53/53fea1f/4646e4e/Build/libjson-rpc-cpp [hunter FATAL ERROR ] [Directory:/home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/projects/libjson-rpc-cpp]
CMake Error at /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message): Call Stack (most recent call first): /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/projects/libjson-rpc-cpp/hunter.cmake:61 (hunter_download) /home/s2600bottom/.hunter/_Base/Download/Hunter/0.23.300/1151d53/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include) CMakeLists.txt:68 (hunter_add_package)
-- Configuring incomplete, errors occurred! See also "/opt/pkg/hostSide/ethminer-fpga/CMakeFiles/CMakeOutput.log".
Anobody has similar issue??? Any Fixes!!!!!!!!!!!!!!!
its work for me: 1 - after make build directory use cmake .. to make .hunter folder in home directory 2 - download boost_1_66_0.7z from this link and put it on .hunter folder (check cmake logs to find location for verify boost files, in my case : ~/.hunter/_Base/Download/Boost/1.66.0/075d0b4 ) 3 - after copy .7z file clear all file in build directory and try cmake .. again
Try this change: 4734802
^^ This is the only change needed to get past this step
The solution works perfectly. Please merge
1.
git clone https://github.com/ethereum-mining/ethminer.git
cd ethminer
git submodule update --init --recursive
2.
edit ethminer/cmake/Hunter/config.cmake
-hunter_config(Boost VERSION 1.66.0)
+hunter_config(Boost VERSION 1.67.0) or may stay 1.66.0 or may 1.xx.0
3.
create e.bat
@echo off
setlocal
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools\VsMSBuildCmd.bat"
set "PERL_PATH=C:\Perl\perl\bin"
set "PATH=%PERL_PATH%;%PATH%"
if not exist "build\" mkdir "build\"
cmake -G "Visual Studio 16 2019" -H. -Bbuild -DETHASHCL=ON -DETHASHCUDA=ON -DAPICORE=ON -DHUNTER_ENABLED=ON -DBINKERN=OFF ..
cmake --build . --config Release --target package
endlocal
pause
run and get
[hunter FATAL ERROR ] Version not found: 1.67.0. Please check 'hunter_config' command.
[hunter FATAL ERROR ] [Directory:C:/.hunter/_Base/Download/Hunter/0.23.112/4b894e1/Unpacked/cmake/projects/Boost]
4.
edit C:.hunter_Base\Download\Hunter\0.23.112\4b894e1\Unpacked\cmake\projects\Boost\hunter.cmake
add next
-set(_hunter_boost_base_url "https://dl.bintray.com/boostorg/release")
+set(_hunter_boost_base_url "https://boostorg.jfrog.io/artifactory/main/release")
+hunter_add_version(
PACKAGE_NAME
Boost
VERSION
"1.67.0"
URL
"${_hunter_boost_base_url}/1.67.0/source/boost_1_67_0.7z"
SHA1
64c278c23defe155e630a307ae2c0615348b14b3
)
How get SHA1 for boost_1.67.0: a) boost download from https://www.boost.org/users/history/ b) in powershell cd ...where_download_boost (Get-FileHash boost_1_67_0.7z -Algorithm SHA1).Hash.ToLower() 5. run e.bat again
Worked for me
and why this hasnt being merged?
I guess this repo needs some more maintainers 🤔
I have this problem also. Is it merged yet?
Why hasn't it merged yet?
same!
I have solved it here #2413 by updating the hunter to the working version All tests are passed, it just needs a review to merge
When build, there is error to prepare hunter:
error: downloading 'https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z' failed
To Reproduce Steps to reproduce the behavior:
cmake .. -DETHASHCL=OFF -DBINKERN=OFF -DUSE_SYS_OPENCL=OFF -DETHASHCUDA=ON
ethminer still use ruslo/hunter which is using old download link of boost. The download link of boost is out of work now. It's the root cause.
Since the ruslo/hunter is not maintained. It's recommended to use https://github.com/cpp-pm/hunter. The link of boost in cpp-pm/hunter is updated with available link.