Bitcoin Forum
September 25, 2018, 06:03:51 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 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 415608 times)
freemanjackal
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250

FINANCIAL FREEDOM, PROFESSIONAL STRATEGY


View Profile
July 24, 2017, 01:12:14 PM
 #1181

i would like to compile the windows binaries in ubuntu, any useful guide??

1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
1537898631
Hero Member
*
Offline Offline

Posts: 1537898631

View Profile Personal Message (Offline)

Ignore
1537898631
Reply with quote  #2

1537898631
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1659


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
July 24, 2017, 04:32:44 PM
 #1182

i would like to compile the windows binaries in ubuntu, any useful guide??
There are instructions for cross compiling here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md

luanptit
Full Member
***
Offline Offline

Activity: 270
Merit: 100


View Profile
July 25, 2017, 05:42:48 PM
 #1183

I'm having an issue compiling an alt qt. From what I can tell, this is an issue with building a static/shared dependency miniupnpc. For the life of me I can't get past this error though no matter what I try.

Things I've tried;
  • Compile shared and static miniupnpc with  mingw32-make makefile.mingw upnpc-shared/static
  • Tried disabling miniupnpc by qmake use_upnp=-
  • Tried grabbing an old version of miniupnpc and using that
  • Successfully built Bitcoind and Bitcoin-QT to make sure all deps were good

Here is the error.
Code:
./build\net.o:net.cpp:(.text+0x8673): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x86aa): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x86eb): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8767): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x877a): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8867): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x88f3): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x897b): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x899a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x89a9): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:311: recipe for target 'release\coin-qt.exe' failed
mingw32-make: *** [release\coin-qt.exe] Error 1

Any suggestions or guidance would be much appreciated.

Well my apologies. 5 minutes after posting this I figured it out. Based on this, I figured out that I needed to add this line to my Makefile.Release generated by qmake.

Code:
DEFINES       = -DMINIUPNP_STATICLIB

I am getting same error.
Tried adding line below to Make.Release file still same error.
Code:
DEFINES       = -DMINIUPNP_STATICLIB

Here's the error code.
Code:
./build\net.o:net.cpp:(.text+0x88f3): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x892a): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x896b): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x89e7): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x89fa): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8ae7): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x8b73): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x8bfb): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x8c1a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8c29): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x960 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:291: recipe for target 'release\mycoin-qt.exe' failed
mingw32-make: *** [release\mycoin-qt.exe] Error 1

C:\mycoin>

anything to fix in net.cpp?

Thanks in advance.

Update.
Solved....

Managed to compiled qt without UPNP.

Now the problem is I can not connect 2 wallet peering because UPNP is disabled and have not set up nodes yet on my vps.
Error 'connections timeout' continuously.

Tried adding private IPs of both client machines in both clients .conf files.

Any trick to connect 2 clients peering without UPNP.
Or trick to enable UPNP without re-compiling.

Thanks in advance.


Update..
Managed to connect wallets and it's working fine.
Now the issue is i configured Max_Money 10Million and nsubsidy 1billion it means 100 percent premined at first block and 1 transaction for coinbase maturity.
But everytime i enter setgenerate true -1 in client consol new block is mined with another 10Million coins and all coins are immature.
Any help, how to set max money supply and 100 percent premined in src code i have done as following.

main.h
/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_BLOCK_SIZE = 1000000;                      // 1000KB block hard limit
/** Obsolete: maximum size for mined blocks */
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/4;         // 250KB  block soft limit
/** Default for -blockmaxsize, maximum size for mined blocks **/
static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 250000;
/** Default for -blockprioritysize, maximum space for zero/low-fee transactions **/
static const unsigned int DEFAULT_BLOCK_PRIORITY_SIZE = 17000;
/** The maximum size for transactions we're willing to relay/mine */
static const unsigned int MAX_STANDARD_TX_SIZE = 100000;
/** The maximum allowed number of signature check operations in a block (network rule) */
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 25;
/** The maximum size of a blk?Huh?.dat file (since 0.Cool */
static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB
/** The pre-allocation chunk size for blk?Huh?.dat files (since 0.Cool */
static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB
/** The pre-allocation chunk size for rev?Huh?.dat files (since 0.Cool */
static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB
/** Fake height value used in CCoins to signify they are only in the memory pool (since 0.Cool */
static const unsigned int MEMPOOL_HEIGHT = 0x7FFFFFFF;
/** Dust Soft Limit, allowed with additional fee per output */
static const int64 DUST_SOFT_LIMIT = 100000; // 0.001 MYCOIN
/** Dust Hard Limit, ignored as wallet inputs (mininput default) */
static const int64 DUST_HARD_LIMIT = 1000;   // 0.00001 MYCOIN mininput
/** No amount larger than this (in satoshi) is valid */
static const int64 MAX_MONEY = 10000000 * COIN;
inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 1;
/** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */
static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov  5 00:53:20 1985 UTC
/** Maximum number of script-checking threads allowed */
static const int MAX_SCRIPTCHECK_THREADS = 16;
#ifdef USE_UPNP
static const int fHaveUPnP = true;
#else
static const int fHaveUPnP = false;
#endif


main.cpp

    int64 nSubsidy = 10000000 * COIN;
static const int64 nTargetTimespan = 10 * 30; // MYCOIN: 5 minutes
static const int64 nTargetSpacing = 1 * 30; // MYCOIN: 30 seconds

I want to make 10million coin maximum, 100 percent premined and no more than 10million coins can generate.

Your help will be appriciated.
Thanks in advance.

Hi, how to solve this problem friend?
Code:
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x960 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:291: recipe for target 'release\mycoin-qt.exe' failed
mingw32-make: *** [release\mycoin-qt.exe] Error 1
ermaxinc
Sr. Member
****
Offline Offline

Activity: 379
Merit: 251


DeepOnion


View Profile
August 12, 2017, 09:33:44 PM
 #1184

Nice guide. Thank you.
Bit how its use for other protocol, example like x13?
How its use for altcoin?

           ▀██▄ ▄██▀
            ▐█████▌
           ▄███▀███▄
         ▄████▄  ▀███▄
       ▄███▀ ▀██▄  ▀███▄
     ▄███▀  ▄█████▄  ▀███▄
   ▄███▀  ▄███▀ ▀███▄  ▀███▄
  ███▀  ▄████▌   ▐████▄  ▀███
 ███   ██▀  ██▄ ▄██  ▀██   ███
███   ███  ███   ███  ███   ███
███   ███   ███████   ███   ███
 ███   ███▄▄       ▄▄███   ███
  ███▄   ▀▀█████████▀▀   ▄███
   ▀████▄▄           ▄▄████▀
      ▀▀███████████████▀▀
DeepOnion
Anonymous and Untraceable
ANN  Whitepaper  Facebook  Twitter  Telegram  Discord 





      ▄▄██████████▄▄
    ▄███▀▀      ▀▀█▀   ▄▄
   ███▀              ▄███
  ███              ▄███▀   ▄▄
 ███▌  ▄▄▄▄      ▄███▀   ▄███
▐███  ██████   ▄███▀   ▄███▀
███▌ ███  ███▄███▀   ▄███▀
███▌ ███   ████▀   ▄███▀
███▌  ███   █▀   ▄███▀  ███
▐███   ███     ▄███▀   ███
 ███▌   ███  ▄███▀     ███
  ███    ██████▀      ███
   ███▄             ▄███
    ▀███▄▄       ▄▄███▀
      ▀▀███████████▀▀
.
JUNGWOO CHOI
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 16, 2017, 02:49:56 AM
 #1185

Hi~ This is jungwoo

I don't know this situation...

https://bitcointalk.org/index.php?topic=149479.0

2.7 Qt 5 libraries:

set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.1l\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.1l

what is this??
Where do you type this sentence?

I did this at the windows command prompt

set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.1l\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.1l

I entered these things.
But I do not think so.
Where on earth are those things entered?
Oh, and
Qt5.3.2 version is no longer available for download, so I received 5.6.2 instead of replacing it?
old c coder
Sr. Member
****
Offline Offline

Activity: 259
Merit: 250



View Profile WWW
August 16, 2017, 03:28:20 AM
 #1186

Hi~ This is jungwoo

I don't know this situation...

https://bitcointalk.org/index.php?topic=149479.0

2.7 Qt 5 libraries:

set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.1l\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.1l

what is this??
Where do you type this sentence?
too long to explain environment variables in various versions of Windows, see:
https://www.google.com/search?site=&source=hp&q=in+Windows%2C+where+do+you+enter+environment+variables
Quote

I did this at the windows command prompt

set INCLUDE=C:\deps\libpng-1.6.16;C:\deps\openssl-1.0.1l\include
set LIB=C:\deps\libpng-1.6.16\.libs;C:\deps\openssl-1.0.1l

I entered these things.
But I do not think so.
Where on earth are those things entered?
Oh, and
Qt5.3.2 version is no longer available for download, so I received 5.6.2 instead of replacing it?
Ron


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

Activity: 3
Merit: 0


View Profile
September 08, 2017, 08:19:18 AM
 #1187

Hi nitrogenetics,

Thanks for sharing the information.
I am looking for a similar guide for setting it all up on a linux(Fedora) system.

Do you have any reference?

I am absolutely new to the gamut of CryptoCurrency.

Regards
ironsniper
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
September 28, 2017, 03:14:56 PM
 #1188

hey everyone i have been compiling qt4 wallets for a long while now and there is one thing that has been bothering me since i first got started and thats compiling wallets so they dont need the extra .dll files to run, i have added the following code to every .pro file and still it is hit and miss, sometimes it works and 99.9% of the time it does not work, is there an extra step i am missing? i compiled qt with the -static option and i add the CONFIG += static but again hit and miss

Code:
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware -static
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1659


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
September 29, 2017, 01:18:46 AM
 #1189

This guide is quite outdated now and no longer really accurate, thus I will be locking it as it is also attracting a lot of spam and off topic posts. Bitcoin Core Windows builds are cross compiled in an Ubuntu environment. Windows 10 has a feature called the Windows Subsystem for Linux which is essentially Ubuntu on Windows. Instructions for making Windows builds using the WSL are available here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md.

Pages: « 1 ... 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:  

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!