Bitcoin Forum
April 25, 2024, 09:17:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to build bitcoin-qt.exe without the Qt DLL dependency?  (Read 24093 times)
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


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 full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
1714036637
Hero Member
*
Offline Offline

Posts: 1714036637

View Profile Personal Message (Offline)

Ignore
1714036637
Reply with quote  #2

1714036637
Report to moderator
1714036637
Hero Member
*
Offline Offline

Posts: 1714036637

View Profile Personal Message (Offline)

Ignore
1714036637
Reply with quote  #2

1714036637
Report to moderator
1714036637
Hero Member
*
Offline Offline

Posts: 1714036637

View Profile Personal Message (Offline)

Ignore
1714036637
Reply with quote  #2

1714036637
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714036637
Hero Member
*
Offline Offline

Posts: 1714036637

View Profile Personal Message (Offline)

Ignore
1714036637
Reply with quote  #2

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

Activity: 769
Merit: 500



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 (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


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 full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Diapolo
Hero Member
*****
Offline Offline

Activity: 769
Merit: 500



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 (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


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 full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
twobitcoins
Full Member
***
Offline Offline

Activity: 144
Merit: 100


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: 1072
Merit: 1174


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.

I do Bitcoin stuff.
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


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 full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Pages: [1]
  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!