Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
old c coder
on 16/01/2014, 05:27:29 UTC
Hello skatola,

Hi and thank you so much for this amazing guide!
like a lot of people i tried to follow your tutorial and like a lot of people i have a problem XD hope u can help me : )
at the step 3.3, after i edited the makefile.mingw i launch mingw32-make -f makefile.mingw and i receive this error:
Here it is running from C:\bitcoin-0.8.6\src
Quote
C:\bitcoin-0.8.6\src>mingw32-make -f makefile.mingw
Now gcc launches to compile alert.cpp into obj/alert.o
Notice that alert.cpp is the first in the list of files to be compiled in makefile.mungw, so none have successfully compiled so far.
Quote
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
ameter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADS
AFE -DUSE_IPV6=1 -IC:/bitcoin-0.8.6/src/leveldb/include -IC:/bitcoin-0.8.6/src/l
eveldb/helpers á-I"C:/bitcoin-0.8.6/src" á-I"c:/deps/boost_1_55_0" á-I"c:/deps/d
b-4.8.30.NC/build_unix" á-I"c:/deps/openssl-1.0.1e/include" -o obj/alert.o alert
.cpp
Now gcc fails saying that the src files that I presume are in C:\bitcoin-0.8.6\src by the above, are now presumed by gcc to be in C:\MinGW\msys\1.0\?  So something did a change directory?  Also note that the include  directories seem also to be changed for gcc by the same change directory.  Also are you doing what this shows:
1. Have a c:\deps directory for all your "dependencies"?
2. Are you compiling bitcoin 0.8.6?
3. Are you using Boost 1.55?
4. Are you using BerkeleyDB 4.8.30?
That is what it is saying, but those seemed pretty "canned".  Maybe you didn't do step 3.2 that says you must edit the make file to match your particular layout.  Unless of course you match the layout exactly, i.e. have things on c:, have a c:\deps, etc. etc.
Quote
g++.exe: error: á-IC;C:\MinGW\msys\1.0\bitcoin-0.8.6\src: Invalid argument
g++.exe: error: á-Ic;C:\MinGW\msys\1.0\deps\boost_1_55_0: Invalid argument
g++.exe: error: á-Ic;C:\MinGW\msys\1.0\deps\db-4.8.30.NC\build_unix: Invalid arg
ument
g++.exe: error: á-Ic;C:\MinGW\msys\1.0\deps\openssl-1.0.1e\include: Invalid argu
ment
Now mingw32-make notices and you stop
Quote
makefile.mingw:124: recipe for target 'obj/alert.o' failed
mingw32-make: *** [obj/alert.o] Error 1


i tried to solve alone but i can't : (
any idea what i did wrong?
thank you for your help!

Ron