Bitcoin Forum
May 08, 2024, 03:20:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: HELP: How to compile Litecoin client, 0.3BTC donation  (Read 2608 times)
GröBkAz (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 500



View Profile
July 31, 2013, 12:38:36 PM
Last edit: July 31, 2013, 09:23:29 PM by GröBkAz
 #1

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
1715181625
Hero Member
*
Offline Offline

Posts: 1715181625

View Profile Personal Message (Offline)

Ignore
1715181625
Reply with quote  #2

1715181625
Report to moderator
1715181625
Hero Member
*
Offline Offline

Posts: 1715181625

View Profile Personal Message (Offline)

Ignore
1715181625
Reply with quote  #2

1715181625
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
GröBkAz (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 500



View Profile
July 31, 2013, 09:22:08 PM
 #2

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?
shakezula
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 31, 2013, 09:31:52 PM
 #3

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.
GröBkAz (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 500



View Profile
July 31, 2013, 10:29:18 PM
 #4

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
shakezula
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 31, 2013, 11:12:46 PM
 #5

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
Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
July 31, 2013, 11:33:33 PM
 #6

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.
shakezula
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
July 31, 2013, 11:35:23 PM
 #7

Where does it die at?
Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
July 31, 2013, 11:48:36 PM
 #8

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)
shakezula
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
August 01, 2013, 12:03:36 AM
 #9

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?
GröBkAz (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 500



View Profile
August 01, 2013, 07:23:17 AM
 #10

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
xisalty
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
August 08, 2013, 06:26:06 AM
 #11

Which version of Qt would you like a guide written for ?
I've found that as of now Qt 5.1.0 is incompatible.
muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
August 08, 2013, 07:18:41 AM
Last edit: August 08, 2013, 01:55:03 PM by muddafudda
 #12

I know this error. Hmm
muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
August 12, 2013, 08:49:06 AM
 #13

Will do this for .3BTC in PM only.
y0m0
Newbie
*
Offline Offline

Activity: 20
Merit: 0



View Profile
August 12, 2013, 08:59:42 AM
 #14

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://bitcointalk.org/index.php?topic=149479.0) and older manuals from others.


LWm5odgHrb1XjxSHa5Mt9m3Gbiqr3Y6Pm5  Roll Eyes
xisalty
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
August 12, 2013, 05:28:37 PM
 #15

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://bitcointalk.org/index.php?topic=149479.0) and older manuals from others.


LWm5odgHrb1XjxSHa5Mt9m3Gbiqr3Y6Pm5  Roll Eyes

I thought the post was focused on getting instructions on how to build the client.
Pages: [1]
  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!