Bitcoin Forum
September 15, 2024, 04:26:27 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 [36] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
Author Topic: Building headless Bitcoin and Bitcoin-qt on Windows  (Read 419341 times)
nuggetbram
Full Member
***
Offline Offline

Activity: 326
Merit: 100



View Profile
July 28, 2014, 02:25:21 PM
 #701

you really need to install all those thing, toget this to work? isn't just qt creator+mingw enough?

Rember when installing bitcoin on Linux you need to have several dependencies - libboost, libels etc. windows simply has a much, much more complex and irritating installation procedure.

there is a zip link for all the dependencies?


Unfortunately no, as you have to build them all yourself, otherwise your executable will compile and not run - incredibly frustrating when you don't know what's wrong.

There is the "easy win builder" that will download and compile all the depencies for you, but you still need mingw and qt. It's important to make sure that you only install msys with the MinGW installer and use the toolchain to build with - that got me for a while too.
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
July 29, 2014, 07:25:07 PM
 #702

you really need to install all those thing, toget this to work? isn't just qt creator+mingw enough?

Rember when installing bitcoin on Linux you need to have several dependencies - libboost, libels etc. windows simply has a much, much more complex and irritating installation procedure.

Not so,

See message # 1 in this forum, and for really easy on Windows, see
http://www.youtube.com/playlist?list=PLFnWb0ttBBMLyUuniLp3PJ5Mn4tVUlliZ

I have been compiling successfully, and running Bitcoind & BitcoinQt on Windows (using gcc and MSVC++) for over a year. Version 0.8.1, 0.8.2, 0.8.3, 0.8.5, 0.8.6, 0.9.x

See message # 517 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg5937160#msg5937160
or # 615 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg6645385#msg6645385
or # 630 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg6755454#msg6755454

and I'm not the first!

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
July 29, 2014, 10:46:01 PM
 #703

See message # 1 in this forum, and for really easy on Windows, see
http://www.youtube.com/playlist?list=PLFnWb0ttBBMLyUuniLp3PJ5Mn4tVUlliZ

I have been compiling successfully, and running Bitcoind & BitcoinQt on Windows (using gcc and MSVC++) for over a year. Version 0.8.1, 0.8.2, 0.8.3, 0.8.5, 0.8.6, 0.9.x


I think I'll try this route as QT really hates me..

Does the VS version matter?

“God does not play dice"
darkip
Full Member
***
Offline Offline

Activity: 160
Merit: 100


View Profile
July 30, 2014, 09:35:44 AM
 #704

For anyone experiencing make freezing during parallel (-j) builds - I'd recommend using MSYS2 (http://sourceforge.net/projects/msys2/) as the shell because it doesn't have the bug.
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
July 30, 2014, 01:17:38 PM
 #705

See message # 1 in this forum, and for really easy on Windows, see
http://www.youtube.com/playlist?list=PLFnWb0ttBBMLyUuniLp3PJ5Mn4tVUlliZ

I have been compiling successfully, and running Bitcoind & BitcoinQt on Windows (using gcc and MSVC++) for over a year. Version 0.8.1, 0.8.2, 0.8.3, 0.8.5, 0.8.6, 0.9.x


I think I'll try this route as QT really hates me..

Does the VS version matter?
Hello YarkoL,

What bitcoin Qt version &/or what part of the build is giving trouble?

For bitcoin-qt see
https://bitcointalk.org/index.php?topic=349094.0;all
If you want to "Qt-create" in MSVS then you will need the MSVS appropriate to the Qt-creator you are using.  Which would be probably VS 2012?  I can't speak to the Qt versions, I refer you to the forum mentioned above. 

I build bitcoin-qt only with gcc on Windows, as per Nitrogenetics message # 1.  The # 1 that existed last spring and summer (2013), that is, when bitcoin was versions 0.8.1 to 0.8.6.  I have "upped" the OpenSSL (1.0.1h) and levelDB (1.15) libraries but I still use Boost 1.53, BerkeleyDB 4.8.30 for bitcoind.exe (gcc & MSVS) and bitcoin-qt.exe (gcc). 

If you are thinking bitcoind, then any "modern" MSVS ( >= VS 2005) will work. I build with MSVS Express 2005, so VS 2008, 2010, etc. all can import from the previous version, etc. Of course one would have to build one's 4 static libraries, but that is what my videos show.  It is quite easy to build the libraries, so the process becomes quite simple.  It's all in the short videos.

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
Amph
Legendary
*
Offline Offline

Activity: 3248
Merit: 1070



View Profile
August 02, 2014, 11:20:25 AM
 #706

you really need to install all those thing, toget this to work? isn't just qt creator+mingw enough?

Rember when installing bitcoin on Linux you need to have several dependencies - libboost, libels etc. windows simply has a much, much more complex and irritating installation procedure.

Not so,

See message # 1 in this forum, and for really easy on Windows, see
http://www.youtube.com/playlist?list=PLFnWb0ttBBMLyUuniLp3PJ5Mn4tVUlliZ

I have been compiling successfully, and running Bitcoind & BitcoinQt on Windows (using gcc and MSVC++) for over a year. Version 0.8.1, 0.8.2, 0.8.3, 0.8.5, 0.8.6, 0.9.x

See message # 517 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg5937160#msg5937160
or # 615 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg6645385#msg6645385
or # 630 in this forum,
https://bitcointalk.org/index.php?topic=149479.msg6755454#msg6755454

and I'm not the first!

Ron


can i use the libraries of your video plus qt creator instead of vs10?

there is a difference for any other coin? i need something else?
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
August 02, 2014, 05:19:55 PM
 #707

Hello Amph,

I don't understand your English.

can i use the libraries of your video plus qt creator instead of vs10?
I don't use VS2010, so I don't understand what you are referring to?  I don't show Qt-creator at all and I don't build any Qt version, except in a different video for an alternate crypto currency.

The Libraries I show being built are all MS Windows versions. Now what can they be used for?  The can be used to create any program built using MSVS, obviously!  That includes Bitcoin and lots of other crypto currencies and many other programs too!

I don't know where Qt-creator fits into this discussion?  And I think you are asking if you can use VS2010 instead of VS2005?  Yes, you can use any VS you want!  There is a nice video (not mine) of Boost 1.37 (I think?) being made with VS2010!

Are you mixing up my videos with Claire's, where she shows the Qt-creator plug-in for VS2012 (the commercial version) being used to make Bitcoin 0.8.6 and/or Litecoin, I think?
Quote
there is a difference for any other coin?
Are you asking: Is there a difference between crypto currencies in their build proccesses? If you watched my other video, you would have seen that the build process is identical.  The libraries are identical.  The difference is the source code.  But isn't that pretty much true for all the crypto currencies?  The all have pretty much the same gcc make file for the daemon, and pretty much the same gcc make file for the Qt version?
Quote
i need something else?
I don't know what you are asking here?

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
August 02, 2014, 05:42:41 PM
 #708


Hello YarkoL,

What bitcoin Qt version &/or what part of the build is giving trouble?


My woe is summarized succinctly in this post
https://bitcointalk.org/index.php?topic=149479.msg6980520#msg6980520

In addition, I have been able to build a wallet that issues a flurry of little panels with
error messages on shutdown.

I've got quite limited resources since my other machine died. I'm on ubuntu
with whopping 2GB memory, so I wonder if your way would work on VM
with XP and VS 2005

“God does not play dice"
esotericizm
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500



View Profile
August 02, 2014, 05:43:03 PM
 #709

There's some new alts coming out with tor integration. In order to compile using mingw you will need to build libevent from https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

Should be able to link using
Code:
LIBEVENT_INCLUDE_PATH=C:/deps/libevent-2.0.21-stable/include
LIBEVENT_LIB_PATH=C:/deps/libevent-2.0.21-stable/.libs

otherwise you can add the following under LIBS in Makefile.Release
Code:
-lcrypt32 C:/deps/libevent-2.0.21-stable/.deps/libevent.a C:/deps/libevent-2.0.21-stable/.deps/libevent.dll.a -lws2_32
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
August 02, 2014, 05:47:34 PM
Last edit: March 20, 2015, 10:14:54 AM by YarkoL
 #710

There's some new alts coming out with tor integration. In order to compile using mingw you will need to build libevent from https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz


You don't need event lib on windows. (blah blah...)

Came back later to edit this shameful memorial of my
ignorance.

The above instruction ^ about building libevent in windows is correct.

“God does not play dice"
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
August 02, 2014, 09:33:24 PM
 #711

Hello YarkoL,

Hello YarkoL,

What bitcoin Qt version &/or what part of the build is giving trouble?

My woe is summarized succinctly in this post
https://bitcointalk.org/index.php?topic=149479.msg6980520#msg6980520
If that's a Qt build thing, I find that having built libleveldb.a and libmemenv.a for the daemon, I don't need to do it again when building Qt.  Maybe something like this message might help?https://bitcointalk.org/index.php?topic=149479.msg6339803#msg6339803
Quote

In addition, I have been able to build a wallet that issues a flurry of little panels with
error messages on shutdown.
That sounds like this post: https://bitcointalk.org/index.php?topic=149479.msg4242494#msg4242494  As I remember, that seemed to be most prevalent in Bitcoin0.8.5 and any *coin derived from Bitcoin 0.8.5.  I don't remember what fixed it for me, but 0.8.6 & 0.9.x all work OK.
Quote

I've got quite limited resources since my other machine died. I'm on ubuntu
with whopping 2GB memory, so I wonder if your way would work on VM
with XP and VS 2005
All I can say is that I run XP on a 1.8GHz AMD Athlon 3200+ CPU with the maximum 3GB of ram available for XP and it works fine. Sometimes I'll have 3 or 4 IDE's open, sometimes 5 browser windows open on ~300 web pages (yikes!) and I can still run Bitcoind or Qt, make videos, etc.  So I think you can do it too!
Quote

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
coinerer
Hero Member
*****
Offline Offline

Activity: 1414
Merit: 608


PredX - AI-Powered Prediction Market


View Profile WWW
August 09, 2014, 07:01:43 PM
 #712

Probably due to bugs in boost_1_56_0 i can't compile Quark v0.8.3 wallet nor Bitcoin v0.9.2.1 wallet with that version of boost.

from:
  boost_1_56_0/interprocess/errors.hpp:37:0
  boost_1_56_0/interprocess/exceptions.hpp:20,
  boost_1_56_0/interprocess/file_lock.hpp:20,
  init.cpp:36,

problem is here:
  boost_1_56_0/interprocess/detail/win32_api.hpp:1614:20
  boost_1_56_0/interprocess/detail/win32_api.hpp:1541:31

  return FunctionAdresses[id] ;



Is there some configuration solution?


nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
August 10, 2014, 12:36:11 AM
 #713

Same here, it compiles when using -fpermissive though.
I would stick with boost 1.55 anyway.

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
ftc-c
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
August 12, 2014, 06:48:18 AM
 #714

Code:
  CXXLD  qt/bitcoin-qt.exe
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(qrspec.o): In function `QRspec_new
Frame':
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:530: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:536: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(qrspec.o): In function `QRspec_cle
arCache':
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:553: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:560: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(rscode.o): In function `init_rs':
d:\BTC\Dev\qrencode-3.4.3/rscode.c:217: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/rscode.c:237: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(rscode.o): In function `free_rs_ca
che':
d:\BTC\Dev\qrencode-3.4.3/rscode.c:256: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/rscode.c:266: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(mqrspec.o): In function `MQRspec_n
ewFrame':
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:248: undefined reference to `_imp__pthread_m
utex_lock'
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:254: undefined reference to `_imp__pthread_m
utex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(mqrspec.o): In function `MQRspec_c
learCache':
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:271: undefined reference to `_imp__pthread_m
utex_lock'
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:278: undefined reference to `_imp__pthread_m
utex_unlock'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [qt/bitcoin-qt.exe] Error 1
make[1]: Leaving directory `/d/btc/dev/bitcoin-master/src'
make: *** [all-recursive] Error 1

how to fix ?
coinerer
Hero Member
*****
Offline Offline

Activity: 1414
Merit: 608


PredX - AI-Powered Prediction Market


View Profile WWW
August 12, 2014, 07:19:10 AM
 #715

Code:
  CXXLD  qt/bitcoin-qt.exe
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(qrspec.o): In function `QRspec_new
Frame':
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:530: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:536: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(qrspec.o): In function `QRspec_cle
arCache':
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:553: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/qrspec.c:560: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(rscode.o): In function `init_rs':
d:\BTC\Dev\qrencode-3.4.3/rscode.c:217: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/rscode.c:237: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(rscode.o): In function `free_rs_ca
che':
d:\BTC\Dev\qrencode-3.4.3/rscode.c:256: undefined reference to `_imp__pthread_mu
tex_lock'
d:\BTC\Dev\qrencode-3.4.3/rscode.c:266: undefined reference to `_imp__pthread_mu
tex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(mqrspec.o): In function `MQRspec_n
ewFrame':
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:248: undefined reference to `_imp__pthread_m
utex_lock'
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:254: undefined reference to `_imp__pthread_m
utex_unlock'
d:/BTC/Dev/qrencode-3.4.3/.libs/libqrencode.a(mqrspec.o): In function `MQRspec_c
learCache':
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:271: undefined reference to `_imp__pthread_m
utex_lock'
d:\BTC\Dev\qrencode-3.4.3/mqrspec.c:278: undefined reference to `_imp__pthread_m
utex_unlock'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [qt/bitcoin-qt.exe] Error 1
make[1]: Leaving directory `/d/btc/dev/bitcoin-master/src'
make: *** [all-recursive] Error 1

how to fix ?




Try to compare and if needed change this variables in files on first page of this topic:

QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.4
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.4/.libs


rh1n0
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
August 15, 2014, 07:11:18 PM
 #716

I am getting this error when launching my wallet.

Quote
The program can't start because libwinpthread-1.dll is missing from your computer. Try reinstalling the program to fix this problem.

http://www.absoluteefficiency.com/images/cat/catcoin_wallet_build_windows.pdf

They fixed the problem here by adding -lpthread to LIBS variable in Makefile.Release but this did not work for me. Has anyone else experienced this? The qt-wallet runs fine on my VM (windows xp 32-bit) but I get this error when launching wallet from my PC (windows 7 64-bit).
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
August 15, 2014, 10:51:59 PM
 #717

You can ship libwinpthread-1.dll along with the executable or compile a statically linked executable by adding the -static flag to QMAKE_LFLAGS, eg:
Code:
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
rh1n0
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
August 16, 2014, 12:03:45 AM
 #718

You can ship libwinpthread-1.dll along with the executable or compile a statically linked executable by adding the -static flag to QMAKE_LFLAGS, eg:
Code:
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static
Thanks
ledmaniak
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
August 17, 2014, 12:30:38 PM
 #719

Trying to compile an alt coin using this guide.

When I build altcoind.exe it works without error(although the exe crashes when I try altcoin.exe -daemon) but building the Qt fails big time.

Does anyone know what this means:
Quote
duplicate section `.rdata [...] libboost_program_options-mgw49-mt-s-1_55,a(cmdline.o) has different size

I can hardly find any information on google.. Huh

Bitcoin: 1Cxi8BLvScSm1mW6kjb5MNeJZPrvAiYL6B
Litecoin: LLmjtrrq1ZeD51NSUJ8VanuQduW8Ma3jrs
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
August 19, 2014, 02:36:04 AM
 #720

Trying to compile an alt coin using this guide.

When I build altcoind.exe it works without error(although the exe crashes when I try altcoin.exe -daemon) but building the Qt fails big time.

Does anyone know what this means:
Quote
duplicate section `.rdata [...] libboost_program_options-mgw49-mt-s-1_55,a(cmdline.o) has different size

I can hardly find any information on google.. Huh
Hello ?

Perhaps
https://www.google.com/?gws_rd=ssl#q=gcc+duplicate+section+has+different+size
and see for example:
http://stackoverflow.com/questions/11635485/regex-boost-library-linking-in-release-mode-warns-duplicate-section-has-differe

Which *coin?  BitcoinDark perhaps?  Wink

Ron



LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 [36] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!