doublec / bitcoin-pool Goto Github PK
View Code? Open in Web Editor NEWImport of puddinpop's bitcoin remote pooled mining code
Home Page: http://www.bluishcoder.co.nz/bitcoin-pool/
License: Other
Import of puddinpop's bitcoin remote pooled mining code
Home Page: http://www.bluishcoder.co.nz/bitcoin-pool/
License: Other
Here is the set of changes that were needed to build on my openSuse system (I also had to rebuild libdb without "disable-cxx"). Not all is good, but I thought this might help someone.
From f4cdc43302a58c71999cdfe9e1598864eca8de1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=ABl=20Schaerer?= <[email protected]>
Date: Thu, 9 Dec 2010 17:02:55 +0100
Subject: [PATCH] fixes for opensuse
---
CMakeLists.txt | 3 ++-
src/gpucommon/gpurunner.h | 3 +++
src/headers.h | 5 ++++-
src/util.h | 2 +-
4 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5857037..03c640c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,7 +111,8 @@ ENDIF(DB_INCLUDE_DIR)
IF(BITCOIN_ENABLE_CUDA)
FIND_PACKAGE(CUDA REQUIRED)
IF(CUDA_FOUND)
- INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS})
+ INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS}
+ ${CUDA_SDK_ROOT_DIR}/C/common/inc/)
ENDIF(CUDA_FOUND)
ENDIF(BITCOIN_ENABLE_CUDA)
diff --git a/src/gpucommon/gpurunner.h b/src/gpucommon/gpurunner.h
index ca4fdde..ed84525 100644
--- a/src/gpucommon/gpurunner.h
+++ b/src/gpucommon/gpurunner.h
@@ -1,5 +1,8 @@
#ifndef _bitcoin_gpu_runner_
#define _bitcoin_gpu_runner_
+#include <sstream>
+#include <map>
+extern std::map<std::string, std::string> mapArgs;
template <class STEPTYPE,class DEVICECOUNTTYPE>
class GPURunner
diff --git a/src/headers.h b/src/headers.h
index 99dffe4..19eab29 100644
--- a/src/headers.h
+++ b/src/headers.h
@@ -43,7 +43,10 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <openssl/ripemd.h>
-#include <db_cxx.h>
+
+#define HAVE_CXX_STDHEADERS
+#include <db4/db_cxx.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
diff --git a/src/util.h b/src/util.h
index 2ad2980..8ed0711 100644
--- a/src/util.h
+++ b/src/util.h
@@ -27,7 +27,7 @@ typedef unsigned long long uint64;
#define UBEGIN(a) ((unsigned char*)&(a))
#define UEND(a) ((unsigned char*)&((&(a))[1]))
#define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0]))
-#define printf OutputDebugStringF
+//#define printf OutputDebugStringF
#ifdef snprintf
#undef snprintf
--
1.7.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.