Open mzakharo opened 3 years ago
Have same error
Describe the bug Ethminer link error due to missing Boost::filesystem.
To Reproduce
mkdir -p ./bin && cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCL=OFF -DAPICORE=OFF -DBINKERN=OFF -H. -Bbin && cmake --build bin -- -j8
Environment
Operating System: nvcr.io/nvidia/cuda:11.2.1-devel-ubuntu20.04 Hardware: GTX 1080 Ethminer Version: git cuda11 Ethminer options used - N/A
I'm looking for solution, will update later.
Found a solution.
Need to add Boost::filesystem
to target_link_libraries()
to line 15 of ethminer/libhwmon/CMakeLists.txt
. Looks like this for me:
target_link_libraries(hwmon ${HWMON_LINK_LIBRARIES} Boost::filesystem)
Should i make a PR if i don't understand how it works? :smile:
add Boost::filesystem to target_link_libraries(),
target_link_libraries(hwmon ${HWMON_LINK_LIBRARIES} Boost::filesystem)
thank vahriinYes, it works for me. And I need remove all build files, then cmake again
Describe the bug Ethminer link error due to missing Boost:filesystem.
To Reproduce
cmake --build
Additional context Adding 'Boost:filesystem to ethminer/CMakeLists.txt does not help:
I was able to manually install system
sudo apt install libboost-filesystem-dev
and link ethminer successfully by tweaking the link command and running it on the console, however, this solution seems rather hackish.