Pages:
Author

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

hero member
Activity: 854
Merit: 500
I'm starting to lose my patience.  Huh
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.

* Download your favorite Litecoin version: https://github.com/litecoin-project/litecoin and extract it.
* Download https://github.com/phelixbtc/bitcoin/archive/0.8.3-EasyWinBuilder-v0.2.zip   and copy the easywinbuilder folder into the litecoin folder (so that it is next to src, doc, ...)
* In the easywinbuilder folder edit set_vars.bat:  @set COINNAME=bitcoin    --->  @set COINNAME=litecoin
* In the easywinbuilder folder double click __all_easywinbuilder.bat
* Follow instructions



unfortunately, the script crashs after some times. I will try this on an other windows machine in a few hours. but thanks anyway
legendary
Activity: 1708
Merit: 1020
I'm starting to lose my patience.  Huh
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.

* Download your favorite Litecoin version: https://github.com/litecoin-project/litecoin and extract it.
* Download https://github.com/phelixbtc/bitcoin/archive/0.8.3-EasyWinBuilder-v0.2.zip   and copy the easywinbuilder folder into the litecoin folder (so that it is next to src, doc, ...)
* In the easywinbuilder folder edit set_vars.bat:  @set COINNAME=bitcoin    --->  @set COINNAME=litecoin
* In the easywinbuilder folder double click __all_easywinbuilder.bat
* Follow instructions

hero member
Activity: 854
Merit: 500
I'm starting to lose my patience.  Huh
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.
hero member
Activity: 854
Merit: 500
Quote

But did litecoin-qt.pro when qmake'd produce a makefile.debug and .release? That is the important part. The UPNP is on, is off is qmake "chatter" which is "to be determined".

And what is on your .pro line 23, as given in the second line of your output above?

See message #41

Ron

But did litecoin-qt.pro when qmake'd produce a makefile.debug and .release? <= what did this mean?

And what is on your .pro line 23, as given in the second line of your output above? <= this problem is solved...was my mistake i missed one //
sr. member
Activity: 260
Merit: 251
no...it doesnt work:

# 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

BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_54
BOOST_INCLUDE_PATH=C:\\deps\\boost_1_54_0
BOOST_LIB_PATH=C:\\deps\\boost_1_54_0\\stage\\lib
BDB_INCLUDE_PATH=C:\\deps\\db-4.8.30.NC\\build_unix
BDB_LIB_PATH=C:\\deps\db-4.8.30.NC\\build_unix
OPENSSL_INCLUDE_PATH=C:\\deps\\openssl-1.0.1e\\include
OPENSSL_LIB_PATH=C:\\deps\\openssl-1.0.1e

-------------------------------------------------------------------------------

C:\Coin\litecoin-master-0.6>qmake "USE_UPNP=-" litecoin-qt.pro
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.

But did litecoin-qt.pro when qmake'd produce a makefile.debug and .release? That is the important part. The UPNP is on, is off is qmake "chatter" which is "to be determined".

And what is on your .pro line 23, as given in the second line of your output above?

See message #41

Ron
hero member
Activity: 854
Merit: 500
no...it doesnt work:

# 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

BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_54
BOOST_INCLUDE_PATH=C:\\deps\\boost_1_54_0
BOOST_LIB_PATH=C:\\deps\\boost_1_54_0\\stage\\lib
BDB_INCLUDE_PATH=C:\\deps\\db-4.8.30.NC\\build_unix
BDB_LIB_PATH=C:\\deps\db-4.8.30.NC\\build_unix
OPENSSL_INCLUDE_PATH=C:\\deps\\openssl-1.0.1e\\include
OPENSSL_LIB_PATH=C:\\deps\\openssl-1.0.1e

-------------------------------------------------------------------------------

C:\Coin\litecoin-master-0.6>qmake "USE_UPNP=-" litecoin-qt.pro
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.
WARNING: c:\Coin\litecoin-master-0.6\litecoin-qt.pro:23: Unescaped backslashes a
re deprecated.
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.
hero member
Activity: 772
Merit: 500
Thanks for your tutorial! Everything works fantastic except point 4. Setup Qt 4.8.5 and compile Bitcoin-qt. After I add the dependency library locations:

# 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

BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_54
BOOST_INCLUDE_PATH=C:\deps\boost_1_54_0
BOOST_LIB_PATH=C:\deps\boost_1_54_0\stage\lib
BDB_INCLUDE_PATH=C:\deps\db-4.8.30.NC\build_unix
BDB_LIB_PATH=C:\deps\db-4.8.30.NC\build_unix
OPENSSL_INCLUDE_PATH=C:\deps\openssl-1.0.1e\include
OPENSSL_LIB_PATH=C:\deps\openssl-1.0.1e


I receive after “qmake "USE_UPNP=-" bitcoin-qt.pro”:

C:\Coin\bitcoin-master>qmake "USE_UPNP=-" bitcoin-qt.pro
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.


Line 24 is: BOOST_INCLUDE_PATH=C:\deps\boost_1_54_0

If I change the \ to / I receive just the errors “Removed plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized.”

Then I try: C:\Coin\bitcoin-master>mingw32-make -f Makefile.Release

cd C:/Coin/bitcoin-master/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS
SSCOMPILE mingw32-make OPT="-pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libm
v.a && ranlib C:/Coin/bitcoin-master/src/leveldb/libleveldb.a && ranlib C:/C
bitcoin-master/src/leveldb/libmemenv.a
CC: Fehler: =gcc: No such file or directory
CC: Fehler: CXX=g++: No such file or directory
CC: Fehler: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory
CC: Fehler: mingw32-make: No such file or directory
CC: Fehler: OPT=-pipe -D_FORTIFY_SOURCE=2 -O2: No such file or directory
mingw32-make: *** [c:/Coin/bitcoin-master/src/leveldb/libleveldb.a] Error 1


Have somebody an idea what’s going wrong? Thanks!!!!!


That warning can be fixed by using double-backslashes so C:\deps\boost_1_54_0 becomes C:\\deps\\boost_1_54_0. The problem you ran into is the LevelDB build, which you need to be doing via MinGW shell and have to comment out that part in the .pro file.

Dia
hero member
Activity: 854
Merit: 500
I also would be interessted in a toutorial or someting else to build the litecoin client on windows. I try it according to:

The Windows build instructions:

  -  Download the Qt Windows SDK and install it. You don't need the Symbian stuff, just the desktop Qt.
  -  Download and extract the dependencies archive [1], or compile openssl, boost and dbcxx yourself.
  -  Copy the contents of the folder "deps" to "X:\QtSDK\mingw", replace X:\ with the location where you installed the Qt SDK. Make sure that the contents of "deps\include" end up in the current    "include" directory.
  -  Open the bitcoin-qt.pro file in Qt Creator and build as normal (ctrl-B)

But this dindt work. I've tried it with the QT Creator 5.1.0

Please Help someone
full member
Activity: 467
Merit: 100
DIA | Data infrastructure for DeFi
Have you a EasyWinBuilder for Litecoin ?
legendary
Activity: 1708
Merit: 1020
Incredible how hard is it to compilie a litecoin or bitcoin waltet on windows Undecided
Does not have to be. Check out: https://bitcointalksearch.org/topic/ann-easywinbuilder-the-easy-way-to-build-bitcoin-on-windows-252931 [ANN] EasyWinBuilder - The Easy Way to Build Bitcoin on Windows

I would like to get some feedback.

@nitrogenetics: Please let me know here or by pm if you mind me trolling your thread with EasyWinBuilder stuff
hero member
Activity: 854
Merit: 500
Incredible how hard is it to compilie a litecoin or bitcoin waltet on windows Undecided
full member
Activity: 467
Merit: 100
DIA | Data infrastructure for DeFi
On litecoin-qt.pro add this
Quote
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_54 -lboost_filesystem-mgw46-mt-sd-1_54 -lboost_program_options-mgw46-mt-sd-1_54 -lboost_thread-mgw46-mt-sd-1_54
BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_54
BOOST_INCLUDE_PATH=C:\deps\boost_1_54_0
BOOST_LIB_PATH=C:\deps\boost_1_54_0\stage\lib
BDB_INCLUDE_PATH=C:\deps\db-4.8.30.NC\build_unix
BDB_LIB_PATH=C:\deps\db-4.8.30.NC\build_unix
OPENSSL_INCLUDE_PATH=C:\deps\openssl-1.0.1e\include
OPENSSL_LIB_PATH=C:\deps\openssl-1.0.1e
 

But not work yet Sad
full member
Activity: 467
Merit: 100
DIA | Data infrastructure for DeFi
For Litecoin compile, this dependens will be ok ?
What need to change to compile litecoin ?
hero member
Activity: 854
Merit: 500
Thanks for your tutorial! Everything works fantastic except point 4. Setup Qt 4.8.5 and compile Bitcoin-qt. After I add the dependency library locations:

# 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

BOOST_LIB_SUFFIX=-mgw46-mt-sd-1_54
BOOST_INCLUDE_PATH=C:\deps\boost_1_54_0
BOOST_LIB_PATH=C:\deps\boost_1_54_0\stage\lib
BDB_INCLUDE_PATH=C:\deps\db-4.8.30.NC\build_unix
BDB_LIB_PATH=C:\deps\db-4.8.30.NC\build_unix
OPENSSL_INCLUDE_PATH=C:\deps\openssl-1.0.1e\include
OPENSSL_LIB_PATH=C:\deps\openssl-1.0.1e


I receive after “qmake "USE_UPNP=-" bitcoin-qt.pro”:

C:\Coin\bitcoin-master>qmake "USE_UPNP=-" bitcoin-qt.pro
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
WARNING: c:\Coin\bitcoin-master\bitcoin-qt.pro:24: Unescaped backslashes are dep
recated.
Project MESSAGE: Building without UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.


Line 24 is: BOOST_INCLUDE_PATH=C:\deps\boost_1_54_0

If I change the \ to / I receive just the errors “Removed plural forms as the target language has less forms. If this sounds wrong, possibly the target language is not set or recognized.”

Then I try: C:\Coin\bitcoin-master>mingw32-make -f Makefile.Release

cd C:/Coin/bitcoin-master/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS
SSCOMPILE mingw32-make OPT="-pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libm
v.a && ranlib C:/Coin/bitcoin-master/src/leveldb/libleveldb.a && ranlib C:/C
bitcoin-master/src/leveldb/libmemenv.a
CC: Fehler: =gcc: No such file or directory
CC: Fehler: CXX=g++: No such file or directory
CC: Fehler: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory
CC: Fehler: mingw32-make: No such file or directory
CC: Fehler: OPT=-pipe -D_FORTIFY_SOURCE=2 -O2: No such file or directory
mingw32-make: *** [c:/Coin/bitcoin-master/src/leveldb/libleveldb.a] Error 1


Have somebody an idea what’s going wrong? Thanks!!!!!
full member
Activity: 131
Merit: 108
Quote
C:\bitcoin>mingw32-make -f Makefile.Release                                    
cd C:/bitcoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/bitcoin/src/leveldb/libleveldb.a && ranlib C:/bitcoin/src/leveldb/libmemenv.a                                                                              
CC: oшибкa: =gcc: No such file or directory                                    
CC: oшибкa: CXX=g++: No such file or directory                                  
CC: oшибкa: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory        
CC: oшибкa: mingw32-make: No such file or directory                            
CC: oшибкa: OPT=-pipe -D_FORTIFY_SOURCE=2 -O2: No such file or directory        
mingw32-make: *** [c:/bitcoin/src/leveldb/libleveldb.a] Error 1                

Why I recive this error on qt compilling ?

Make sure you build leveldb from a msys shell then comment out genleveldb.commands from bitcoin-qt.pro  Wink
sr. member
Activity: 260
Merit: 251
Quote
C:\bitcoin>mingw32-make -f Makefile.Release                                     
cd C:/bitcoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/bitcoin/src/leveldb/libleveldb.a && ranlib C:/bitcoin/src/leveldb/libmemenv.a                                                                             
CC: oшибкa: =gcc: No such file or directory                                     
CC: oшибкa: CXX=g++: No such file or directory                                 
CC: oшибкa: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory       
CC: oшибкa: mingw32-make: No such file or directory                             
CC: oшибкa: OPT=-pipe -D_FORTIFY_SOURCE=2 -O2: No such file or directory       
mingw32-make: *** [c:/bitcoin/src/leveldb/libleveldb.a] Error 1                 

Why I recive this error on qt compilling ?

If the errors are true, and the OS can't find G++ and mingw32-make, then it would seem that the path you should have made in nitrogenetics message #1, step 1.3 no longer exists on your system, for whatever reason.

Ron
full member
Activity: 467
Merit: 100
DIA | Data infrastructure for DeFi
Quote
C:\bitcoin>mingw32-make -f Makefile.Release                                    
cd C:/bitcoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/bitcoin/src/leveldb/libleveldb.a && ranlib C:/bitcoin/src/leveldb/libmemenv.a                                                                              
CC: oшибкa: =gcc: No such file or directory                                    
CC: oшибкa: CXX=g++: No such file or directory                                  
CC: oшибкa: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory        
CC: oшибкa: mingw32-make: No such file or directory                            
CC: oшибкa: OPT=-pipe -D_FORTIFY_SOURCE=2 -O2: No such file or directory        
mingw32-make: *** [c:/bitcoin/src/leveldb/libleveldb.a] Error 1                

Why I recive this error on qt compilling ?
sr. member
Activity: 266
Merit: 250
Thanks for the excellent guide.

Got stuck in a mingw prompt while trying to make boost but I figured it out. XD

 Smiley
hero member
Activity: 772
Merit: 500
Thanks Gavin, I saw how you did the Qt build in the pull-req but it seems I'm at least unable to build a debug version of Qt with -openssl-linked, will try a -release only version.

Edit: Seems the release version compiles just fine currently... yeah, finished.

Dia
legendary
Activity: 1652
Merit: 2311
Chief Scientist
I spent a bunch of time getting the mingw-cross-compiled Qt compiled with -openssl-linked for the payment protocol work (it uses QtNetwork to fetch PaymentRequest/PaymentACK messages via https).

The magic configure incantation was:
Quote
  # Compile static libraries, and use statically linked openssl (-openssl-linked):
  OPENSSL_LIBS="-L$DEPSDIR/openssl-1.0.1c -lssl -lcrypto -lgdi32" ./configure -prefix $INSTDIR -I $DEPSDIR/openssl-1.0.1c/include  -confirm-license -release -opensource -static -no-qt3support -xplatform unsupported/win32-g++-cross -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-declarative -no-script -no-scripttools -no-javascript-jit -no-webkit -no-svg -no-xmlpatterns -no-sql-sqlite -no-nis -no-cups -no-iconv -no-dbus -no-gif -no-libtiff -no-opengl -nomake examples -nomake demos -nomake docs -no-feature-style-plastique -no-feature-style-cleanlooks -no-feature-style-motif -no-feature-style-cde -no-feature-style-windowsce -no-feature-style-windowsmobile -no-feature-style-s60 -openssl-linked

Nothing special needed to be done for the openssl build:

Quote
./Configure --cross-compile-prefix=i586-mingw32msvc- mingw


The payment protocol code add a couple more depedencies to Bitcoin-Qt:

+ QtNetwork with OpenSSL support
+ Google's protocol buffer library and compiler.

Pages:
Jump to: