Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

opencl build on debian testing with system dependencies #2306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ethminer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)

include_directories(BEFORE ..)
include_directories(${jsoncpp_INCLUDE_DIR})
include_directories(${OpenCL_INCLUDE_DIR})

set(EXECUTABLE ethminer)

Expand Down
1 change: 1 addition & 0 deletions libapicore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ set(SOURCES
add_library(apicore ${SOURCES})
target_link_libraries(apicore PRIVATE ethcore devcore ethminer-buildinfo Boost::filesystem)
target_include_directories(apicore PRIVATE ..)
include_directories(${jsoncpp_INCLUDE_DIR})
2 changes: 2 additions & 0 deletions libethash-cl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ else()
endif()

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${jsoncpp_INCLUDE_DIR})
include_directories(${OpenCL_INCLUDE_DIR})
include_directories(..)

add_library(ethash-cl ${SOURCES})
Expand Down
2 changes: 2 additions & 0 deletions libethcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set(SOURCES
)

include_directories(BEFORE ..)
include_directories(${jsoncpp_INCLUDE_DIR})
include_directories(${OpenCL_INCLUDE_DIR})

add_library(ethcore ${SOURCES})
target_link_libraries(ethcore PUBLIC devcore ethash::ethash PRIVATE hwmon)
Expand Down
2 changes: 1 addition & 1 deletion libethcore/Farm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void Farm::restart()
*/
void Farm::restart_async()
{
m_io_strand.get_io_service().post(m_io_strand.wrap(boost::bind(&Farm::restart, this)));
m_io_strand.context().post(m_io_strand.wrap(boost::bind(&Farm::restart, this)));
}

/**
Expand Down
3 changes: 2 additions & 1 deletion libpoolprotocols/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ hunter_add_package(OpenSSL)
find_package(OpenSSL REQUIRED)

add_library(poolprotocols ${SOURCES})
target_link_libraries(poolprotocols PRIVATE devcore ethminer-buildinfo ethash::ethash Boost::system jsoncpp_lib_static OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(poolprotocols PRIVATE devcore ethminer-buildinfo ethash::ethash Boost::system jsoncpp_lib OpenSSL::SSL OpenSSL::Crypto)
target_include_directories(poolprotocols PRIVATE ..)
include_directories(${jsoncpp_INCLUDE_DIR})
1 change: 1 addition & 0 deletions libpoolprotocols/getwork/EthGetworkClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using namespace std;
using namespace dev;
using namespace eth;
using namespace boost::placeholders;

using boost::asio::ip::tcp;

Expand Down
2 changes: 1 addition & 1 deletion libpoolprotocols/stratum/EthStratumClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/lockfree/queue.hpp>

#include <json/json.h>
Expand Down