Open rickyteng opened 10 years ago
Unfortunately, I think windows-build.txt has suffered some bitrot as MinGW changes their stuff. :(
Hopefully someone who uses Windows can update it soon.
Maybe I can help. It will take time. First I need to understand Makefile? or something? Would you please give me a direction to the manual for Makefile? I think I have found first problem that is cause by Makefile. I just don't know how to fixed it. Everytime I run ./configure, Makefile inside libblkmaker/ is restored. The second one is that blkmaker.h is actually in libblkmaker/. Thanks
I builded bfgminer under windows 7 with mingw successfully. Because I don't have any ASIC, FPGA, GPU, I only build with following command CFLAGS="-O2 -msse2" ./configure --enable-cpumining --disable-ztex --disable-x6500
Then I manually change the file bfgminer/libblkmaker/Makefile about line 398
.c.lo:
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
To
.c.lo:
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
Then copy some files to folder "bfgminer/" for compilation:
blkmaker.h # from bfgminer/libblkmaker
usbioctl.h # from C:\MinGW\include\ddk\
ntddk.h # from C:\MinGW\include\ddk\
ntstatus.h # from C:\MinGW\include\ddk\
winddk.h # from C:\MinGW\include\ddk\
winxp.h # from C:\MinGW\include\ddk\
win2k.h # from C:\MinGW\include\ddk\
winnt4.h # from C:\MinGW\include\ddk\
usb100.h # from C:\MinGW\include\ddk\
usbiodef.h # from C:\MinGW\include\ddk\
After compile completed, it's time to copy build files to somewhere. Some files described by windows-build.txt are missing:
pthreadGC2.dll from \MinGW\bin # I can run without this dll
libjansson-X.dll from \MinGW\msys\1.0\local\bin # not in \MinGW\msys\1.0\local\bin but \MinGW\bin
I still don't know how to write automake or autoconf. So I just write my procedure here.
I followed instructions in windows-build.txt. Build failed when make try to build "libblkmaker", "libsse2cpuminer_a-sha256_4way"
Log as following:
I try to change the file bfgminer/libblkmaker/Makefile about line 398
To
I don't know exactly what the line means because I don't understand Makefile well. I just copy the idea from line
I enter the folder libblkmaker/, redo ./configure, change the line, then make. From the log, it looks like libblkmaker build successfully. I continued to make under bfgminer/
I got another error:
Can anyone help?
complete log: