What kind of compiling issues do you have? Post them here -including the GPU used so we can see if the CCAP matches- and we'll try to assist.
I wasn't even trying to install GPU drivers (yet). This is what I get:
~/VanitySearch-master$ make
cd obj && mkdir -p GPU
cd obj && mkdir -p hash
g++ -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/main.o -c main.cpp
In file included from main.cpp:18:
Timer.h:36:10: error: ‘uint32_t’ does not name a type
36 | static uint32_t getSeed32();
| ^~~~~~~~
Timer.h:23:1: note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’?
22 | #include
+++ |+#include
23 | #ifdef WIN64
Timer.h:37:27: error: ‘uint32_t’ has not been declared
37 | static void SleepMillis(uint32_t millis);
| ^~~~~~~~
main.cpp: In function ‘int main(int, char**)’:
main.cpp:372:16: error: ‘getSeed32’ is not a member of ‘Timer’
372 | rseed(Timer::getSeed32());
| ^~~~~~~~~
make: *** [Makefile:70: obj/main.o] Error 1
I opened a new topic yesterday:
Question: what is currently the best software for generating vanity addresses?. I'll continue with the suggestions posted there.
Hey Loyce,
since this fits well in this topic and should also help other people looking for help in the future, I will answer you here.
Manual procedure:1) start from scratch by cloning the git repository in a fresh new folder on your local disk
git clone https://github.com/JeanLucPons/VanitySearch
2) open each of the following files
- Timer.h (capital 'T')
- hash/sha256.cpp
- hash/sha512.cpp
- hash/sha256.h
and search from in the beginning for lines like:
or
3) add this new line after the line you found in step 2)
... and save the changes you made.
4) compile it now, it should hopefully work
For a wrap-up, finally this is the resulting patch file which you can manually create into your cloned folder on your local disk and apply it.
fix_by_citb0in.patchdiff --git a/Timer.h b/Timer.h
index b649bf0..0407c79 100644
--- a/Timer.h
+++ b/Timer.h
@@ -20,6 +20,7 @@
#include
#include
+#include
#ifdef WIN64
#include
#endif
diff --git a/hash/sha256.cpp b/hash/sha256.cpp
index 30cde56..fa92dc5 100644
--- a/hash/sha256.cpp
+++ b/hash/sha256.cpp
@@ -16,6 +16,7 @@
*/
#include
+#include
#include "sha256.h"
#define BSWAP
diff --git a/hash/sha256.h b/hash/sha256.h
index 7f106b7..a4476d1 100644
--- a/hash/sha256.h
+++ b/hash/sha256.h
@@ -18,6 +18,7 @@
#ifndef SHA256_H
#define SHA256_H
#include
+#include
void sha256(uint8_t *input,int length, uint8_t *digest);
void sha256_33(uint8_t *input, uint8_t *digest);
@@ -32,4 +33,4 @@ void sha256sse_checksum(uint32_t *i0, uint32_t *i1, uint32_t *i2, uint32_t *i3,
std::string sha256_hex(unsigned char *digest);
void sha256sse_test();
-#endif
\ No newline at end of file
+#endif
diff --git a/hash/sha512.cpp b/hash/sha512.cpp
index 2ab9bae..240e438 100644
--- a/hash/sha512.cpp
+++ b/hash/sha512.cpp
@@ -16,6 +16,7 @@
*/
#include
+#include
#include "sha512.h"
#define BSWAP
I've made the mentioned patch file for the required adjustments to fix the issue and created a pull-request to have it merged into JeanLucPons' repository. However, whether and when he will check and approve this is written in the stars
You can of course view, download and apply the fix at any time as follows.
visit the URL
and click on the pull request named "Fix Undefined Type 'uint32_t' by Including "
Simple and quick solution:
alternatively you can download the finished solution with my patch already applied, directly from my repository.
git clone https://github.com/citb0in/VanitySearch.git
I hope I have been able to help you and wish you every success. All the best.
citb0in