Skip to content

Commit 122a1fc

Browse files
committed
v2.0.beta 2 (pre-release)
1 parent 3ca6c95 commit 122a1fc

File tree

4 files changed

+93
-5
lines changed

4 files changed

+93
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,25 +113,30 @@ application.
113113
Building the software
114114
---------------------
115115

116-
**Get the source code**
116+
+ **Make sure your system is up to date**
117+
```sh
118+
sudo apt-get update
119+
```
120+
121+
+ **Get the source code**
117122

118123
You may download the source the code from [gitHub](https://github.com/Danaka-dev/solominer2) or clone the repository
119124
using [Git](https://github.com/git-guides/install-git) :
120125

121126
```sh
122127
sudo apt-get install git build-essential
123-
git clone https://github.com/Danaka-dev/solominer2/solominer2.git
128+
git clone https://github.com/Danaka-dev/solominer2.git
124129
```
125130

126-
**Dependencies**
131+
+ **Dependencies**
127132

128133
The application requires [CMake](http://www.cmake.org/cmake/resources/software.html), [Curl](http://curl.haxx.se/libcurl/), [libjson-cpp](https://github.com/open-source-parsers/jsoncpp) and other packages to be built. They may be installed on Linux as follows:
129134

130135
```sh
131136
sudo apt-get install cmake libcurl4-openssl-dev libjsoncpp-dev libuv1-dev libssl-dev libhwloc-dev
132137
```
133138

134-
**Build and Run**
139+
+ **Build and run**
135140

136141
Navigate to solominer directory and proceed to build as follows:
137142

@@ -150,7 +155,7 @@ sudo ./solominer
150155
```
151156
See notes in section **'Running the software'** above for details on running and configuring solominer
152157

153-
**Using daemon/wallet/core**
158+
+ **Using daemon/wallet/core**
154159

155160
Solominer will communicate with running daemon(s) or wallet(s) (such as MAXE,RTC,RTM...) to provide earnings information,
156161
direct mining on your full node, and automatic mining reward exchange. Make sure your ip port, --rpcuser and --rpcpass

cmake_modules/FindHWLOC.cmake

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
find_path(
2+
HWLOC_INCLUDE_DIR
3+
NAMES hwloc.h
4+
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
5+
PATH_SUFFIXES "include"
6+
NO_DEFAULT_PATH
7+
)
8+
9+
find_path(HWLOC_INCLUDE_DIR NAMES hwloc.h)
10+
11+
find_library(
12+
HWLOC_LIBRARY
13+
NAMES hwloc.a hwloc libhwloc
14+
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
15+
PATH_SUFFIXES "lib"
16+
NO_DEFAULT_PATH
17+
)
18+
19+
find_library(HWLOC_LIBRARY NAMES hwloc.a hwloc libhwloc)
20+
21+
set(HWLOC_LIBRARIES ${HWLOC_LIBRARY})
22+
set(HWLOC_INCLUDE_DIRS ${HWLOC_INCLUDE_DIR})
23+
24+
include(FindPackageHandleStandardArgs)
25+
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARY HWLOC_INCLUDE_DIR)

cmake_modules/FindNUMA.cmake

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Find libnuma
2+
#
3+
# NUMA_FOUND : True if libnuma was found
4+
# NUMA_INCLUDE_DIR : Where to find numa.h & numaif.h
5+
# NUMA_LIBRARY : Library to link
6+
7+
include(FindPackageHandleStandardArgs)
8+
9+
find_path( NUMA_INCLUDE_DIR
10+
NAMES numa.h numaif.h
11+
HINTS ${INCLUDE_INSTALL_DIR}
12+
)
13+
14+
find_library( NUMA_LIBRARY
15+
NAMES libnuma-dev # libnuma.so.1
16+
HINTS ${LIB_INSTALL_DIR}
17+
)
18+
19+
include(FindPackageHandleStandardArgs)
20+
21+
find_package_handle_standard_args( NUMA
22+
REQUIRED_VARS NUMA_INCLUDE_DIR NUMA_LIBRARY
23+
)
24+
25+
mark_as_advanced(
26+
NUMA_INCLUDE_DIR
27+
NUMA_LIBRARY
28+
)

cmake_modules/FindUV.cmake

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
unset(UV_INCLUDE_DIR CACHE)
3+
unset(UV_LIBRARY CACHE)
4+
5+
find_path(
6+
UV_INCLUDE_DIR
7+
NAMES uv.h
8+
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
9+
PATH_SUFFIXES "include"
10+
NO_DEFAULT_PATH
11+
)
12+
13+
find_path(UV_INCLUDE_DIR NAMES uv.h)
14+
15+
find_library(
16+
UV_LIBRARY
17+
NAMES libuv.a uv libuv
18+
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
19+
PATH_SUFFIXES "lib"
20+
NO_DEFAULT_PATH
21+
)
22+
23+
find_library(UV_LIBRARY NAMES libuv.a uv libuv)
24+
25+
set(UV_LIBRARIES ${UV_LIBRARY})
26+
set(UV_INCLUDE_DIRS ${UV_INCLUDE_DIR})
27+
28+
include(FindPackageHandleStandardArgs)
29+
30+
find_package_handle_standard_args(UV DEFAULT_MSG UV_LIBRARY UV_INCLUDE_DIR)

0 commit comments

Comments
 (0)