Pages:
Author

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

legendary
Activity: 1708
Merit: 1020
full member
Activity: 147
Merit: 100
@templar77: probably the grumpycoin makefile.mingw is a little bit different from bitcoin/other altcoin so that it can not find the libs. compare it to bitcoin, could be you only need to replace a couple of "=" by "?="


[crashing on shutdown]
I got one report by pm about everything working fine and not crashing on shutdown...   why it is crashing on shutdown for you I have no idea. You can try to delete debug.log, provoke the crash and then take a look at the new debug.log - maybe we can learn something.
Other than that my wild guesses would are a version conflict or missing multi threading mode because of makefile differences.

I deleted my debug file.and started from the beggining.
Opened my litecoin-qt.exe,and then closed,it crashed again.
So here is my debug file.
Phelix,help me please,because I don;t understand what is my problem)

Code:
2014-01-08 10:00:30 Litecoin version v0.8.6.1-g88e2a2e-beta (Thu, 5 Dec 2013 22:52:50 -1000)
2014-01-08 10:00:30 Using OpenSSL version OpenSSL 1.0.1e 11 Feb 2013
2014-01-08 10:00:30 Default data directory C:\Users\Redbool\AppData\Roaming\Litecoin
2014-01-08 10:00:30 Using data directory C:\Users\Redbool\AppData\Roaming\Litecoin
2014-01-08 10:00:30 Using at most 125 connections (2048 file descriptors available)
2014-01-08 10:00:30 Using 2 threads for script verification
2014-01-08 10:00:30 init message: Verifying wallet...
2014-01-08 10:00:30 dbenv.open LogDir=C:\Users\Redbool\AppData\Roaming\Litecoin\database ErrorFile=C:\Users\Redbool\AppData\Roaming\Litecoin\db.log
2014-01-08 10:00:30 Bound to [::]:9333
2014-01-08 10:00:30 Bound to 0.0.0.0:9333
2014-01-08 10:00:30 init message: Loading block index...
2014-01-08 10:00:30 Opening LevelDB in C:\Users\Redbool\AppData\Roaming\Litecoin\blocks\index
2014-01-08 10:00:30 Opened LevelDB successfully
2014-01-08 10:00:30 Opening LevelDB in C:\Users\Redbool\AppData\Roaming\Litecoin\chainstate
2014-01-08 10:00:30 Opened LevelDB successfully
2014-01-08 10:00:30 LoadBlockIndexDB(): last block file = 0
2014-01-08 10:00:30 LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=1, size=288, heights=0...0, time=2011-10-07...2011-10-07)
2014-01-08 10:00:30 LoadBlockIndexDB(): transaction index disabled
2014-01-08 10:00:30 init message: Verifying blocks...
2014-01-08 10:00:30  block index              39ms
2014-01-08 10:00:30 init message: Loading wallet...
2014-01-08 10:00:31 nFileVersion = 80601
2014-01-08 10:00:31  wallet                  551ms
2014-01-08 10:00:31 SetBestChain: new best=12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2  height=0  log2_work=20.000022  tx=1  date=2011-10-07 07:31:05 progress=0.000000
2014-01-08 10:00:31 init message: Loading addresses...
2014-01-08 10:00:31 ERROR: CAddrman::Read() : open failed
2014-01-08 10:00:31 Invalid or missing peers.dat; recreating
2014-01-08 10:00:31 Loaded 0 addresses from peers.dat  2ms
2014-01-08 10:00:32 RandAddSeed() 242572 bytes
2014-01-08 10:00:32 mapBlockIndex.size() = 1
2014-01-08 10:00:32 nBestHeight = 0
2014-01-08 10:00:32 setKeyPool.size() = 100
2014-01-08 10:00:32 mapWallet.size() = 0
2014-01-08 10:00:32 mapAddressBook.size() = 1
2014-01-08 10:00:32 dnsseed thread start
2014-01-08 10:00:32 Loading addresses from DNS seeds (could take a while)
2014-01-08 10:00:32 net thread start
2014-01-08 10:00:32 opencon thread start
2014-01-08 10:00:32 dumpaddr thread start
2014-01-08 10:00:32 upnp thread start
2014-01-08 10:00:32 init message: Done loading
2014-01-08 10:00:32 refreshWallet
2014-01-08 10:00:32 addcon thread start
2014-01-08 10:00:32 msghand thread start
2014-01-08 10:00:32 Added 20 addresses from 66.178.182.35: 0 tried, 20 new
2014-01-08 10:00:33 trying connection 114.216.241.119:9333 lastseen=83.7hrs
2014-01-08 10:00:33 Added 20 addresses from 151.236.218.211: 0 tried, 40 new
2014-01-08 10:00:33 Added 20 addresses from 198.199.69.98: 0 tried, 60 new

I am trying to compile Litecoin.
When I compile Bitcoin via your scrypts,everything works perfectly,but when I compiled litecoin,it crashes ,when i close it.
you think,i have to change something in makefile-mingw?
legendary
Activity: 1708
Merit: 1020
@templar77: probably the grumpycoin makefile.mingw is a little bit different from bitcoin/other altcoin so that it can not find the libs. compare it to bitcoin, could be you only need to replace a couple of "=" by "?="


[crashing on shutdown]
I got one report by pm about everything working fine and not crashing on shutdown...   why it is crashing on shutdown for you I have no idea. You can try to delete debug.log, provoke the crash and then take a look at the new debug.log - maybe we can learn something.
Other than that my wild guesses would are a version conflict or missing multi threading mode because of makefile differences.
full member
Activity: 224
Merit: 100
I get this error trying to compile Daemon. What can I don?

full member
Activity: 147
Merit: 100
If you have ever built Bitcoin on Windows you probably know it can be a pain. Hopefully these scripts will make things a little easier. Note that the official Windows binaries are cross compiled on Linux.

https://github.com/phelixbtc/bitcoin/tree/0.8.5-EWB

Download
EasyWinBuilder together with Bitcoin v0.8.5: https://github.com/phelixbtc/bitcoin/archive/0.8.5-EWB.zip
(all code is equal to the respective Bitcoin, only the contrib/easywinbuilder folder is new)

How to use
Double click __all_easywinbuilder.bat in the contrib/easywinbuilder folder and follow instructions. You will have to install MinGW and Qt by hand, the rest will run automatically.

Altcoins / other versions
The scripts should also work with different versions / altcoins with a similar structure to current Bitcoin, simply copy&paste the contrib/easywinbuilder folder.

Disassembly hash - removed for now as it seems to only work with certain locales
The script calculates a hash of the disassembly of the final Qt executable. The idea is to validate binaries by several people, a little similar to the real Bitcoin build process. If you know a better way of how to get rid of the binary timestamp let me know.

Credits
Based on the build manual by nitrogenetics (https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479) and older manuals from others.

heavily edited


When I close Compiled altcoin-qt.exe,it crashes,



What can it be?

full member
Activity: 147
Merit: 100
full member
Activity: 147
Merit: 100
after hours of manual frustration i gave this a try. It compiles everything successfully, but both bitcoind and bitcoin-qt crashes on launch Sad
Hmmm.... could be that there is a problem with the MinGW catalog versioning stuff again. Did anyone else do a successful compilation from scratch?
i did.but when i close it,it crashes with problems
launching and closing are two different things.....     are you talking about closing bitcoind via ctrl-c?

I am talking about closing bitcoin-qt/
newbie
Activity: 28
Merit: 0
will this work for building litecoin as well?
legendary
Activity: 1708
Merit: 1020
after hours of manual frustration i gave this a try. It compiles everything successfully, but both bitcoind and bitcoin-qt crashes on launch Sad
Hmmm.... could be that there is a problem with the MinGW catalog versioning stuff again. Did anyone else do a successful compilation from scratch?
i did.but when i close it,it crashes with problems
launching and closing are two different things.....     are you talking about closing bitcoind via ctrl-c?
full member
Activity: 147
Merit: 100
after hours of manual frustration i gave this a try. It compiles everything successfully, but both bitcoind and bitcoin-qt crashes on launch Sad
Hmmm.... could be that there is a problem with the MinGW catalog versioning stuff again. Did anyone else do a successful compilation from scratch?
i did.but when i close it,it crashes with problems
legendary
Activity: 1708
Merit: 1020
after hours of manual frustration i gave this a try. It compiles everything successfully, but both bitcoind and bitcoin-qt crashes on launch Sad
Hmmm.... could be that there is a problem with the MinGW catalog versioning stuff again. Did anyone else do a successful compilation from scratch?
newbie
Activity: 18
Merit: 0
1)When I close Compiled altcoin-qt.exe,it crashes,and after debug in VS 2012, I see something like that:
cannot open pdb file

http://s1.hostingkartinok.com/uploads/images/2014/01/6d2dd19070d52a9b1d24f158f92e5aa7.png

1)What can it be?
I don't see genesis block,and merkleroot in debug file in appdata/roaming/XXXcoin/debug.log
How Can I make it?

http://s1.hostingkartinok.com/uploads/images/2014/01/6d2dd19070d52a9b1d24f158f92e5aa7.png

for fixing the wrong hashes go here:
http://devtome.com/doku.php?id=scrypt_altcoin_cloning_guide&#how_to_clone_scrypt_based_altcoins_for_fun_and_profit
full member
Activity: 147
Merit: 100
member
Activity: 98
Merit: 10
after hours of manual frustration i gave this a try. It compiles everything successfully, but both bitcoind and bitcoin-qt crashes on launch Sad
legendary
Activity: 1708
Merit: 1020
I doubt anyone's really interested, but I'll throw this out there. 

A while back I managed to get Bitcoin-Qt building using CMake and VS2010:

https://github.com/sarchar/bitcoin/tree/cmake-build

Of course, there's no documenting how to set up all the environment vars and such, but it shouldn't be too difficult to figure out.
talk to this dude: https://bitcointalksearch.org/topic/m.3675509
also get outta here with your vs stuff Wink

legendary
Activity: 1708
Merit: 1020
@phelix i'm also getting this error;

Code:
g++ -c -pipe -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_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'c:/Qt/4.8.5/include/QtCore' -I'c:/Qt/4.8.5/include/QtNetwork' -I'c:/Qt/4.8.5/include/QtGui' -I'c:/Qt/4.8.5/include' -I'src' -I'src/json' -I'src/qt' -I'c:/deps' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'c:/deps/boost_1_54_0' -I'c:/deps/db-4.8.30.NC/build_unix' -I'c:/deps/openssl-1.0.1e/include' -I'c:/Qt/4.8.5/include/ActiveQt' -I'build' -I'build' -I'c:/Qt/4.8.5/mkspecs/default' -o build/rpcnet.o src/rpcnet.cpp
Makefile.Release:1867: recipe for target 'build/rpcnet.o' failed


make everything from step2.

I'm doing so
post more. error is probably further up. what coin?
member
Activity: 84
Merit: 10
@phelix i'm also getting this error;

Code:
g++ -c -pipe -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_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'c:/Qt/4.8.5/include/QtCore' -I'c:/Qt/4.8.5/include/QtNetwork' -I'c:/Qt/4.8.5/include/QtGui' -I'c:/Qt/4.8.5/include' -I'src' -I'src/json' -I'src/qt' -I'c:/deps' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'c:/deps/boost_1_54_0' -I'c:/deps/db-4.8.30.NC/build_unix' -I'c:/deps/openssl-1.0.1e/include' -I'c:/Qt/4.8.5/include/ActiveQt' -I'build' -I'build' -I'c:/Qt/4.8.5/mkspecs/default' -o build/rpcnet.o src/rpcnet.cpp
Makefile.Release:1867: recipe for target 'build/rpcnet.o' failed


make everything from step2.

I'm doing so
member
Activity: 84
Merit: 10
edit : solved
full member
Activity: 147
Merit: 100
@phelix i'm also getting this error;

Code:
g++ -c -pipe -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_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'c:/Qt/4.8.5/include/QtCore' -I'c:/Qt/4.8.5/include/QtNetwork' -I'c:/Qt/4.8.5/include/QtGui' -I'c:/Qt/4.8.5/include' -I'src' -I'src/json' -I'src/qt' -I'c:/deps' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'c:/deps/boost_1_54_0' -I'c:/deps/db-4.8.30.NC/build_unix' -I'c:/deps/openssl-1.0.1e/include' -I'c:/Qt/4.8.5/include/ActiveQt' -I'build' -I'build' -I'c:/Qt/4.8.5/mkspecs/default' -o build/rpcnet.o src/rpcnet.cpp
Makefile.Release:1867: recipe for target 'build/rpcnet.o' failed


make everything from step2.
member
Activity: 84
Merit: 10
@phelix i'm also getting this error;

Code:
g++ -c -pipe -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_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'c:/Qt/4.8.5/include/QtCore' -I'c:/Qt/4.8.5/include/QtNetwork' -I'c:/Qt/4.8.5/include/QtGui' -I'c:/Qt/4.8.5/include' -I'src' -I'src/json' -I'src/qt' -I'c:/deps' -I'src/leveldb/include' -I'src/leveldb/helpers' -I'c:/deps/boost_1_54_0' -I'c:/deps/db-4.8.30.NC/build_unix' -I'c:/deps/openssl-1.0.1e/include' -I'c:/Qt/4.8.5/include/ActiveQt' -I'build' -I'build' -I'c:/Qt/4.8.5/mkspecs/default' -o build/rpcnet.o src/rpcnet.cpp
Makefile.Release:1867: recipe for target 'build/rpcnet.o' failed
Pages:
Jump to: