Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial to compile on Windows 10 #110

Open
flyingtomato2 opened this issue Dec 13, 2017 · 3 comments
Open

Tutorial to compile on Windows 10 #110

flyingtomato2 opened this issue Dec 13, 2017 · 3 comments

Comments

@flyingtomato2
Copy link

Hi there!
Is there any step tutorial or videos to compile on a fresh windows 10 installation?
There is a very good one for ubuntu here. Is it possible to make one for windows 10?
A detailed tutorial will be very helpful.

@jamesyoungdigital
Copy link

There are a few options: you can download and install a Linux app (Ubuntu 18.04) from the Windows store after enabling the Linux subsystem for Windows.

Otherwise, are you familiar with Cygwin or MingW? If you can manage Cygwin, you can just remove the references to oclVanityGen in the Makefile and compile the CPU only version.

My Makefile on cygwin:

$ cat Makefile
LIBS=-lpcre -lcrypto -lm -lpthread
CFLAGS=-O3 -Wall
OBJS=vanitygen.o keyconv.o pattern.o util.o
PROGS=vanitygen keyconv

PLATFORM=$(shell uname -s)
ifeq ($(PLATFORM),Darwin)
OPENCL_LIBS=-framework OpenCL
else
OPENCL_LIBS=-lOpenCL
endif

most: vanitygen keyconv

all: $(PROGS)

vanitygen: vanitygen.o pattern.o util.o
        $(CC) $^ -o $@ $(CFLAGS) $(LIBS)

keyconv: keyconv.o util.o
        $(CC) $^ -o $@ $(CFLAGS) $(LIBS)

clean:
        rm -f $(OBJS) $(PROGS) $(TESTS)

then "make" and run: ./vanitygen.exe -v

$ ./vanitygen.exe
Vanitygen 0.22 (OpenSSL 1.0.2p  14 Aug 2018)
Usage: ./vanitygen [-vqnrik1NT] [-t <threads>] [-f <filename>|-] [<pattern>...]
Generates a bitcoin receiving address matching <pattern>, and outputs the
address and associated private key.  The private key may be stored in a safe
location or imported into a bitcoin client to spend any balance received on
the address.
By default, <pattern> is interpreted as an exact prefix.

Options:
-v            Verbose output
-q            Quiet output
-n            Simulate
-r            Use regular expression match instead of prefix
              (Feasibility of expression is not checked)
-i            Case-insensitive prefix search
-k            Keep pattern and continue search after finding a match
-1            Stop after first match
-N            Generate namecoin address
-T            Generate bitcoin testnet address
-X <version>  Generate address with the given version
-F <format>   Generate address with the given format (pubkey or script)
-P <pubkey>   Specify base public key for piecewise key generation
-e            Encrypt private keys, prompt for password
-E <password> Encrypt private keys with <password> (UNSAFE)
-t <threads>  Set number of worker threads (Default: number of CPUs)
-f <file>     File containing list of patterns, one per line
              (Use "-" as the file name for stdin)
-o <file>     Write pattern matches to <file>
-s <file>     Seed random number generator from <file>
$ ./vanitygen.exe -v1 1Hack
Prefix difficulty:              4476342 1Hack
Difficulty: 4476342
Using 8 worker thread(s)
Pattern: 1Hack
Pubkey (hex): 04a6ede0567a46eaa024628e17aa160219f096d1f88e9a0230fd1d32d8406524a23c280ced1e03f9bbdf1c214b574bdffff6fbd022ed159863865c2a4f0001c256
Privkey (hex): 063AE42081AF4C0915A2D4C5CED0B4A51ACB04F4F0A1F53C7312D6B859181F16
Privkey (ASN1): 308201130201010420063ae42081af4c0915a2d4c5ced0b4a51acb04f4f0a1f53c7312d6b859181f16a081a53081a2020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101a14403420004a6ede0567a46eaa024628e17aa160219f096d1f88e9a0230fd1d32d8406524a23c280ced1e03f9bbdf1c214b574bdffff6fbd022ed159863865c2a4f0001c256
Address: 1Hackwa1FhR7Z6rt4hkorA2HKsdGGoZZUp
Privkey: 5Hs2ih1gn4UK5j6Ygz9V3JVG8oULgoEJsy46vYTuuHeeLhkZ6oC
[68.92 Kkey/s][total 13795840][Prob 56.5%][75% in 35.9s][Found 1/1]

Does that help so far? I could do up a reasonable tutorial for Windows 10, although I'm not entirely sure how to compile the ocl version just yet. I'll have a stab at it though.

@Yokomoko
Copy link

Yokomoko commented Nov 6, 2018

https://github.com/Groestlcoin/vanitygen/blob/master/INSTALL

@anshukrsingh
Copy link

NMAKE : fatal error U1052: file 'Makefile.Win64' not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants