Bitcoin Forum
December 04, 2016, 04:37:35 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to build bitcoin-qt.exe without the Qt DLL dependency?  (Read 23890 times)
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
May 09, 2012, 12:19:37 PM
 #1

How do you guys build the official windows release of bitcoin-qt.exe, so it doesn't need QtCore4.dll and QtGui4.dll at the end?

I'm following every step in readme-qt.rst and at the end I get the exe that is ~13MB smaller, but it needs the two DLLs to start.

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
1480869455
Hero Member
*
Offline Offline

Posts: 1480869455

View Profile Personal Message (Offline)

Ignore
1480869455
Reply with quote  #2

1480869455
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480869455
Hero Member
*
Offline Offline

Posts: 1480869455

View Profile Personal Message (Offline)

Ignore
1480869455
Reply with quote  #2

1480869455
Report to moderator
1480869455
Hero Member
*
Offline Offline

Posts: 1480869455

View Profile Personal Message (Offline)

Ignore
1480869455
Reply with quote  #2

1480869455
Report to moderator
Diapolo
Hero Member
*****
Offline Offline

Activity: 769



View Profile WWW
May 10, 2012, 03:46:11 PM
 #2

I guess you are compiling on Windows? I have given up to try to achieve this Wink.

Dia

Liked my former work for Bitcoin Core? Drop me a donation via:
1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x
bitcoin:1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x?label=Diapolo
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
May 10, 2012, 03:51:25 PM
 #3

I guess you are compiling on Windows? I have given up to try to achieve this Wink.

Dia
Yes I am.

So who is the mysterious developer that builds the official windows binaries?
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.2/bitcoin-0.6.2-win32.zip/download

It's kind of hard to trust the person if nobody is able to reproduce his great job Smiley

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Diapolo
Hero Member
*****
Offline Offline

Activity: 769



View Profile WWW
May 10, 2012, 03:55:40 PM
 #4

I guess you are compiling on Windows? I have given up to try to achieve this Wink.

Dia
Yes I am.

So who is the mysterious developer that builds the official windows binaries?
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.2/bitcoin-0.6.2-win32.zip/download

It's kind of hard to trust the person if nobody is able to reproduce his great job Smiley

The official builds are trustworthy, as some (dunno exact numbers) devs build the executable from a public source (guess from Github) and compare the files via checksum, this ensures not a single one is able to modifiy the code to contain bad stuff.

But you were able to build for yourself, which is a great step (and was hard work ... at least for me ^^).

Dia

Liked my former work for Bitcoin Core? Drop me a donation via:
1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x
bitcoin:1PwnvixzVAKnAqp8LCV8iuv7ohzX2pbn5x?label=Diapolo
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
May 10, 2012, 04:12:27 PM
 #5

Obviously some devs do build the executable.
I just have no clue how they do it, because when I follow instructions from the readme I get an exe that needs the DLLs.

I would guess that they use a different Qt SDK.
May it be that they cross-compile it under Linux?

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
twobitcoins
Full Member
***
Offline Offline

Activity: 144


View Profile
May 10, 2012, 05:07:57 PM
 #6

They cross-compile under Linux using Gitian to create reproducible builds.

To do it under Windows, I think you'll have to build a statically linked version of Qt from sources.  I have not tried it though.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1036


View Profile WWW
May 10, 2012, 05:21:22 PM
 #7

The Linux and Windows binaries are built using gitian. Gitian is a system that builds the source inside an virtual machine running Ubuntu. By carefully controlling the build environment like this, it guarantees that everyone ends up with byte-per-byte the same binary as output. These are signed using GPG, and compared among developers before release. This allows everyone to verify that the distributed binaries are indeed created from the specified source code.

The script for the Windows build can be found here. Note that it's built in a Unix environment, and is probably very different from how you'd do it on Windows itself. Still, it may contain some hints.

aka sipa, core dev team

Tips and donations: 1KwDYMJMS4xq3ZEWYfdBRwYG2fHwhZsipa
piotr_n
Legendary
*
Offline Offline

Activity: 1498


aka tonikt


View Profile WWW
May 10, 2012, 05:22:35 PM
 #8

Oh, OK - all clear now.
Thanks guys.

Check out gocoin - my original project of a bitcoin client written in Go, with some unique features.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!