mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-03-12 14:01:16 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
9250971384
commit
75d032844b
@ -5,7 +5,7 @@ if (DEFINED ENV{MONERO_DIR})
|
||||
get_filename_component(MONERO_DIR $ENV{MONERO_DIR} ABSOLUTE)
|
||||
message("Using Monero source from env ${MONERO_DIR}")
|
||||
else()
|
||||
get_filename_component(MONERO_DIR "${CMAKE_SOURCE_DIR}/../bitmonero" ABSOLUTE)
|
||||
get_filename_component(MONERO_DIR "${CMAKE_SOURCE_DIR}/../monero" ABSOLUTE)
|
||||
message("Monero surce directory is not defined, using default ${MONERO_DIR}")
|
||||
endif()
|
||||
|
||||
|
17
README.md
17
README.md
@ -5,7 +5,7 @@ High performance CryptoNote mining stratum written in Golang.
|
||||
**Stratum feature list:**
|
||||
|
||||
* Concurrent shares processing
|
||||
* AES-NI enabled share validation code with fallback to slow implementation provided by linking with [**Monero**](https://github.com/monero-project/bitmonero) libraries
|
||||
* AES-NI enabled share validation code with fallback to slow implementation provided by linking with [**Monero**](https://github.com/monero-project/monero) libraries
|
||||
* Integrated NewRelic performance monitoring plugin
|
||||
|
||||
### Installation
|
||||
@ -13,7 +13,8 @@ High performance CryptoNote mining stratum written in Golang.
|
||||
Dependencies:
|
||||
|
||||
* go-1.6
|
||||
* Everything required to build bitmonero
|
||||
* Everything required to build monero
|
||||
* Monero *v0.9.4* (only to link hashing code with it)
|
||||
|
||||
#### Mac OS X
|
||||
|
||||
@ -23,7 +24,7 @@ Install required packages:
|
||||
export GOPATH=~/go
|
||||
go get github.com/yvasiyarov/gorelic
|
||||
|
||||
Download and compile [Monero](https://github.com/monero-project/bitmonero) daemon.
|
||||
Download and compile [Monero](https://github.com/monero-project/monero) *v0.9.4*.
|
||||
|
||||
Now clone stratum repo and compile it:
|
||||
|
||||
@ -31,9 +32,9 @@ Now clone stratum repo and compile it:
|
||||
cmake .
|
||||
make
|
||||
|
||||
Notice that for share validation stratum requires bitmonero source tree where .a libs already compiled. By default stratum will use <code>../bitmonero</code> directory. You can override this behavior by passing <code>MONERO_DIR</code> env variable:
|
||||
Notice that for share validation stratum requires monero source tree where .a libs already compiled. By default stratum will use <code>../monero</code> directory. You can override this behavior by passing <code>MONERO_DIR</code> env variable:
|
||||
|
||||
MONERO_DIR=/path/to/bitmonero cmake .
|
||||
MONERO_DIR=/path/to/monero cmake .
|
||||
make
|
||||
|
||||
Build stratum:
|
||||
@ -50,13 +51,13 @@ Install required packages:
|
||||
export GOPATH=~/go
|
||||
go get github.com/yvasiyarov/gorelic
|
||||
|
||||
In order to successfully link with bitmonero libs, recompile bitmonero with:
|
||||
In order to successfully link with monero libs, recompile monero with:
|
||||
|
||||
CXXFLAGS="-fPIC" CFLAGS="-fPIC" make release
|
||||
CXXFLAGS="-fPIC" CFLAGS="-fPIC" make
|
||||
|
||||
Build CGO extensions:
|
||||
|
||||
MONERO_DIR=/opt/src/bitmonero cmake .
|
||||
MONERO_DIR=/opt/src/monero cmake .
|
||||
make
|
||||
|
||||
Build stratum:
|
||||
|
@ -13,9 +13,9 @@ include_directories("${MONERO_DIR}/src")
|
||||
add_library(${CXXLIB} SHARED cnutilxx/main.cpp)
|
||||
|
||||
target_link_libraries(${CXXLIB}
|
||||
${MONERO_DIR}/build/release/src/cryptonote_core/libcryptonote_core.a
|
||||
${MONERO_DIR}/build/release/src/crypto/libcrypto.a
|
||||
${MONERO_DIR}/build/release/src/common/libcommon.a
|
||||
${MONERO_DIR}/src/cryptonote_core/libcryptonote_core.a
|
||||
${MONERO_DIR}/src/crypto/libcrypto.a
|
||||
${MONERO_DIR}/src/common/libcommon.a
|
||||
)
|
||||
|
||||
target_link_libraries(${CXXLIB}
|
||||
|
@ -7,5 +7,5 @@ include_directories("${MONERO_DIR}/src")
|
||||
|
||||
add_library(${LIB} SHARED src/hashing.c)
|
||||
target_link_libraries(${LIB}
|
||||
${MONERO_DIR}/build/release/src/crypto/libcrypto.a
|
||||
${MONERO_DIR}/src/crypto/libcrypto.a
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user