Author

Topic: HELP: How to compile Litecoin client, 0.3BTC donation (Read 2629 times)

newbie
Activity: 42
Merit: 0
have you tried this?


Download EasyWinBuilder together with Bitcoin v0.8.3:
https://github.com/phelixbtc/bitcoin/archive/0.8.3-EasyWinBuilder-v0.2.zip
(all code is equal to v0.8.3, only the easywinbuilder folder is new - compare to Bitcoin v0.8.3, not to master)

Simply double click __all_easywinbuilder.bat in the easywinbuilder folder and follow instructions.

Readme:
https://github.com/phelixbtc/bitcoin/blob/0.8.3-EasyWinBuilder-v0.2/easywinbuilder/README.md

There is an almost identical Namecoin version here: https://github.com/phelixnmc/namecoin-qt

It should also work with altcoins with a similar structure to Bitcoin, simply copy&paste the easywinbuilder folder and edit the coinname variable in set_vars.bat.

Based on the build manual by nitrogenetics (https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479) and older manuals from others.


LWm5odgHrb1XjxSHa5Mt9m3Gbiqr3Y6Pm5  Roll Eyes

I thought the post was focused on getting instructions on how to build the client.
newbie
Activity: 20
Merit: 0
have you tried this?


Download EasyWinBuilder together with Bitcoin v0.8.3:
https://github.com/phelixbtc/bitcoin/archive/0.8.3-EasyWinBuilder-v0.2.zip
(all code is equal to v0.8.3, only the easywinbuilder folder is new - compare to Bitcoin v0.8.3, not to master)

Simply double click __all_easywinbuilder.bat in the easywinbuilder folder and follow instructions.

Readme:
https://github.com/phelixbtc/bitcoin/blob/0.8.3-EasyWinBuilder-v0.2/easywinbuilder/README.md

There is an almost identical Namecoin version here: https://github.com/phelixnmc/namecoin-qt

It should also work with altcoins with a similar structure to Bitcoin, simply copy&paste the easywinbuilder folder and edit the coinname variable in set_vars.bat.

Based on the build manual by nitrogenetics (https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479) and older manuals from others.


LWm5odgHrb1XjxSHa5Mt9m3Gbiqr3Y6Pm5  Roll Eyes
legendary
Activity: 1008
Merit: 1022
Will do this for .3BTC in PM only.
legendary
Activity: 1008
Merit: 1022
I know this error. Hmm
newbie
Activity: 42
Merit: 0
Which version of Qt would you like a guide written for ?
I've found that as of now Qt 5.1.0 is incompatible.
hero member
Activity: 854
Merit: 500
This is where it breaks:
Code:
..\Qt\4.8.4\include/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1

No idea why but everything I've ever tried results in it failing here. (tested with barcoin)

Hmmm, I think that's sorted by adding __NO_SYSTEM_INCLUDES to the DEFINES= list, note that is 2 _ _ 's there, not sure why. Though if you tried it with the BARCoin source, the -qt.pro should already have this I think...looking back through the threads I found this from you:

https://bitcointalk.org/index.php?topic=149479.msg2091689;topicseen#msg2091689

And it would show you don't have -D__NO_SYSTEM_INCLUDES or -D_BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN in your compile. Try adding them to the -qt.pro or to the Makefile.Release directly and give it another compile?

So, I tried your tutorial on your master-coin and it works...juhu

so I tried the same on a other coin litecoin and feathercoin:

make -f makefile.release

..\..\deps\boost/boost/system/error_code.hpp: Im globalen Gültigkeitsbereich:
..\..\deps\boost/boost/system/error_code.hpp:214:36: Warnung: »boost::system::po
six_category« definiert, aber nicht verwendet [-Wunused-variable]
..\..\deps\boost/boost/system/error_code.hpp:215:36: Warnung: »boost::system::er
rno_ecat« definiert, aber nicht verwendet [-Wunused-variable]
..\..\deps\boost/boost/system/error_code.hpp:216:36: Warnung: »boost::system::na
tive_ecat« definiert, aber nicht verwendet [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1

the same error again. I added __NO_SYSTEM_INCLUDES on the DEFINES=list
sr. member
Activity: 308
Merit: 250
This is where it breaks:
Code:
..\Qt\4.8.4\include/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1

No idea why but everything I've ever tried results in it failing here. (tested with barcoin)

Hmmm, I think that's sorted by adding __NO_SYSTEM_INCLUDES to the DEFINES= list, note that is 2 _ _ 's there, not sure why. Though if you tried it with the BARCoin source, the -qt.pro should already have this I think...looking back through the threads I found this from you:

https://bitcointalk.org/index.php?topic=149479.msg2091689;topicseen#msg2091689

And it would show you don't have -D__NO_SYSTEM_INCLUDES or -D_BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN in your compile. Try adding them to the -qt.pro or to the Makefile.Release directly and give it another compile?
hero member
Activity: 630
Merit: 502
This is where it breaks:
Code:
..\Qt\4.8.4\include/boost/system/error_code.hpp:216:36: warning: 'boost::system:
:native_ecat' defined but not used [-Wunused-variable]
mingw32-make: *** [build/bitcoin.o] Error 1

No idea why but everything I've ever tried results in it failing here. (tested with barcoin)
sr. member
Activity: 308
Merit: 250
Where does it die at?
hero member
Activity: 630
Merit: 502
don't work. :-(

I had the same problem like on the toutorial from nitrogenetics.

C:\coins\LiteCoin-master>qmake "USE_UPNP=- LiteCoin-qt.pro
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

the release and debug folders are empty

This is on the right track, you can ignore these warnings. If you used m compilation deps, you can even leave the UPNP part off. Try this:

qmake litecoin-qt.pro

then ignore the errors about if this seems wrong blah blah.

Then do:

make -f Makefile.Release

and your coins should build in to the release folder. Smiley

If only it were that simple. Wink

I've tried every guide under the sun (including yours) and despite best efforts it always fails at the exact same point. That's why i just gave up trying and ask you nowadays. daemons, no problem, Windows QT urghhh.
sr. member
Activity: 308
Merit: 250
don't work. :-(

I had the same problem like on the toutorial from nitrogenetics.

C:\coins\LiteCoin-master>qmake "USE_UPNP=- LiteCoin-qt.pro
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

the release and debug folders are empty

This is on the right track, you can ignore these warnings. If you used m compilation deps, you can even leave the UPNP part off. Try this:

qmake litecoin-qt.pro

then ignore the errors about if this seems wrong blah blah.

Then do:

make -f Makefile.Release

and your coins should build in to the release folder. Smiley
hero member
Activity: 854
Merit: 500
don't work. :-(

I had the same problem like on the toutorial from nitrogenetics.

C:\coins\LiteCoin-master>qmake "USE_UPNP=- LiteCoin-qt.pro
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building without UPNP support
Project MESSAGE: Building with UPNP supportRemoved plural forms as the target la
nguage has less forms.
If this sounds wrong, possibly the target language is not set or recognized.

the release and debug folders are empty
sr. member
Activity: 308
Merit: 250
You don't want to do it in Qt creator. You want to install the command line bits and do it that way. Trust me, I tried for WEEKS to get this to work in the creator. I've made it exceedingly easy to compile for windows with this guide:

http://devtome.com/doku.php?id=scrypt_altcoin_cloning_guide#windows_-qt

The list of things you should install (MinGW, QT Command-line, Perl) and links to them are in the guide.

For the dependecnies, you can download my pre-compiled dependencies here:

https://github.com/foocoin/deps/archive/master.zip

The zip should be placed as c:\deps.

Now, open your -qt.pro with Notepad or whatever, and replace this line:

Code:
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE

with this one:

Code:
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN __NO_SYSTEM_INCLUDES

Its right at the top, very easy to find, 4th or 5th line down. Now right under that there will be a section that looks like this:

Code:
# Dependency library locations can be customized with:
#    BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
#    BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively

Replace that with this:

Code:
windows:LIBS += -lshlwapi
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
windows:LIBS += -lws2_32 -lole32 -loleaut32 -luuid -lgdi32
LIBS += -lboost_system-mgw46-mt-sd-1_53 -lboost_filesystem-mgw46-mt-sd-1_53 -lboost_program_options-mgw46-mt-sd-1_53 -lboost_thread-mgw46-mt-sd-1_53
BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_53
BOOST_INCLUDE_PATH=C:/deps/boost
BOOST_LIB_PATH=C:/deps/boost/stage/lib
BDB_INCLUDE_PATH=c:/deps/db/build_unix
BDB_LIB_PATH=c:/deps/db/build_unix
OPENSSL_INCLUDE_PATH=c:/deps/ssl/include
OPENSSL_LIB_PATH=c:/deps/ssl
MINIUPNPC_LIB_PATH=c:/deps/miniupnpc
MINIUPNPC_INCLUDE_PATH=c:/deps

Then you'll be able to do the "qmake" and "make -f Makefile.Release" as listed in the step by step guide.

I'm happy to walk you through this in irc if you'd like, my BTC addy is in my sig.
hero member
Activity: 854
Merit: 500
I pay 0.3 BTC each person that successfully explains to me: how to build a litecoin-qt client on a windows system. ->From the first download up to the final "ctrl-B command" in the Qt Creator. Is it even possible to build a litecoin or bitcoin wallet with Qt 5.1.0 creator?
hero member
Activity: 854
Merit: 500
Is there a good tutorial how to build the Litecoin qt client on windows? I can not believe how complicated it seems to compile a few files.  Cry
Jump to: