Pages:
Author

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

sr. member
Activity: 293
Merit: 251
Director - www.cubeform.io
strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

Check the release folder as opposed to src, that is where most circumstances will place it. Also, note as in the guide, compiling the daemon and qt are separate.
full member
Activity: 131
Merit: 108
ever used webkit// webkitwidgets? Trying to include a secure browser in the QT but it keeps saying the file doesn't exist

Webkit is only supported on qt shared builds afaik. To compile shared qt libraries including webkit you can do as follows:
Install perl, pyhton and ruby (make sure they are in path)
http://www.activestate.com/activeperl/downloads
https://www.python.org/downloads
http://rubyinstaller.org/downloads

(msys) compile icu: http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.zip
Code:
cd /c/deps/icu/source/
./runConfigureICU MinGW --prefix=$PWD/../dist --enable-shared --disable-static
make && make install

(msys) compile both static and shared openssl: http://www.openssl.org/source/openssl-1.0.1j.tar.gz
Code:
cd /c/deps/
tar xvfz openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
Configure shared no-dso mingw
make

(cmd) compile qt: http://download.qt-project.org/official_releases/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.7z
Code:
set PATH=%PATH%;C:\deps\icu\dist\lib
set INCLUDE=C:\deps\openssl-1.0.1j\include;C:\deps\icu\dist\include
set LIB=C:\deps\openssl-1.0.1j;C:\deps\icu\dist\lib

configure.bat -release -opensource -confirm-license -shared -make libs -make tools -no-opengl -system-zlib -qt-pcre -qt-libpng -icu -no-freetype -no-angle -no-vcproj -openssl -no-dbus

mingw32-make

As an alternative I think you can install the prebuilt qt package (http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe) and compile everything else with the included mingw-builds toolchain.



strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?

You should have a look at configure output to see why bitcoin-qt is not being built
full member
Activity: 476
Merit: 100
strip src/bitcoin-cli.exe
strip src/bitcoind.exe
strip src/qt/bitcoin-qt.exe


i can get all except bitcoin-qt.exe (the error is something like no file found)

Why please?
hero member
Activity: 501
Merit: 503
Nope, I would try cleaning and recompiling Qt. Did you have it previously compiled without openssl support?

yeah, i just did a clean install and it worked thanks.

ever used webkit// webkitwidgets? Trying to include a secure browser in the QT but it keeps saying the file doesn't exist
full member
Activity: 131
Merit: 108
Nope, I would try cleaning and recompiling Qt. Did you have it previously compiled without openssl support?
hero member
Activity: 501
Merit: 503
Did you compile qt with ssl support?

Quote
configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -system-zlib -qt-pcre -no-icu -no-gif -system-libpng -no-libjpeg -no-freetype -no-angle -no-vcproj -openssl -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug

i used the line above... do i need to add something else?
full member
Activity: 131
Merit: 108
Did you compile qt with ssl support?
hero member
Activity: 501
Merit: 503
Code:
  CXX    qt/qt_libbitcoinqt_a-paymentrequestplus.o
qt/paymentrequestplus.cpp: In member function 'bool PaymentRequestPlus::getMerch
ant(X509_STORE*, QString&) const':
qt/paymentrequestplus.cpp:102:9: error: 'QSslCertificate' was not declared in th
is scope
         QSslCertificate qCert(certData, QSsl::Der);
         ^
qt/paymentrequestplus.cpp:103:27: error: 'qCert' was not declared in this scope
         if (currentTime < qCert.effectiveDate() || currentTime > qCert.expiryDa
te()) {
                           ^
qt/paymentrequestplus.cpp:108:13: error: 'qCert' was not declared in this scope
         if (qCert.isBlacklisted()) {
             ^
make[1]: *** [qt/qt_libbitcoinqt_a-paymentrequestplus.o] Error 1
make[1]: Leaving directory `/c/bitcoin-master/src'
make: *** [all-recursive] Error 1


Anyone encountered this while building bitcoin?
legendary
Activity: 996
Merit: 1013

So,anyone know how to get a preview of the .qss inside qt creator?

Have you tried viewing the widgets in QT Designer?
hero member
Activity: 644
Merit: 500
Trying to change wallet layout from QT creator.
But can't got a preview of new layout.
QT seems not loading .qss file,and qt editor preview are based on standard UI.
But if i compile the wallet i got the new layout,modifying the .qss style by hand.

So,anyone know how to get a preview of the .qss inside qt creator?
copper member
Activity: 2324
Merit: 1348
Thanks for this Thread !!Very Good.

My first Wallet Update http://sourceforge.net/projects/limx/files/?source=navbar
hero member
Activity: 629
Merit: 500
@sunerok
makefile.mingw:
http://pastebin.com/BSkQ5wfz
$ make -f makefile.mingw
makefile.mingw:92: *** missing separator (did you mean TAB instead of 8 spaces?)
.  Stop.

isnt there supposed to be 8 spaces?
full member
Activity: 131
Merit: 108
@sunerok
makefile.mingw:
http://pastebin.com/BSkQ5wfz
hero member
Activity: 629
Merit: 500
ok, made it almost thru!

x86.o obj/scrypt-x86_64.o -l boost_system-mgw48-mt-s-1_57 -l boost_filesystem-mg
w48-mt-s-1_57 -l boost_program_options-mgw48-mt-s-1_57 -l boost_thread-mgw48-mt-s-1_57 -l db_cxx -l ssl -l crypto -l miniupnpc -l iphlpapi -l kernel32 -l user32 -l gdi32 -l omdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_system-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_filesystem-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_program_options-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_thread-mgw48-mt-s-1_57
collect2.exe: error: ld returned 1 exit status
make: *** [dogecoindarkd.exe] Error 1
so close!

Try using mgw49-mt-s-1_57 as boost suffix
that is the boost suffix i had

CXX= g++
USE_UPNP:=1
USE_IPV6:=1
BOOST_SUFFIX=-mgw49-mt-s-1_57
full member
Activity: 131
Merit: 108
ok, made it almost thru!

x86.o obj/scrypt-x86_64.o -l boost_system-mgw48-mt-s-1_57 -l boost_filesystem-mg
w48-mt-s-1_57 -l boost_program_options-mgw48-mt-s-1_57 -l boost_thread-mgw48-mt-s-1_57 -l db_cxx -l ssl -l crypto -l miniupnpc -l iphlpapi -l kernel32 -l user32 -l gdi32 -l omdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_system-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_filesystem-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_program_options-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_thread-mgw48-mt-s-1_57
collect2.exe: error: ld returned 1 exit status
make: *** [dogecoindarkd.exe] Error 1
so close!

Try using mgw49-mt-s-1_57 as boost suffix
hero member
Activity: 629
Merit: 500
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

Try deleting "main - Copy.h" and "main - Copy.cpp" from src Wink

ok, made it almost thru!

x86.o obj/scrypt-x86_64.o -l boost_system-mgw48-mt-s-1_57 -l boost_filesystem-mg
w48-mt-s-1_57 -l boost_program_options-mgw48-mt-s-1_57 -l boost_thread-mgw48-mt-
s-1_57 -l db_cxx -l ssl -l crypto -l miniupnpc -l iphlpapi -l kernel32 -l user32
 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l ol
eaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: cannot find -lboost_system-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: cannot find -lboost_filesystem-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: cannot find -lboost_program_options-mgw48-mt-s-1_57
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bi
n/ld.exe: cannot find -lboost_thread-mgw48-mt-s-1_57
collect2.exe: error: ld returned 1 exit status
make: *** [dogecoindarkd.exe] Error 1

so close!
full member
Activity: 131
Merit: 108
Code:
./build\net.o:net.cpp:(.text+0x593f): undefined reference to `_imp__upnpDiscover'
./build\net.o:net.cpp:(.text+0x5976): undefined reference to `_imp__UPNP_GetValidIGD'
./build\net.o:net.cpp:(.text+0x599c): undefined reference to `_imp__freeUPNPDevlist'
./build\net.o:net.cpp:(.text+0x5a47): undefined reference to `_imp__UPNP_GetExternalIPAddress'
./build\net.o:net.cpp:(.text+0x5b8e): undefined reference to `_imp__UPNP_AddPortMapping'
./build\net.o:net.cpp:(.text+0x5ba9): undefined reference to `_imp__strupnperror'
./build\net.o:net.cpp:(.text+0x5cb3): undefined reference to `_imp__strupnperror'
./build\net.o:net.cpp:(.text+0x5d30): undefined reference to `_imp__UPNP_DeletePortMapping'
./build\net.o:net.cpp:(.text+0x5d4f): undefined reference to `_imp__freeUPNPDevlist'
./build\net.o:net.cpp:(.text+0x5d5e): undefined reference to `_imp__FreeUPNPUrls'
./build\net.o:net.cpp:(.text+0x5d9c): undefined reference to `_imp__FreeUPNPUrls'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.text.unlikely'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:304: recipe for target 'release\test-qt.exe' failed

Make sure to define -DMINIUPNP_STATICLIB instead of -DSTATICLIB when using one o the latest miniupnpc releases.
full member
Activity: 131
Merit: 108
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

Try deleting "main - Copy.h" and "main - Copy.cpp" from src Wink
hero member
Activity: 629
Merit: 500
Does your *coind.exe use an alert.cpp?  If not then remove that line Smiley  Is there an .../obj directory in place to receive the coming .o files?  Did you remove the leveldb... line above if you don't need it in your *coin?  Did you change anything else in the makefile that might stop it from compiling any .cpp sources, since this is the first one in the list?
Stuff like that.  It would be easier if we knew which *coin and what the makefile looked like.
Ron
https://github.com/doged/dogedsource/
yes, it has an alert.cpp, yes i removed leveldb from ming makefile..
And is there an obj directory? I often end up creating one manually.
yep already has an obj dir
legendary
Activity: 996
Merit: 1013

Does your *coind.exe use an alert.cpp?  If not then remove that line Smiley  Is there an .../obj directory in place to receive the coming .o files?  Did you remove the leveldb... line above if you don't need it in your *coin?  Did you change anything else in the makefile that might stop it from compiling any .cpp sources, since this is the first one in the list?

Stuff like that.  It would be easier if we knew which *coin and what the makefile looked like.

Ron

https://github.com/doged/dogedsource/

yes, it has an alert.cpp, yes i removed leveldb from ming makefile..

And is there an obj directory? I often end up creating one manually.
Pages:
Jump to: