Post
Topic
Board Development & Technical Discussion
Re: Ported Bitcoin (and Litecoin) 0.8.6 to VS2012 (32 and 64 bit) and Qt5
by
Claire123
on 16/02/2014, 16:48:34 UTC
Got it to work by building qt 4.8.5 using mingw and then copying lrelease in the bin folder of qt 5.1.1

Hi TechAU, I'm glad you got it working Smiley  For future reference and for others reading this, if you have the prerequisites installed, like Active-Perl and MSVC 12, then the batch files I wrote should build all of Qt, including lrelease:

https://bitcoinqtmsvc2012.codeplex.com/SourceControl/latest#MSVC/BuildHelpers/

This directory holds all the batch files.  You can look at buildqt32.bat to see what it's doing.  Note that the batch file does need to be edited for your directory locations and to update the configure line for your build location of OpenSsl.  Don't forget that part because if it starts building and can't find openssl, then you will have to start over with a clean copy of the qt distribution--at least I have to start over.

But if you are using some other build of Qt and don't want to deal with the translations, you can just delete the TS files from the project.  They aren't required unless you want to see the different languages.


Hi Claire and other C++ experts

Hi Ron, I'm glad you got the release mode working.  I think it was much easier for me being on a newer version of MSVC.  My first versions of the project did set the ITERATOR_DEBUG_FLAG off but I decided to see if I could get it turned back on by making some code changes to those vectors.   If I have time, I might remove some of the #ifdef statements dealing with CBlockIndexWorkComparator to see if the code compiles and works on Linux.  But, I've been swamped with work from my day job, which has morphed into getting Asterisk up and running on Red Hat so now it's vi and bash all the time for me...

By the way, I think you are the C++ expert here!  I just learn enough to be productive.  Every now and then I will refer to the Stroustrup book if I have to figure out code written by the real experts but I don't crack it open for pleasure reading...Smiley