Pages:
Author

Topic: [ANN] EasyWinBuilder - The Easy Way to Build Bitcoin on Windows - page 9. (Read 50087 times)

newbie
Activity: 18
Merit: 0
i think i found it
i have a modified bitcoin-qt.pro file(the one from litecoin, which is still named like bitcoin, but exports litecoin-exes)

Code:
OPENSSL_INCLUDE_PATH = C:/deps/openssl-1.0.1e/include
OPENSSL_LIB_PATH = C:/deps/openssl-1.0.1e

this it works if changed to

Code:
#OPENSSL_INCLUDE_PATH = C:/deps/openssl-1.0.1e/include
#OPENSSL_LIB_PATH = C:/deps/openssl-1.0.1e

because im my understanding, your script automatically injects these variables  Wink
the exported files dont work and dont thow an error...but the icon is shown (yay)

what about integrating multi-platform-export?
legendary
Activity: 1708
Merit: 1020
Quote
This is the path included, is it there? "c:/deps/openssl-1.0.1e/include"  If not restart 3b_run_build_dep.bat

there is no /dep folder  Huh even after rebuilding dependencies...but i found a libs folder with all the requred file(crypto.h) in the given bitcoin folder
So where does it come from? Did you modify set_vars? You might want to redownload the zip and restart with __everything after environment if you are sure you got MinGW and Qt installed correctly.
newbie
Activity: 18
Merit: 0
Quote
This is the path included, is it there? "c:/deps/openssl-1.0.1e/include"  If not restart 3b_run_build_dep.bat

there is no /dep folder  Huh even after rebuilding dependencies...but i found a libs folder with all the requred file(crypto.h) in the given bitcoin folder
legendary
Activity: 1708
Merit: 1020
newbie
Activity: 18
Merit: 0
thanks for the whitespace tip, i am now able to compile a daemon, but no qt:
Code:
sed: preserving permissions for `../src/sed605604': Permission denied
sed: preserving permissions for `../src/sed631588': Permission denied
sed: preserving permissions for `../src/sed631688': Permission denied
sed: preserving permissions for `../src/sed630808': Permission denied
sed: preserving permissions for `../src/sed631764': Permission denied
sed: preserving permissions for `../src/sed631724': Permission denied
sed: preserving permissions for `../src/sed631784': Permission denied
sed: preserving permissions for `../libs/miniupnpc-1.8/sed631796': Permission denied
sed: preserving permissions for `../libs/miniupnpc-1.8/sed631860': Permission denied
sed: preserving permissions for `../src/sed629328': Permission denied
sed: preserving permissions for `../libs/miniupnpc-1.8/sed631924': Permission denied
building qt - qmake...
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.


building qt - make...

C:\gamecoin>mingw32-make -f Makefile.Release
g++ -c -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wno-unused-value -Wno-sign-compare -Wno-strict-aliasing -D_FORTIFY_SOURCE=2 -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NEEDS_QMAIN -I'../Qt/4.8.5/include/QtCore' -I'../Qt/4.8.5/include/QtNetwork' -I'../Qt/4.8.5/include/QtGui' -I'../Qt/4.8.5/include' -I'src' -I'src/json' -I'src/qt' -I'libs/miniupnpc-1.8' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'libs/boost_1_54_0' -I'libs/db-4.8.30.NC/build_unix' -I'c:/deps/openssl-1.0.1e/include' -I'../Qt/4.8.5/include/ActiveQt' -I'build' -I'build' -I'../Qt/4.8.5/mkspecs/default' -o build/bitcoin.o src/qt/bitcoin.cpp
In file included from src/qt/walletmodel.h:6:0,
                 from src/qt/bitcoin.cpp:9:
src/allocators.h:12:53: schwerwiegender Fehler: openssl/crypto.h: No such file or directory
Kompilierung beendet.
mingw32-make: *** [build/bitcoin.o] Error 1

and how can i change the coinnname in set_vars.bat?
legendary
Activity: 1708
Merit: 1020
[...]
I found the problem, I made the same mistake as worldspace user, so I downloaded minGW again but apparently the new execution still used some of the old compiled files. After removing everything, download again and run, it all worked fine, even from a different drive.
Great. Added this issue to the readme.

Quote
Thanks a lot for the help and even more for the great script Smiley
Grin
newbie
Activity: 50
Merit: 0
For those with this problem: leveldb/db.h: No such file or directory
Download and use easywinbuilder in a folder inside a path with NO spaces


Now I have another problem showing several times:
...
D:\neoranga\bitcoin\src/db.h:156: undefined reference to `Dbt::Dbt(void*, unsigned int)'
D:\neoranga\bitcoin\src/db.h:162: undefined reference to `Dbt::Dbt(void*, unsigned int)'
collect2: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1


!!!!!! Error! Build daemon failed.



Any clue where the problem may be?
Will add this to the readme:
Quote
Often the source of trouble is difficult to identify as there are so many follow up issues. You can run the scripts from within SciTE or increase your command window buffer size (open command line, right click on the top left icon, properties, layout, windowbuffersize --> 9999, then start the batch file from command line).

I did not try it with drives other than C: so you might want to check for correct drive letters in the output.

Also: If you change paths make sure to stick to forward or backward slashes as in the original as the process depends on one or the other


I found the problem, I made the same mistake as worldspace user, so I downloaded minGW again but apparently the new execution still used some of the old compiled files. After removing everything, download again and run, it all worked fine, even from a different drive.

Thanks a lot for the help and even more for the great script Smiley
legendary
Activity: 1708
Merit: 1020
Updated to Bitcoin v0.8.4

Thinking about separating EWB from the sources...

Though I did not yet test it, it should be possible to build different versions and altcoins with the same libs folder by specifying the proper path. Would be interesting to create a menu to automatically download and build different Bitcoin versions and altcoins...
legendary
Activity: 1708
Merit: 1020
For those with this problem: leveldb/db.h: No such file or directory
Download and use easywinbuilder in a folder inside a path with NO spaces


Now I have another problem showing several times:
...
D:\neoranga\bitcoin\src/db.h:156: undefined reference to `Dbt::Dbt(void*, unsigned int)'
D:\neoranga\bitcoin\src/db.h:162: undefined reference to `Dbt::Dbt(void*, unsigned int)'
collect2: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1


!!!!!! Error! Build daemon failed.



Any clue where the problem may be?
Will add this to the readme:
Quote
Often the source of trouble is difficult to identify as there are so many follow up issues. You can run the scripts from within SciTE or increase your command window buffer size (open command line, right click on the top left icon, properties, layout, windowbuffersize --> 9999, then start the batch file from command line).

I did not try it with drives other than C: so you might want to check for correct drive letters in the output.

Also: If you change paths make sure to stick to forward or backward slashes as in the original as the process depends on one or the other
legendary
Activity: 1708
Merit: 1020
Do i have to perform an update in the mysys shell before excuting the batch files?
No, don't update anything it will do everything necessary automatically.

As per neoranga's hint use a directory without spaces. I will add this to the readme (thanks to Viriatto for first noting this, too).

newbie
Activity: 50
Merit: 0
For those with this problem: leveldb/db.h: No such file or directory
Download and use easywinbuilder in a folder inside a path with NO spaces


Now I have another problem showing several times:
...
D:\neoranga\bitcoin\src/db.h:156: undefined reference to `Dbt::Dbt(void*, unsigned int)'
D:\neoranga\bitcoin\src/db.h:162: undefined reference to `Dbt::Dbt(void*, unsigned int)'
collect2: ld returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1


!!!!!! Error! Build daemon failed.



Any clue where the problem may be?
newbie
Activity: 18
Merit: 0
I now get asked the same Question like BitDreams on MinGW install and when i ignore it, it results in the following error:
Code:
g++ -c -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wn
o-unused-value -Wno-sign-compare -Wno-strict-aliasing -mthreads -O2 -w -Wall -We
xtra -Wformat -Wformat-security -Wno-unused-parameter -g -DWIN32 -D_WINDOWS -DBO
OST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DSTATICLIB -DUSE_UPNP=1 -DUSE_IPV6
=1 -IC:/Dokumente -Iund -IEinstellungen/Besitzer/Desktop/btc/src/leveldb/include
 -IC:/Dokumente -Iund -IEinstellungen/Besitzer/Desktop/btc/src/leveldb/helpers -
I'C:/Dokumente und Einstellungen/Besitzer/Desktop/btc/easywinbuilder/../libs/boo
st_1_54_0' -I'C:/Dokumente und Einstellungen/Besitzer/Desktop/btc/easywinbuilder
/../libs/openssl-1.0.1e/include' -I'C:/Dokumente und Einstellungen/Besitzer/Desk
top/btc/easywinbuilder/../libs/db-4.8.30.NC/build_unix' -I'C:/Dokumente und Eins
tellungen/Besitzer/Desktop/btc/easywinbuilder/../libs/miniupnpc-1.8' -o obj/init
.o init.cpp
In file included from txdb.h:9:0,
                 from init.cpp:6:
leveldb.h:9:24: schwerwiegender Fehler: leveldb/db.h: No such file or directory
Kompilierung beendet.
mingw32-make: *** [obj/init.o] Error 1


!!!!!! Error! Build daemon failed.
Drücken Sie eine beliebige Taste . . .
Do i have to perform an update in the mysys shell before excuting the batch files?
legendary
Activity: 1708
Merit: 1020
I'm hoping this will fix problems I've been having with bitcoin.

Here's another thread where I've been exploring a solution:  https://bitcointalksearch.org/topic/m.3094913

* previous anti-virus issue appears resolved - so far AV is working and has not complained but I have yet to succeed with an install and here's my notes

https://bitcointalksearch.org/topic/m.3094913

MinGW was installed, i had overlooked this. ANN https://bitcointalksearch.org/topic/ann-easywinbuilder-the-easy-way-to-build-bitcoin-on-windows-252931 detected this, I deleted the MinGW folder and then restarted ANN

Default Directory c:\Qt\4.8.5 is what Qt setup proposed...

@ Qt OpenSource 4.8.5 Setup I got the following error:

There is a problem with your MinGW installation:
The installer could not find a valid C:\MinGW\include\w32api.h
(Only versions with W32API3.13 are supported)
Do you still want to continue? (Your installation may not work)

I said yes...
That's ok. Instructions on the command line should say so, too.

Quote
c:/mingw/bin/../lib/gcc/miingw32/4.6.2/../../../../mingw32/bin/1d.exe: cannont find -1ss1

c:/mingw/bin/../lib/gcc/miingw32/4.6.2/../../../../mingw32/bin/1d.exe: cannont find -1crypto

collect2: 1d returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1

================================================
seems like it can not find the libraries. It is a little odd that your path has two "i"s in it.

Quote
Nice to watch the BAT file appears to uninstall everything it installed.
Huh  no, it does not do that.  Smiley
hero member
Activity: 503
Merit: 501
I'm hoping this will fix problems I've been having with bitcoin.

Here's another thread where I've been exploring a solution:  https://bitcointalksearch.org/topic/m.3094913

* previous anti-virus issue appears resolved - so far AV is working and has not complained but I have yet to succeed with an install and here's my notes

https://bitcointalksearch.org/topic/m.3094913

MinGW was installed, i had overlooked this. ANN https://bitcointalksearch.org/topic/ann-easywinbuilder-the-easy-way-to-build-bitcoin-on-windows-252931 detected this, I deleted the MinGW folder and then restarted ANN

Default Directory c:\Qt\4.8.5 is what Qt setup proposed...

@ Qt OpenSource 4.8.5 Setup I got the following error:

There is a problem with your MinGW installation:
The installer could not find a valid C:\MinGW\include\w32api.h
(Only versions with W32API3.13 are supported)
Do you still want to continue? (Your installation may not work)

I said yes...

c:/mingw/bin/../lib/gcc/miingw32/4.6.2/../../../../mingw32/bin/1d.exe: cannont find -1ss1

c:/mingw/bin/../lib/gcc/miingw32/4.6.2/../../../../mingw32/bin/1d.exe: cannont find -1crypto

collect2: 1d returned 1 exit status
mingw32-make: *** [bitcoind.exe] Error 1

================================================

Nice to watch the BAT file appears to uninstall everything it installed.
legendary
Activity: 1708
Merit: 1020
I answer in English as it is a little impolite towards the others to write in German here...

wie kann man denn in der mysys-shell die pakete rebiulden?
Just restart the installer, it will ask you.

Quote
bin mir außerdem nicht sicher, ob das hier in der komplettpakt-batch noch ein problem darstellt:
Code:
C:\Users\Owner\Documents\GitHub\bitcoin\libs\boost_1_54_0>call bootstrap.bat mingw
Building Boost.Build engine
Das Sprungziel - Test_Option wurde nicht gefunden.
No, that's perfectly normal. I have no idea why it says that.
newbie
Activity: 18
Merit: 0
wie kann man denn in der mysys-shell die pakete rebiulden?

bin mir außerdem nicht sicher, ob das hier in der komplettpakt-batch noch ein problem darstellt:
Code:
C:\Users\Owner\Documents\GitHub\bitcoin\libs\boost_1_54_0>call bootstrap.bat mingw
Building Boost.Build engine
Das Sprungziel - Test_Option wurde nicht gefunden.
legendary
Activity: 1708
Merit: 1020
building qt - make...
Code:
[...]
c:\mingw\bin\../lib/gcc/mingw32/[b]4.7.2[/b]/../../../../include/winsock.h:62:0: Anmerkung: dies ist die Stelle der vorherigen Definition
[...]
It seems like you installed MinGW with the wrong parameters. Yeah, you really need to follow instructions EXACTLY, building Bitcoin on windows is a fragile process. When the MinGW installer asks about it do NOT select "download latest repository catalogues" but use the "pre-packaged catalogues" (20120426). This will install the necessary gcc 4.6.2. You should then rebuild the dependencies, too.

Quote
partially it's non-english, but i can translate it if needed
No worries, I am a native German speaker myself.

Quote
the thing i dont get is that i am using a working package of environment and code, but still get an error
That would be really awkward.  Smiley
newbie
Activity: 18
Merit: 0
building qt - make...
Code:
building qt - qmake...
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.


C:\Users\Owner\Documents\GitHub\bitcoin>mingw32-make -f Makefile.Release
g++ -c -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wno-unused-value -Wno-sign-compare -Wno-strict-aliasing -D_FORTIFY_SOURCE=2 -O2 -frtti
g++ -c -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wno-unused-value -Wno-sign-compare -Wno-strict-aliasing -D_FORTIFY_SOURCE=2 -O2 -frtti
In file included from src/netbase.h:11:0,
                 from src/net.h:19,
                 from src/rpcnet.cpp:5:
src/compat.h:14:0: Warnung: »FD_SETSIZE« redefiniert [standardmäßig aktiviert]
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/windows.h:93:0,
                 from libs/openssl-1.0.1e/include/openssl/rand.h:67,
                 from src/net.h:11,
                 from src/rpcnet.cpp:5:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock.h:62:0: Anmerkung: dies ist die Stelle der vorherigen Definition
In file included from src/compat.h:17:0,
                 from src/netbase.h:11,
                 from src/net.h:19,
                 from src/rpcnet.cpp:5:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: Fehler: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from src/compat.h:17:0,
                 from src/netbase.h:11,
                 from src/net.h:19,
                 from src/rpcnet.cpp:5:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:147:8: Fehler: Redefinition von »struct ip_mreq«
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/windows.h:93:0,
                 from libs/openssl-1.0.1e/include/openssl/rand.h:67,
                 from src/net.h:11,
                 from src/rpcnet.cpp:5:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock.h:315:8: Fehler: vorherige Definition von »struct ip_mreq«
In file included from src/compat.h:17:0,
                 from src/netbase.h:11,
                 from src/net.h:19,
                 from src/rpcnet.cpp:5:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:390:13: Fehler: expected initializer before »freeaddrinfo«
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:391:12: Fehler: expected initializer before »getaddrinfo«
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:393:12: Fehler: expected initializer before »getnameinfo«
Makefile.Release:1763: recipe for target 'build/rpcnet.o' failed

partially it's non-english, but i can translate it if needed
the thing i dont get is that i am using a working package of environment and code, but still get an error
legendary
Activity: 1708
Merit: 1020
all seemed to be right, but i got this error message:

Code:
In file included from c:\deps\boost_1_54_0/boost/system/system_error.hpp:14:0,
                 from c:\deps\boost_1_54_0/boost/thread/exceptions.hpp:22,
                 from c:\deps\boost_1_54_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from c:\deps\boost_1_54_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from c:\deps\boost_1_54_0/boost/thread/win32/mutex.hpp:9,
                 from c:\deps\boost_1_54_0/boost/thread/mutex.hpp:14,
                 from src\allocators.h:10,
                 from src\serialize.h:22,
                 from src\netbase.h:10,
                 from src\net.h:19,
                 from src\rpcnet.cpp:5:
c:\deps\boost_1_54_0/boost/system/error_code.hpp:222:36: Warnung: »boost::system
::posix_category« definiert, aber nicht verwendet [-Wunused-variable]
c:\deps\boost_1_54_0/boost/system/error_code.hpp:223:36: Warnung: »boost::system
::errno_ecat« definiert, aber nicht verwendet [-Wunused-variable]
c:\deps\boost_1_54_0/boost/system/error_code.hpp:224:36: Warnung: »boost::system
::native_ecat« definiert, aber nicht verwendet [-Wunused-variable]
Makefile.Release:1791: recipe for target 'build/rpcnet.o' failed
mingw32-make: *** [build/rpcnet.o] Error 1

i think this happens somewhere in the last bitcoin compile step
i used the standard code, no changes
Hmm can't remember that problem. The actual error is shown much further up in your output.

You can run the 4b_build_qt.bat from SciTE or increase your command window buffer size (open command line, right click on the top left icon, properties, layout, windowbuffersize --> 9999, then start the batch file from command line) and then look at the top or post the output again.

newbie
Activity: 18
Merit: 0
all seemed to be right, but i got this error message:

Code:
In file included from c:\deps\boost_1_54_0/boost/system/system_error.hpp:14:0,
                 from c:\deps\boost_1_54_0/boost/thread/exceptions.hpp:22,
                 from c:\deps\boost_1_54_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from c:\deps\boost_1_54_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from c:\deps\boost_1_54_0/boost/thread/win32/mutex.hpp:9,
                 from c:\deps\boost_1_54_0/boost/thread/mutex.hpp:14,
                 from src\allocators.h:10,
                 from src\serialize.h:22,
                 from src\netbase.h:10,
                 from src\net.h:19,
                 from src\rpcnet.cpp:5:
c:\deps\boost_1_54_0/boost/system/error_code.hpp:222:36: Warnung: »boost::system
::posix_category« definiert, aber nicht verwendet [-Wunused-variable]
c:\deps\boost_1_54_0/boost/system/error_code.hpp:223:36: Warnung: »boost::system
::errno_ecat« definiert, aber nicht verwendet [-Wunused-variable]
c:\deps\boost_1_54_0/boost/system/error_code.hpp:224:36: Warnung: »boost::system
::native_ecat« definiert, aber nicht verwendet [-Wunused-variable]
Makefile.Release:1791: recipe for target 'build/rpcnet.o' failed
mingw32-make: *** [build/rpcnet.o] Error 1

i think this happens somewhere in the last bitcoin compile step
i used the standard code, no changes
Pages:
Jump to: