Pages:
Author

Topic: Building headless Bitcoin and Bitcoin-qt on Windows - page 45. (Read 419389 times)

full member
Activity: 224
Merit: 100
DigiByte Founder
If i am not mistaken it appears the function to generate a new Genesis Block has been taken out of version 7 & 8.
full member
Activity: 147
Merit: 100
1)When I close Compiled altcoin-qt.exe,it crashes,and after debug in VS 2012, I see something like that:
cannot open pdb file



1)What can it be?
I don't see genesis block,and merkleroot in debug file in appdata/roaming/XXXcoin/debug.log
How Can I make it?

full member
Activity: 224
Merit: 100
DigiByte Founder
in coincontroldialog.cpp to make it work with qt 5.2
I mean the wallet works and all but pops out a lot of errors when trying to close it.

Same here, it was still syncing with the testnet when I replied.
Might be a good idea to file a bug report about it
I am having the same problem with litecoin as well. Have tried 8.6 and I am now trying several of the 8.5 versions.
full member
Activity: 224
Merit: 100
DigiByte Founder
I am so close!

I am getting this error when I do the mingw32-make -f Makefile.Release.





I made all the changes to the files.


You need to apply the second half of the QT 5 patches. I split the patch into two files, 1 for the src/ files and one for the src/qt/ files.

Quote
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

Also see patch file at the end of this post.
full member
Activity: 224
Merit: 100
DigiByte Founder
Still getting this Error with the latest build instructions upon the QT mingw32-make -f Makefile.Release command.
Quote
..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\deps\boost_1_55_0/boost/system/system_error.hpp:14:0,
                 from ..\deps\boost_1_55_0/boost/thread/exceptions.hpp:22,
                 from ..\deps\boost_1_55_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from ..\deps\boost_1_55_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from ..\deps\boost_1_55_0/boost/thread/win32/mutex.hpp:9,
                 from ..\deps\boost_1_55_0/boost/thread/mutex.hpp:14,
                 from src/allocators.h:10,
                 from src\qt\walletmodel.h:6,
                 from src\qt\bitcoin.cpp:9:
..\deps\boost_1_55_0/boost/system/error_code.hpp: At global scope:
..\deps\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:12891: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

C:\bitcoin3>
Finally! Succes! It compiled!  Grin

I had to re-apply the patch after I split it at line 180 and put the second half in the src/qt folder. For some reason the patch was only applied to the src/ folder files and not the src/qt files when it ran for the first time.
full member
Activity: 224
Merit: 100
DigiByte Founder
Still getting this Error with the latest build instructions upon the QT mingw32-make -f Makefile.Release command.
Quote
..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from ..\deps\boost_1_55_0/boost/system/system_error.hpp:14:0,
                 from ..\deps\boost_1_55_0/boost/thread/exceptions.hpp:22,
                 from ..\deps\boost_1_55_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from ..\deps\boost_1_55_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from ..\deps\boost_1_55_0/boost/thread/win32/mutex.hpp:9,
                 from ..\deps\boost_1_55_0/boost/thread/mutex.hpp:14,
                 from src/allocators.h:10,
                 from src\qt\walletmodel.h:6,
                 from src\qt\bitcoin.cpp:9:
..\deps\boost_1_55_0/boost/system/error_code.hpp: At global scope:
..\deps\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
Makefile.Release:12891: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

C:\bitcoin3>
full member
Activity: 131
Merit: 108
in coincontroldialog.cpp to make it work with qt 5.2
I mean the wallet works and all but pops out a lot of errors when trying to close it.

Same here, it was still syncing with the testnet when I replied.
Might be a good idea to file a bug report about it
full member
Activity: 224
Merit: 100
DigiByte Founder
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?


Unpack it somewhere (eg c:\) then add the bin folder (eg C:\mingw32\bin) to your PATH.

Awesome, will do! Thanks!
newbie
Activity: 42
Merit: 0
in coincontroldialog.cpp to make it work with qt 5.2

I have already replaced that.
I mean the wallet works and all but pops out a lot of errors when trying to close it.
full member
Activity: 131
Merit: 108
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?


Unpack it somewhere (eg c:\) then add the bin folder (eg C:\mingw32\bin) to your PATH.
full member
Activity: 224
Merit: 100
DigiByte Founder
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?

I unpacked it to C:\MinGW\mingw32

Then added C:\MinGW\mingw32\bin to the PATH
Will try that. Thank you!
full member
Activity: 131
Merit: 108
What are the exact specs you are using?

MinGW 4.8.1 from the link in the main thread
Boost 1.54 (or 1.55 - happens on both)
QT 5.1.1 (or 5.2.0 - happens on both)
Miniupnpc 1.8
OpenSSL 1.0.1e
BerkeleyDB 4.8.30 NC
Litecoin source code from GitHub



(happens even with all needed DLLs in the directory)

Before I tried with:

- QT 4.8.5 and MinGW 4.8.1
APPCRASH on the start (not because of missing DLLs)

- QT 4.8.5 and MinGW 4.6.2
Could not compile BerkeleyDB

Gonna try another coin now.

Had a look at litecoin-qt also.
Using the released 0.8.6.1 source it worked almost out of the box. Just had to replace
ui->treeWidget->header()->setClickable(true);
with
ui->treeWidget->header()->setSectionsClickable(true);

in coincontroldialog.cpp to make it work with qt 5.2
newbie
Activity: 42
Merit: 0
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?

I unpacked it to C:\MinGW\mingw32

Then added C:\MinGW\mingw32\bin to the PATH
newbie
Activity: 28
Merit: 0
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?

I think this was where the issue of not being able to find the boost files came from for me even with the correct paths. I copied them to the mingw32 sub folder instead of the main bin folder.

Is it best to copy all folders in the gcc 4.8 download and merge them with the existing files in the C:/Mingw/ folder?
Quote

for that part I put it in c:/

It would be nice if the guide could be a little more noob friendly lol
full member
Activity: 224
Merit: 100
DigiByte Founder
At step 1.4, what is the proper way to install 4.8 to the Mingw folder?

I think this was where the issue of not being able to find the boost files came from for me even with the correct paths. I copied them to the mingw32 sub folder instead of the main bin folder.

Is it best to copy all folders in the gcc 4.8 download and merge them with the existing files in the C:/Mingw/ folder?
Quote
newbie
Activity: 28
Merit: 0
I gave up nothing is working for me
newbie
Activity: 42
Merit: 0
What are the exact specs you are using?

MinGW 4.8.1 from the link in the main thread
Boost 1.54 (or 1.55 - happens on both)
QT 5.1.1 (or 5.2.0 - happens on both)
Miniupnpc 1.8
OpenSSL 1.0.1e
BerkeleyDB 4.8.30 NC
Litecoin source code from GitHub

http://i.imgur.com/KY0lSbM.gif

(happens even with all needed DLLs in the directory)

Before I tried with:

- QT 4.8.5 and MinGW 4.8.1
APPCRASH on the start (not because of missing DLLs)

- QT 4.8.5 and MinGW 4.6.2
Could not compile BerkeleyDB

Gonna try another coin now.
full member
Activity: 224
Merit: 100
DigiByte Founder
I'm not getting any errors with QT5.2
Still didn't solve my closing error :<
What are the exact specs you are using?
newbie
Activity: 42
Merit: 0
I'm not getting any errors with QT5.2
Still didn't solve my closing error :<
full member
Activity: 224
Merit: 100
DigiByte Founder
I am so close!

I am getting this error when I do the mingw32-make -f Makefile.Release.





I made all the changes to the files.


After making all the changes with the updated instructions (qt 5.2) I am getting the exact same error with mingw32-make -f Makefile.Release.
Pages:
Jump to: