Bitcoin Forum
May 11, 2024, 07:30:11 AM *
News: Latest Bitcoin Core release: 27.0 [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 419326 times)
waser12
Full Member
***
Offline Offline

Activity: 476
Merit: 100



View Profile WWW
December 14, 2014, 12:42:29 PM
Last edit: December 14, 2014, 12:58:01 PM by waser12
 #821

strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

1715412611
Hero Member
*
Offline Offline

Posts: 1715412611

View Profile Personal Message (Offline)

Ignore
1715412611
Reply with quote  #2

1715412611
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715412611
Hero Member
*
Offline Offline

Posts: 1715412611

View Profile Personal Message (Offline)

Ignore
1715412611
Reply with quote  #2

1715412611
Report to moderator
1715412611
Hero Member
*
Offline Offline

Posts: 1715412611

View Profile Personal Message (Offline)

Ignore
1715412611
Reply with quote  #2

1715412611
Report to moderator
1715412611
Hero Member
*
Offline Offline

Posts: 1715412611

View Profile Personal Message (Offline)

Ignore
1715412611
Reply with quote  #2

1715412611
Report to moderator
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 14, 2014, 01:06:36 PM
 #822

ever used webkit// webkitwidgets? Trying to include a secure browser in the QT but it keeps saying the file doesn't exist

Webkit is only supported on qt shared builds afaik. To compile shared qt libraries including webkit you can do as follows:
Install perl, pyhton and ruby (make sure they are in path)
http://www.activestate.com/activeperl/downloads
https://www.python.org/downloads
http://rubyinstaller.org/downloads

(msys) compile icu: http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.zip
Code:
cd /c/deps/icu/source/
./runConfigureICU MinGW --prefix=$PWD/../dist --enable-shared --disable-static
make && make install

(msys) compile both static and shared openssl: http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Code:
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure shared no-dso mingw
make

(cmd) compile qt: http://download.qt-project.org/official_releases/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.7z
Code:
set PATH=%PATH%;C:\deps\icu\dist\lib
set INCLUDE=C:\deps\openssl-1.0.1j\include;C:\deps\icu\dist\include
set LIB=C:\deps\openssl-1.0.1j;C:\deps\icu\dist\lib

configure.bat -release -opensource -confirm-license -shared -make libs -make tools -no-opengl -system-zlib -qt-pcre -qt-libpng -icu -no-freetype -no-angle -no-vcproj -openssl -no-dbus

mingw32-make

As an alternative I think you can install the prebuilt qt package (http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe) and compile everything else with the included mingw-builds toolchain.



strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

You should have a look at configure output to see why bitcoin-qt is not being built

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
altcoinex
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


Director - www.cubeform.io


View Profile WWW
December 15, 2014, 02:04:00 PM
 #823

strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

Check the release folder as opposed to src, that is where most circumstances will place it. Also, note as in the guide, compiling the daemon and qt are separate.


                                     ╓╢╬╣╣╖
                                   ┌║██████║∩
                                   ]█████████
                                    ╜██████╝`
                                      ╙╜╜╜`
                                   ╓╥@@@@@@╥╓
         ╓╖@@╖,                 ,@║██████████╢@,                 ,╓@@╖╓
       ╓╢██████╢.              ╓╢███████████████╖               ║╢█████║╓
       ║█████████    ,,╓╓,,   ┌║█████████████████┐   ,,╓╓,,    ]█████████
       └╢██████║` ╓╢║██████╢║∩``╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙`»╢╢██████╢║╖  ║███████╜
         "╜╜╜╜` ╖╢█████████╣╜                      └╢██████████@ `╜╜╜╜╜
               ║██████████╜                          ╙╢██████████
              ┌█████████╜                              ╙╢█████████
              └███████╨`                                 ╜████████
               ║████╨╜                                    `╢█████
                ╙╢╣╜                                        └╢█╜
                ,,                                            ,,
             ╓@║██┐                                          ┌██║@╓
            ╢██████                                          ]█████H
           ╢███████∩                                        ┌████████
  ╓@@@@╓   █████████                                        ║████████`  ╓@@@@╖
╓╢██████║. █████████∩                                      ┌█████████ ,║███████╖
██████████ └█████████                                      ██████████ ]█████████
`║██████╜`  └╢████████                                    ┌███████╣╜   ╙██████╨`
  `╙╜╜╙`      `╙╨╢████                                    █████╝╜`       `╙╜╜`
                      ]@╓                              ╓╖H
                      ███╢║@╓,                    ,╓@╢╢███`
                      ████████╢@╖╓.           ╓╖@║████████`
                      ]███████████╢║@╓,  ,╓@╢╢████████████
                       ╙╢█████████████╨` ╜██████████████╜
                         ╙╝╢███████║╜`    `╜║████████╝╜`
                     ,╓@@@╓  `²╙``             `╙²`  ╓@@@╖,
                    ║╢█████╢H                      ╓╢██████H
                    █████████                      █████████`
                    ╙╢██████╜                      ╙╢██████╜
                      └╨╩╝┘                          └╨╩╝╜
WINFLOW.
██
██
██
██
██
██
██
██
██
██
██
██
██
..
██
██
██
██
██
██
██
██
██
██
██
██
██
.
hack_
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
December 15, 2014, 02:52:00 PM
 #824

strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

check config + make sure the client isnt running
cinnamon_carter
Legendary
*
Offline Offline

Activity: 1148
Merit: 1018


It's about time -- All merrit accepted !!!


View Profile WWW
December 16, 2014, 02:20:15 AM
 #825

last time i built it, and with 9.x i think it will show up in src/qt

older 8.x builds tend to show up in the release folder.... fyi


strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

Check the release folder as opposed to src, that is where most circumstances will place it. Also, note as in the guide, compiling the daemon and qt are separate.

Check out my coin Photon
Merge Mine 5 other Blake 256 coins - 6x your hash power  https://www.blakecoin.org/

The obvious choice is not always the best choice.

LOOK DEEPER - Look into the Blake 256 Family -- CC
hack_
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
December 16, 2014, 02:41:36 AM
 #826

ever used webkit// webkitwidgets? Trying to include a secure browser in the QT but it keeps saying the file doesn't exist

Webkit is only supported on qt shared builds afaik. To compile shared qt libraries including webkit you can do as follows:
Install perl, pyhton and ruby (make sure they are in path)
http://www.activestate.com/activeperl/downloads
https://www.python.org/downloads
http://rubyinstaller.org/downloads

(msys) compile icu: http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.zip
Code:
cd /c/deps/icu/source/
./runConfigureICU MinGW --prefix=$PWD/../dist --enable-shared --disable-static
make && make install

(msys) compile both static and shared openssl: http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Code:
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure shared no-dso mingw
make

(cmd) compile qt: http://download.qt-project.org/official_releases/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.7z
Code:
set PATH=%PATH%;C:\deps\icu\dist\lib
set INCLUDE=C:\deps\openssl-1.0.1j\include;C:\deps\icu\dist\include
set LIB=C:\deps\openssl-1.0.1j;C:\deps\icu\dist\lib

configure.bat -release -opensource -confirm-license -shared -make libs -make tools -no-opengl -system-zlib -qt-pcre -qt-libpng -icu -no-freetype -no-angle -no-vcproj -openssl -no-dbus

mingw32-make

As an alternative I think you can install the prebuilt qt package (http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe) and compile everything else with the included mingw-builds toolchain.



strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

You should have a look at configure output to see why bitcoin-qt is not being built

just finished the build, will test today.

So is the qt-everywhere-opensource a more complete version of QT?
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 16, 2014, 03:56:03 PM
 #827

If you are going to compile qtwebkit (not required for reference implementation) you will need the full package, not just base and tools.

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
altcoinex
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


Director - www.cubeform.io


View Profile WWW
December 17, 2014, 04:24:13 PM
 #828

Further reading for QTWebkit On Windows, includes direct method and a simpler working MingW method:
https://trac.webkit.org/wiki/BuildingQtOnWindows


                                     ╓╢╬╣╣╖
                                   ┌║██████║∩
                                   ]█████████
                                    ╜██████╝`
                                      ╙╜╜╜`
                                   ╓╥@@@@@@╥╓
         ╓╖@@╖,                 ,@║██████████╢@,                 ,╓@@╖╓
       ╓╢██████╢.              ╓╢███████████████╖               ║╢█████║╓
       ║█████████    ,,╓╓,,   ┌║█████████████████┐   ,,╓╓,,    ]█████████
       └╢██████║` ╓╢║██████╢║∩``╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙`»╢╢██████╢║╖  ║███████╜
         "╜╜╜╜` ╖╢█████████╣╜                      └╢██████████@ `╜╜╜╜╜
               ║██████████╜                          ╙╢██████████
              ┌█████████╜                              ╙╢█████████
              └███████╨`                                 ╜████████
               ║████╨╜                                    `╢█████
                ╙╢╣╜                                        └╢█╜
                ,,                                            ,,
             ╓@║██┐                                          ┌██║@╓
            ╢██████                                          ]█████H
           ╢███████∩                                        ┌████████
  ╓@@@@╓   █████████                                        ║████████`  ╓@@@@╖
╓╢██████║. █████████∩                                      ┌█████████ ,║███████╖
██████████ └█████████                                      ██████████ ]█████████
`║██████╜`  └╢████████                                    ┌███████╣╜   ╙██████╨`
  `╙╜╜╙`      `╙╨╢████                                    █████╝╜`       `╙╜╜`
                      ]@╓                              ╓╖H
                      ███╢║@╓,                    ,╓@╢╢███`
                      ████████╢@╖╓.           ╓╖@║████████`
                      ]███████████╢║@╓,  ,╓@╢╢████████████
                       ╙╢█████████████╨` ╜██████████████╜
                         ╙╝╢███████║╜`    `╜║████████╝╜`
                     ,╓@@@╓  `²╙``             `╙²`  ╓@@@╖,
                    ║╢█████╢H                      ╓╢██████H
                    █████████                      █████████`
                    ╙╢██████╜                      ╙╢██████╜
                      └╨╩╝┘                          └╨╩╝╜
WINFLOW.
██
██
██
██
██
██
██
██
██
██
██
██
██
..
██
██
██
██
██
██
██
██
██
██
██
██
██
.
petrolefr
Member
**
Offline Offline

Activity: 476
Merit: 10


View Profile
December 20, 2014, 03:56:01 PM
 #829

Thanks for this excellent guide.

It's possible to compile bitcoin 0.8.6 with qt 5.3.2 or i have to install qt 4.8.6?
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 20, 2014, 06:42:59 PM
 #830

Yes, but only after applying patches for qt5 compatibility to 0.8.6 sources:

Remove #define loop from util.h and replace loop with while (true) in
src/bitcoinrpc.cpp
src/main.cpp
src/net.cpp
src/script.cpp
src/util.cpp
src/wallet.cpp
src/walletdb.cpp
see: https://github.com/bitcoin/bitcoin/commit/8351d55cd3955c95c5e3fe065a456db08cc8a559

Qt5 compatibility. #if QT_VERSION < 0x050000 ... in
src/qt/addressbookpage.cpp
src/qt/bitcoin.cpp
src/qt/bitcoingui.cpp
src/qt/guiutil.cpp
src/qt/paymentserver.cpp
src/qt/qrcodedialog.cpp
src/qt/rpcconsole.cpp
src/qt/sendcoinsdialog.cpp
src/qt/transactionview.cpp
src/qt/walletview.cpp
see: https://github.com/bitcoin/bitcoin/commit/25c0cce7fb494fcb871d134e28b26504d30e34d3
http://qt-project.org/doc/qt-5.0/qtdoc/sourcebreaks.html
http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

Qt5 compatibility patch:
Code:
--- bitcoinrpc.cpp	Thu Dec 05 13:11:26 2013
+++ bitcoinrpc.cpp Tue Dec 31 02:25:11 2013
@@ -417,7 +417,7 @@
 int ReadHTTPHeaders(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet)
 {
     int nLen = 0;
-    loop
+    while (true)
     {
         string str;
         std::getline(stream, str);
--- main.cpp Thu Dec 05 13:11:26 2013
+++ main.cpp Tue Dec 31 02:25:11 2013
@@ -4551,7 +4551,7 @@
     CReserveKey reservekey(pwallet);
     unsigned int nExtraNonce = 0;
 
-    try { loop {
+    try { while (true) {
         while (vNodes.empty())
             MilliSleep(1000);
 
@@ -4591,7 +4591,7 @@
         uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
         uint256 hashbuf[2];
         uint256& hash = *alignup<16>(hashbuf);
-        loop
+        while (true)
         {
             unsigned int nHashesDone = 0;
             unsigned int nNonceFound;
--- net.cpp Thu Dec 05 13:11:26 2013
+++ net.cpp Tue Dec 31 02:25:11 2013
@@ -135,7 +135,7 @@
 bool RecvLine(SOCKET hSocket, string& strLine)
 {
     strLine = "";
-    loop
+    while (true)
     {
         char c;
         int nBytes = recv(hSocket, &c, 1, 0);
@@ -307,7 +307,7 @@
     {
         if (strLine.empty()) // HTTP response is separated from headers by blank line
         {
-            loop
+            while (true)
             {
                 if (!RecvLine(hSocket, strLine))
                 {
@@ -750,7 +750,7 @@
 void ThreadSocketHandler()
 {
     unsigned int nPrevNodeCount = 0;
-    loop
+    while (true)
     {
         //
         // Disconnect nodes
@@ -1114,7 +1114,7 @@
         string strDesc = "Bitcoin " + FormatFullVersion();
 
         try {
-            loop {
+            while (true) {
 #ifndef UPNPDISCOVER_SUCCESS
                 /* miniupnpc 1.5 */
                 r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
@@ -1378,7 +1378,7 @@
 
     // Initiate network connections
     int64 nStart = GetTime();
-    loop
+    while (true)
     {
         ProcessOneShot();
 
@@ -1429,7 +1429,7 @@
         int64 nANow = GetAdjustedTime();
 
         int nTries = 0;
-        loop
+        while (true)
         {
             // use an nUnkBias between 10 (no outgoing connections) and 90 (8 outgoing connections)
             CAddress addr = addrman.Select(10 + min(nOutbound,8)*10);
--- script.cpp Thu Dec 05 13:11:26 2013
+++ script.cpp Tue Dec 31 02:25:11 2013
@@ -1163,7 +1163,7 @@
         // Compare
         CScript::const_iterator pc1 = script1.begin();
         CScript::const_iterator pc2 = script2.begin();
-        loop
+        while (true)
         {
             if (pc1 == script1.end() && pc2 == script2.end())
             {
--- util.cpp Thu Dec 05 13:11:26 2013
+++ util.cpp Tue Dec 31 02:25:11 2013
@@ -311,7 +311,7 @@
     char* p = buffer;
     int limit = sizeof(buffer);
     int ret;
-    loop
+    while (true)
     {
         va_list arg_ptr;
         va_copy(arg_ptr, ap);
@@ -371,7 +371,7 @@
         return;
     string::size_type i1 = 0;
     string::size_type i2;
-    loop
+    while (true)
     {
         i2 = str.find(c, i1);
         if (i2 == str.npos)
@@ -500,7 +500,7 @@
 {
     // convert hex dump to vector
     vector<unsigned char> vch;
-    loop
+    while (true)
     {
         while (isspace(*psz))
             psz++;
@@ -954,7 +954,7 @@
 
 bool WildcardMatch(const char* psz, const char* mask)
 {
-    loop
+    while (true)
     {
         switch (*mask)
         {
--- util.h Thu Dec 05 13:11:26 2013
+++ util.h Tue Dec 31 02:25:11 2013
@@ -37,7 +37,6 @@
 static const int64 COIN = 100000000;
 static const int64 CENT = 1000000;
 
-#define loop                for (;;)
 #define BEGIN(a)            ((char*)&(a))
 #define END(a)              ((char*)&((&(a))[1]))
 #define UBEGIN(a)           ((unsigned char*)&(a))
--- wallet.cpp Thu Dec 05 13:11:26 2013
+++ wallet.cpp Tue Dec 31 02:25:11 2013
@@ -1173,7 +1173,7 @@
         LOCK2(cs_main, cs_wallet);
         {
             nFeeRet = nTransactionFee;
-            loop
+            while (true)
             {
                 wtxNew.vin.clear();
                 wtxNew.vout.clear();
--- walletdb.cpp Thu Dec 05 13:11:26 2013
+++ walletdb.cpp Tue Dec 31 02:25:11 2013
@@ -73,7 +73,7 @@
     if (!pcursor)
         throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor");
     unsigned int fFlags = DB_SET_RANGE;
-    loop
+    while (true)
     {
         // Read next record
         CDataStream ssKey(SER_DISK, CLIENT_VERSION);
@@ -415,7 +415,7 @@
             return DB_CORRUPT;
         }
 
-        loop
+        while (true)
         {
             // Read next record
             CDataStream ssKey(SER_DISK, CLIENT_VERSION);
--- qt/addressbookpage.cpp Thu Dec 05 13:11:26 2013
+++ qt/addressbookpage.cpp Tue Dec 31 02:25:11 2013
@@ -143,8 +143,13 @@
     ui->tableView->sortByColumn(0, Qt::AscendingOrder);
 
     // Set column widths
+#if QT_VERSION < 0x050000
     ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Label, QHeaderView::Stretch);
     ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents);
+#else
+    ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Label, QHeaderView::Stretch);
+    ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents);
+#endif
 
     connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
             this, SLOT(selectionChanged()));
--- qt/bitcoin.cpp Thu Dec 05 13:11:26 2013
+++ qt/bitcoin.cpp Tue Dec 31 02:25:11 2013
@@ -17,7 +17,9 @@
 #include "splashscreen.h"
 
 #include <QMessageBox>
+#if QT_VERSION < 0x050000
 #include <QTextCodec>
+#endif
 #include <QLocale>
 #include <QTimer>
 #include <QTranslator>
@@ -118,9 +120,11 @@
     // Command-line options take precedence:
     ParseParameters(argc, argv);
 
+#if QT_VERSION < 0x050000
     // Internal string conversion is all UTF-8
     QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
+#endif
 
     Q_INIT_RESOURCE(bitcoin);
     QApplication app(argc, argv);
--- qt/bitcoingui.cpp Thu Dec 05 13:11:26 2013
+++ qt/bitcoingui.cpp Tue Dec 31 02:25:11 2013
@@ -44,7 +44,9 @@
 #include <QMovie>
 #include <QTimer>
 #include <QDragEnterEvent>
+#if QT_VERSION < 0x050000
 #include <QUrl>
+#endif
 #include <QMimeData>
 #include <QStyle>
 #include <QSettings>
--- qt/guiutil.cpp Thu Dec 05 13:11:26 2013
+++ qt/guiutil.cpp Tue Dec 31 02:25:11 2013
@@ -13,8 +13,12 @@
 #include <QDoubleValidator>
 #include <QFont>
 #include <QLineEdit>
+#if QT_VERSION >= 0x050000
+#include <QUrlQuery>
+#else
 #include <QUrl>
-#include <QTextDocument> // For Qt::escape
+#endif
+#include <QTextDocument> // for Qt::mightBeRichText
 #include <QAbstractItemView>
 #include <QClipboard>
 #include <QFileDialog>
@@ -86,7 +90,13 @@
     SendCoinsRecipient rv;
     rv.address = uri.path();
     rv.amount = 0;
+
+#if QT_VERSION < 0x050000
     QList<QPair<QString, QString> > items = uri.queryItems();
+#else
+    QUrlQuery uriQuery(uri);
+    QList<QPair<QString, QString> > items = uriQuery.queryItems();
+#endif
     for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++)
     {
         bool fShouldReturnFalse = false;
@@ -139,7 +149,11 @@
 
 QString HtmlEscape(const QString& str, bool fMultiLine)
 {
+#if QT_VERSION < 0x050000
     QString escaped = Qt::escape(str);
+#else
+    QString escaped = str.toHtmlEscaped();
+#endif
     if(fMultiLine)
     {
         escaped = escaped.replace("\n", "<br>\n");
@@ -176,7 +190,11 @@
     QString myDir;
     if(dir.isEmpty()) // Default to user documents location
     {
+#if QT_VERSION < 0x050000
         myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+#else
+        myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
+#endif
     }
     else
     {
--- qt/paymentserver.cpp Thu Dec 05 13:11:26 2013
+++ qt/paymentserver.cpp Tue Dec 31 02:25:11 2013
@@ -18,7 +18,9 @@
 #include <QLocalServer>
 #include <QLocalSocket>
 #include <QStringList>
+#if QT_VERSION < 0x050000
 #include <QUrl>
+#endif
 
 using namespace boost;
 
--- qt/qrcodedialog.cpp Thu Dec 05 13:11:26 2013
+++ qt/qrcodedialog.cpp Tue Dec 31 02:25:11 2013
@@ -7,7 +7,9 @@
 #include "optionsmodel.h"
 
 #include <QPixmap>
+#if QT_VERSION < 0x050000
 #include <QUrl>
+#endif
 
 #include <qrencode.h>
 
--- qt/rpcconsole.cpp Thu Dec 05 13:11:26 2013
+++ qt/rpcconsole.cpp Tue Dec 31 02:25:11 2013
@@ -8,7 +8,9 @@
 #include <QTime>
 #include <QThread>
 #include <QKeyEvent>
+#if QT_VERSION < 0x050000
 #include <QUrl>
+#endif
 #include <QScrollBar>
 
 #include <openssl/crypto.h>
--- qt/sendcoinsdialog.cpp Thu Dec 05 13:11:26 2013
+++ qt/sendcoinsdialog.cpp Tue Dec 31 02:25:11 2013
@@ -93,7 +93,11 @@
     QStringList formatted;
     foreach(const SendCoinsRecipient &rcp, recipients)
     {
+#if QT_VERSION < 0x050000
         formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address));
+#else
+        formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), rcp.label.toHtmlEscaped(), rcp.address));
+#endif
     }
 
     fNewRecipientAllowed = false;
--- qt/transactionview.cpp Thu Dec 05 13:11:26 2013
+++ qt/transactionview.cpp Tue Dec 31 02:25:11 2013
@@ -176,7 +176,11 @@
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Status, 23);
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Date, 120);
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Type, 120);
+#if QT_VERSION < 0x050000
         transactionView->horizontalHeader()->setResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
+#else
+        transactionView->horizontalHeader()->setSectionResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
+#endif
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Amount, 100);
     }
 }
--- qt/walletview.cpp Thu Dec 05 13:11:26 2013
+++ qt/walletview.cpp Tue Dec 31 02:25:11 2013
@@ -21,7 +21,11 @@
 #include <QHBoxLayout>
 #include <QVBoxLayout>
 #include <QAction>
+#if QT_VERSION < 0x050000
 #include <QDesktopServices>
+#else
+#include <QStandardPaths>
+#endif
 #include <QFileDialog>
 #include <QPushButton>
 
@@ -233,7 +237,11 @@
 
 void WalletView::backupWallet()
 {
+#if QT_VERSION < 0x050000
     QString saveDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+#else
+    QString saveDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
+#endif
     QString filename = QFileDialog::getSaveFileName(this, tr("Backup Wallet"), saveDir, tr("Wallet Data (*.dat)"));
     if (!filename.isEmpty()) {
         if (!walletModel->backupWallet(filename)) {

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

Activity: 1
Merit: 0


View Profile
December 22, 2014, 09:48:22 PM
 #831

I'm using db-4.8.30.NC.tar.gz, latest mingw ($ gcc -v => Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs)
cd build_unix
../dist/configure --enable-cxx --enable-mingw --disable-pthread_api --disable-replication
After this completes
@ Line 113 Replace
typedef pthread_t db_threadid_t;
with
typedef u_int32_t db_threadid_t;

Got error:

Code:
$ make
./libtool --mode=compile gcc -c -I. -I../dist/..  -O3  ../dist/../mutex/mut_win3
2.c
libtool: compile:  gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c  -DD
LL_EXPORT -DPIC -o .libs/mut_win32.o
In file included from ./db_int.h:96,
                 from ../dist/../mutex/mut_win32.c:12:
../dist/../dbinc/win_db.h:23:20: direct.h: No such file or directory
../dist/../dbinc/win_db.h:35:19: tchar.h: No such file or directory
In file included from ../dist/../dbinc/win_db.h:49,
                 from ./db_int.h:96,
                 from ../dist/../mutex/mut_win32.c:12:
/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winsock2.h:103:2: war
ning: #warning "fd_set and associated macros have been defined in sys/types.
  This may cause runtime problems with W32 sockets"
In file included from /usr/include/unistd.h:6,
                 from ./db.h:29,
                 from ./db_int.h:99,
                 from ../dist/../mutex/mut_win32.c:12:
/usr/include/sys/unistd.h:62: error: conflicting types for 'GetCurrentProcessId'

/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winbase.h:1434: error
: previous declaration of 'GetCurrentProcessId' was here
/usr/include/sys/unistd.h:62: error: conflicting types for 'GetCurrentProcessId'

/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winbase.h:1434: error
: previous declaration of 'GetCurrentProcessId' was here
../dist/../mutex/mut_win32.c:33: error: invalid initializer
../dist/../mutex/mut_win32.c: In function `get_handle':
../dist/../mutex/mut_win32.c:43: error: invalid initializer
make: *** [mut_win32.lo] Error 1
How to fix it?
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 23, 2014, 03:23:08 PM
 #832

Make sure not to use msys-gcc: uninstall relevant packages or delete mingw install dir and reinstall required msys packages only.

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
presstab
Legendary
*
Offline Offline

Activity: 1330
Merit: 1000


Blockchain Developer


View Profile
January 03, 2015, 04:21:19 PM
 #833

nitrogenics, this is one of my typical threads that I check in with every so often. You are doing an awesome job here (and others that help are too).

Just installed the build environment on a new machine. A few notes (and this really applies to older altcoins, not specifically bitcoin which i did not attempt to build):
1) Boost 1.57 seems to have some problems with QT < 5. Throwing errors on BOOST_JOIN's.  Boost 1.55 works fine.
2) I had same problem with miniupnpc as mentioned by others earlier in the thread. I built with 1.8 instead and it worked fine.
3) sending a small tip to your btc address, thanks for maintaining this thread!  Cool

Projects I Contribute To: libzerocoin | Veil | PIVX | HyperStake | Crown | SaluS
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
January 03, 2015, 04:54:01 PM
 #834

Thanks, much appreciated Wink

You can find more info about BOOST_JOIN error here: https://bugreports.qt-project.org/browse/QTBUG-22829
I successfully used the suggested workaround of wrapping has_binary_operator.hpp inside an #ifndef Q_MOC_RUN with boost 1.57.

When using current 1.9 miniupnpc sources make sure to define -DMINIUPNP_STATICLIB instead of -DSTATICLIB (v1.9 release still needs -DSTATICLIB).

Hope that helps

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
Mike M
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 05, 2015, 02:46:28 AM
Last edit: January 05, 2015, 08:14:43 PM by Mike M
 #835

Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.

This is the link and error:
g++ -Wl,--gc-sections -Wl,-s -Wl,-subsystem,console -o C:/Qt/5.3.2/bin/qtdiag.exe .obj/release/main.o .obj/release/qtdiag.o .obj/release/qtdiag_plugin_import.o  -LC:/deps/libpng-1.6.15/.libs -LC:/deps/openssl-1.0.1j -LC:/Qt/5.3.2/lib -LC:/Qt/5.3.2/plugins/bearer -lqgenericbearer -lqnativewifibearer -lQt5Network -ldnsapi -lcrypt32 -LC:/Qt/5.3.2/plugins/platforms -lqwindows -lwinspool -lshlwapi -lQt5PlatformSupport -LC:/Qt/5.3.2/plugins/imageformats -lqico -lQt5Gui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lpng -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz

C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6ae9): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6be9): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6d7d): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6e6b): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o): bad reloc address 0x0 in section `.pdata'

collect2.exe: error: ld returned 1 exit status
Makefile.Release:81: recipe for target 'C:/Qt/5.3.2/bin/qtdiag.exe' failed
mingw32-make[3]: *** [C:/Qt/5.3.2/bin/qtdiag.exe] Error 1
mingw32-make[3]: Leaving directory 'c:/Qt/qttools-opensource-src-5.3.2/src/qtdiag'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/qttools-opensource-src-5.3.2/src/qtdiag'
Makefile:220: recipe for target 'sub-qtdiag-make_first' failed
mingw32-make[1]: *** [sub-qtdiag-make_first] Error 2
bitcoinrulzz
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile
January 05, 2015, 08:51:54 PM
 #836

Thanks, much appreciated Wink

You can find more info about BOOST_JOIN error here: https://bugreports.qt-project.org/browse/QTBUG-22829
I successfully used the suggested workaround of wrapping has_binary_operator.hpp inside an #ifndef Q_MOC_RUN with boost 1.57.

When using current 1.9 miniupnpc sources make sure to define -DMINIUPNP_STATICLIB instead of -DSTATICLIB (v1.9 release still needs -DSTATICLIB).

Hope that helps

I am getting same error:

 C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:50: Parse er
ror at "BOOST_JOIN"

Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
January 05, 2015, 11:08:11 PM
 #837

Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp	Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include <boost/config.hpp>
 #include <boost/type_traits/ice.hpp>
 #include <boost/type_traits/integral_constant.hpp>
@@ -227,3 +228,4 @@
 #endif
 
 #include <boost/type_traits/detail/bool_trait_undef.hpp>
+#endif

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
bitcoinrulzz
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile
January 06, 2015, 12:09:04 AM
 #838

Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp	Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include <boost/config.hpp>
 #include <boost/type_traits/ice.hpp>
 #include <boost/type_traits/integral_constant.hpp>
@@ -227,3 +228,4 @@
 #endif
 
 #include <boost/type_traits/detail/bool_trait_undef.hpp>
+#endif



Thanks I see it went further but still getting error after some time...

..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:53: Parse er
ror at "BOOST_JOIN"
Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1






Here is my updated file has_binary_operator.hpp looks like...

Code:
//  (C) Copyright 2009-2011 Frederic Bron, Robert Stewart, Steven Watanabe & Roman Perepelitsa.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef Q_MOC_RUN
#include <boost/config.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_fundamental.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/type_traits/remove_reference.hpp>


// should be the last #include
#include <boost/type_traits/detail/bool_trait_def.hpp>
#endif
RJX
Legendary
*
Offline Offline

Activity: 1078
Merit: 1003


umachit.fund


View Profile
January 06, 2015, 09:24:31 AM
 #839

Hi,

Can I use this guide to compile 'some altcoins' wallet? It's an X11 algo coin.




.UmaChit.Fund.
‎ ★
..Revolutionized Rotating..
..Savings & Borrowings.....

‎ ★
█████
██
██
██
██
██
██
██
██
██
██
██
█████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████████
████████████████████████████
████████████████████████████
█████████████████▀▀  ███████
█████████████▀▀      ███████
█████████▀▀   ▄▄     ███████
█████▀▀    ▄█▀▀     ████████
█████████ █▀        ████████
█████████ █ ▄███▄   ████████
██████████████████▄▄████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████▀▀▀█████████
██████ ▀██████▀      ▄██████
██████▄   ▀▀▀        ███████
██████▄             ▄███████
███████▄           ▄████████
██████▀▀▀        ▄██████████
███████▄▄     ▄▄████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
█████████████▀    ██████████
████████████    ▄▄██████████
███████████▀    ▀▀██████████
██████████▌       ██████████
████████████    ████████████
████████████    ████████████
████████████    ████████████
████████████▄  ▄████████████
████████████████████████████
████████████████████████████
pupotroll
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 06, 2015, 02:51:22 PM
 #840

Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp	Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include <boost/config.hpp>
 #include <boost/type_traits/ice.hpp>
 #include <boost/type_traits/integral_constant.hpp>
@@ -227,3 +228,4 @@
 #endif
 
 #include <boost/type_traits/detail/bool_trait_undef.hpp>
+#endif



Thanks I see it went further but still getting error after some time...

..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:53: Parse er
ror at "BOOST_JOIN"
Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1






Here is my updated file has_binary_operator.hpp looks like...

Code:
//  (C) Copyright 2009-2011 Frederic Bron, Robert Stewart, Steven Watanabe & Roman Perepelitsa.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef Q_MOC_RUN
#include <boost/config.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_fundamental.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/type_traits/remove_reference.hpp>


// should be the last #include
#include <boost/type_traits/detail/bool_trait_def.hpp>
#endif


Hi bitcoinrulzz,
You put the last #endif to a wrong line. Put it at the end of file instead, it should work then. (check again nitrogenetics's answer)
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!