im trying to build it for windows and im running into some issues, this is the first time i ever tried to make anything bigger than wget.
i downloaded and installed all the list things but i run into issues when i want to build
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\Users\testbed\Deskt
op\New folder\src
C:\Users\testbed\Desktop\New folder\src>nmake /fMakefile.Win32 vanitygen.exe ocl
vanitygen.exe
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl /D_WIN32 /DPTW32_STATIC_LIB /DPCRE_STATIC /IC:\OpenSSL-Win32\include
/IC:\pthreads-w32 /IC:\pcre-7.9-src /c /Tpvanitygen.c /Fovanitygen.obj
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
vanitygen.c
vanitygen.c(24) : fatal error C1083: Cannot open include file: 'pthread.h': No s
uch file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
C:\Users\testbed\Desktop\New folder\src>
this is a clean windows 7 x64 VM.
i guess im having trouble setting the cflags, i dont know what they are i guess.
C:\>dir
Volume in drive C has no label.
Directory of C:\
08/05/2011 09:52 PM OpenSSL-Win32
08/05/2011 10:13 PM pcre-7.9-src
08/05/2011 10:55 PM pthread-w32
24 File(s) 3,169,847 bytes
8 Dir(s) 86,889,963,520 bytes free
C:\>cd pthread-w32
C:\pthread-w32>dir
Directory of C:\pthread-w32
08/05/2011 10:55 PM .
08/05/2011 10:55 PM ..
12/21/2006 10:00 PM 14,188 ANNOUNCE
12/21/2006 10:00 PM 6,041 BUGS
12/21/2006 10:00 PM 184,885 ChangeLog
12/19/2006 10:00 PM 5,078 CONTRIBUTORS
12/19/2006 10:00 PM 5,939 COPYING
12/19/2006 10:00 PM 26,934 COPYING.LIB
12/19/2006 10:00 PM 15,359 FAQ
08/05/2011 10:54 PM include
08/05/2011 10:54 PM lib
12/21/2006 10:00 PM 89,608 libpthreadGC2.a
12/21/2006 10:00 PM 89,614 libpthreadGCE2.a
12/19/2006 10:00 PM 99 MAINTAINERS
12/21/2006 10:00 PM 132 md5.sum
12/21/2006 10:00 PM 38,603 NEWS
12/19/2006 10:00 PM 142 PROGRESS
12/19/2006 10:00 PM 43,162 pthread.h
12/21/2006 10:00 PM 60,273 pthreadGC2.dll
12/21/2006 10:00 PM 112,556 pthreadGCE2.dll
12/21/2006 10:00 PM 86,070 pthreadVC2.dll
12/21/2006 10:00 PM 29,280 pthreadVC2.lib
12/21/2006 10:00 PM 77,879 pthreadVCE2.dll
12/21/2006 10:00 PM 29,400 pthreadVCE2.lib
12/21/2006 10:00 PM 86,071 pthreadVSE2.dll
12/21/2006 10:00 PM 29,400 pthreadVSE2.lib
12/19/2006 10:00 PM 22,520 README
12/19/2006 10:00 PM 2,595 README.Borland
12/19/2006 10:00 PM 89,774 README.CV
12/19/2006 10:00 PM 12,014 README.NONPORTABLE
12/19/2006 10:00 PM 2,349 README.Watcom
12/19/2006 10:00 PM 220 README.WinCE
12/19/2006 10:00 PM 4,844 sched.h
12/19/2006 10:00 PM 4,429 semaphore.h
12/19/2006 10:00 PM 217 TODO
12/19/2006 10:00 PM 7,904 WinCE-PORT
32 File(s) 1,177,579 bytes
4 Dir(s) 86,889,963,520 bytes free
C:\pthread-w32>
if you need anymore info i can supply it, or just provide a windows binary and that will make me happy too
edit: well the problem above was a missing s on pthread
s-w32
now i get
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\Users\testbed\Deskt
op\New folder\src
C:\Users\testbed\Desktop\New folder\src>nmake /fMakefile.Win32 vanitygen.exe ocl
vanitygen.exe
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl /D_WIN32 /DPTW32_STATIC_LIB /DPCRE_STATIC /IC:\OpenSSL-Win32\include
/IC:\pthreads-w32 /IC:\pcre-7.9-src /c /Tpvanitygen.c /Fovanitygen.obj
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
vanitygen.c
vanitygen.c(26) : fatal error C1083: Cannot open include file: 'openssl/sha.h':
No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
C:\Users\testbed\Desktop\New folder\src>
I fixed that problem by using Win32OpenSSL-1_0_0d.exe and not the lite version.
now i get
C:\Users\testbed\Desktop\New folder\src>nmake /fMakefile.Win32 vanitygen.exe ocl
vanitygen.exe
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
link /nologo /out:vanitygen.exe vanitygen.obj pattern.obj winglue.obj C:
\OpenSSL-Win32\lib\libeay32.lib C:\pthreads-w32\pthread.lib C:\pcre-7.9-src\pcre
.lib ws2_32.lib
LINK : fatal error LNK1181: cannot open input file 'C:\pthreads-w32\pthread.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\link.EXE"' : return code '0x49d'
Stop.
C:\Users\testbed\Desktop\New folder\src>
I can not find pthread.lib anywhere.
Directory of C:\pthreads-w32
08/05/2011 10:54 PM include
08/05/2011 10:54 PM lib
12/21/2006 10:00 PM 89,608 libpthreadGC2.a
12/21/2006 10:00 PM 89,614 libpthreadGCE2.a
12/21/2006 10:00 PM 60,273 pthreadGC2.dll
12/21/2006 10:00 PM 112,556 pthreadGCE2.dll
12/21/2006 10:00 PM 86,070 pthreadVC2.dll
12/21/2006 10:00 PM 29,280 pthreadVC2.lib
12/21/2006 10:00 PM 77,879 pthreadVCE2.dll
12/21/2006 10:00 PM 29,400 pthreadVCE2.lib
12/21/2006 10:00 PM 86,071 pthreadVSE2.dll
12/21/2006 10:00 PM 29,400 pthreadVSE2.lib
Directory of C:\pthreads-w32\lib
12/21/2006 10:00 PM 29,280 pthreadVC2.lib
12/21/2006 10:00 PM 29,400 pthreadVCE2.lib
12/21/2006 10:00 PM 29,400 pthreadVSE2.lib
C:\pthreads-w32\lib>C:\
i managed to get a working .exe but it requires pthreadVSE2.dll to be in the same dir as vanitygen.exe, also i can not seem to get oclvanitygen.exe to work.