Pages:
Author

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

RJX
legendary
Activity: 1078
Merit: 1003

Thanks it went further, now getting this error...

Code:
..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -static-l
ibgcc -static-libstdc++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\
coin-qt.exe object_script.coin-qt.Release  -L"c:\Qt\4.8.6\lib" -lmingwt
hrd -lmingw32 -lqtmain build\bitcoin-qt_res.o -lqrencode -LC:/deps/miniupnpc -lm
iniupnpc -liphlpapi C:/bitcoin-0.8.6/src/leveldb/libleveldb.a C:/bitcoin-0.8.6/s
rc/leveldb/libmemenv.a -lshlwapi -LC:/deps/boost_1_57_0/stage/lib -LC:/deps/db-4
.8.30.NC/build_unix -LC:/deps/openssl-1.0.1j -LC:/deps/qrencode-3.4.4/.libs -lss
l -lcrypto -ldb_cxx -lshlwapi -lmswsock -lboost_system-mgw49-mt-s-1_57 -lboost_f
ilesystem-mgw49-mt-s-1_57 -lboost_program_options-mgw49-mt-s-1_57 -lboost_thread
-mgw49-mt-s-1_57 -lboost_chrono-mgw49-mt-s-1_57 -lQtGui -lQtNetwork -lgdi32 -lco
mdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lole32 -luuid -
lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\net.o:net.cpp:(.text+0x8ba3): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x8bda): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x8c1b): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8c97): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8caa): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8d97): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x8e23): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x8eab): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x8eca): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8ed9): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x3c in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:315: recipe for target 'release\coin-qt.exe' failed
mingw32-make: *** [release\coin-qt.exe] Error 1


I hope this error makes any sense?

Btw, if using "USE_UPNP=-" option, then no issues.
Ran into same problem. Tried upnpc 1.8: same result, tried original qtpro, patched qtpro (unclear on op explanation: do you use patch after if changed manually?)

use_pnp options all come back same result.

i think ill just start over

actually this is the log of my try, saw a little difference 'bad sector':

Code:
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_csvmodelwriter.o bu
ild\moc_csvmodelwriter.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\sendcoinsentry.h -o build\moc_sendcoinsentry.
cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_sendcoinsentry.o bu
ild\moc_sendcoinsentry.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\qvalidatedlineedit.h -o build\moc_qvalidatedl
ineedit.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_qvalidatedlineedit.
o build\moc_qvalidatedlineedit.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\bitcoinunits.h -o build\moc_bitcoinunits.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_bitcoinunits.o buil
d\moc_bitcoinunits.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\qvaluecombobox.h -o build\moc_qvaluecombobox.
cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_qvaluecombobox.o bu
ild\moc_qvaluecombobox.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\askpassphrasedialog.h -o build\moc_askpassphr
asedialog.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_askpassphrasedialog
.o build\moc_askpassphrasedialog.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\notificator.h -o build\moc_notificator.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_notificator.o build
\moc_notificator.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\paymentserver.h -o build\moc_paymentserver.cp
p
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_paymentserver.o bui
ld\moc_paymentserver.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\rpcconsole.h -o build\moc_rpcconsole.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_rpcconsole.o build\
moc_rpcconsole.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\macnotificationhandler.h -o build\moc_macnoti
ficationhandler.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_macnotificationhand
ler.o build\moc_macnotificationhandler.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\splashscreen.h -o build\moc_splashscreen.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_splashscreen.o buil
d\moc_splashscreen.cpp
C:\Qt\5.3.2\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEE
DS_QMAIN -D__GNUC__ -DWIN32 -IC:/Qt/5.3.2/mkspecs/win32-g++ -IC:/tuxcoin-master
-IC:/tuxcoin-master/src -IC:/tuxcoin-master/src/json -IC:/tuxcoin-master/src/qt
-IC:/deps -IC:/tuxcoin-master/src/leveldb/include -IC:/tuxcoin-master/src/leveld
b/helpers -IC:/deps/boost_1_57_0 -IC:/deps/db-4.8.30.NC/build_unix -IC:/deps/ope
nssl-1.0.1j/include -IC:/deps/qrencode-3.4.4 -IC:/Qt/5.3.2/include -IC:/Qt/5.3.2
/include/QtWidgets -IC:/Qt/5.3.2/include/QtNetwork -IC:/Qt/5.3.2/include/QtGui -
IC:/Qt/5.3.2/include/QtCore src\qt\qrcodedialog.h -o build\moc_qrcodedialog.cpp
g++ -c -pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2 -frtti -fdiagnos
tics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter
-Wstack-protector -fexceptions -mthreads -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_L
IB -DBOOST_SPIRIT_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1
-DWIN32 -D_MT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_
CORE_LIB -DQT_NEEDS_QMAIN -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\lev
eldb\include" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8
.30.NC\build_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4"
 -I"..\Qt\5.3.2\include" -I"..\Qt\5.3.2\include\QtWidgets" -I"..\Qt\5.3.2\includ
e\QtNetwork" -I"..\Qt\5.3.2\include\QtGui" -I"..\Qt\5.3.2\include\QtCore" -I"bui
ld" -I"build" -I"..\Qt\5.3.2\mkspecs\win32-g++" -o build\moc_qrcodedialog.o buil
d\moc_qrcodedialog.cpp
windres -i src\qt\res\bitcoin-qt.rc -o build\bitcoin-qt_res.o --include-dir=./sr
c/qt/res -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DU
SE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_NO_DEBUG -DQT
_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -static-l
ibgcc -static-libstdc++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\TuxCo
in-qt.exe object_script.TuxCoin-qt.Release  -lmingwthrd -lmingw32 -LC:/Qt/5.3.2/
lib -lqtmain -LC:\deps\libpng-1.6.15\.libs -LC:\deps\openssl-1.0.1j -lqrencode -
LC:/deps/miniupnpc -lminiupnpc -liphlpapi C:/tuxcoin-master/src/leveldb/liblevel
db.a C:/tuxcoin-master/src/leveldb/libmemenv.a -LC:/deps/boost_1_57_0/stage/lib
-LC:/deps/db-4.8.30.NC/build_unix -LC:/deps/openssl-1.0.1j -LC:/deps/qrencode-3.
4.4/.libs -lssl -lcrypto -ldb_cxx -lmswsock -lboost_system-mgw49-mt-s-1_57 -lboo
st_filesystem-mgw49-mt-s-1_57 -lboost_program_options-mgw49-mt-s-1_57 -lboost_th
read-mgw49-mt-s-1_57 -lboost_chrono-mgw49-mt-s-1_57 -LC:/Qt/5.3.2/plugins/access
ible -lqtaccessiblewidgets -lQt5Widgets -LC:/Qt/5.3.2/plugins/bearer -lqgenericb
earer -lqnativewifibearer -lQt5Network -ldnsapi -lcrypt32 -LC:/Qt/5.3.2/plugins/
platforms -lqwindows -lwinspool -lshlwapi -lQt5PlatformSupport -LC:/Qt/5.3.2/plu
gins/imageformats -lqico -lQt5Gui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm
-lpng -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
 -lz build\bitcoin-qt_res.o
./build\net.o:net.cpp:(.text+0x8643): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x867a): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x86bb): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8737): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x874a): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8837): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x88c3): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x894b): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x896a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8979): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x20 in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
makefile.Release:316: recipe for target 'release\TuxCoin-qt.exe' failed
mingw32-make: *** [release\TuxCoin-qt.exe] Error 1

C:\tuxcoin-master>mingw32-make -f makefile.Release



sr. member
Activity: 360
Merit: 250
Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include
 #include
 #include
@@ -227,3 +228,4 @@
 #endif
 
 #include
+#endif



Thanks I see it went further but still getting error after some time...

..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:53: Parse er
ror at "BOOST_JOIN"
Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1






Here is my updated file has_binary_operator.hpp looks like...

Code:
//  (C) Copyright 2009-2011 Frederic Bron, Robert Stewart, Steven Watanabe & Roman Perepelitsa.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef Q_MOC_RUN
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include


// should be the last #include
#include
#endif


Hi bitcoinrulzz,
You put the last #endif to a wrong line. Put it at the end of file instead, it should work then. (check again nitrogenetics's answer)





Thanks it went further, now getting this error...

Code:
..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static -static-l
ibgcc -static-libstdc++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\
coin-qt.exe object_script.coin-qt.Release  -L"c:\Qt\4.8.6\lib" -lmingwt
hrd -lmingw32 -lqtmain build\bitcoin-qt_res.o -lqrencode -LC:/deps/miniupnpc -lm
iniupnpc -liphlpapi C:/bitcoin-0.8.6/src/leveldb/libleveldb.a C:/bitcoin-0.8.6/s
rc/leveldb/libmemenv.a -lshlwapi -LC:/deps/boost_1_57_0/stage/lib -LC:/deps/db-4
.8.30.NC/build_unix -LC:/deps/openssl-1.0.1j -LC:/deps/qrencode-3.4.4/.libs -lss
l -lcrypto -ldb_cxx -lshlwapi -lmswsock -lboost_system-mgw49-mt-s-1_57 -lboost_f
ilesystem-mgw49-mt-s-1_57 -lboost_program_options-mgw49-mt-s-1_57 -lboost_thread
-mgw49-mt-s-1_57 -lboost_chrono-mgw49-mt-s-1_57 -lQtGui -lQtNetwork -lgdi32 -lco
mdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lole32 -luuid -
lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32
./build\net.o:net.cpp:(.text+0x8ba3): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x8bda): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x8c1b): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x8c97): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8caa): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x8d97): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x8e23): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x8eab): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x8eca): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8ed9): undefined reference to `_imp__FreeUPNPUrls
'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build\net.o: bad reloc address 0x3c in section `.data'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bi
n/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:315: recipe for target 'release\coin-qt.exe' failed
mingw32-make: *** [release\coin-qt.exe] Error 1


I hope this error makes any sense?

Btw, if using "USE_UPNP=-" option, then no issues.
RJX
legendary
Activity: 1078
Merit: 1003
Hi,

Can I use this guide to compile 'some altcoins' wallet? It's an X11 algo coin.


That was a stupid question. Here's a less stupid one:

At step 2.5 I realized I skipped step 2.2 so I went on and unpacked DB without a problem. Configure however ended with two Warnings:

Neither mmap/munmap<2> or shmget <2> library functions.

unrecognized options: --enable-mingw


Does this mean I can start over again for not following the steps in the right order, or is there something that can be done?

Also I don't know how to get a 'readout' in txt from mingw shell so show here so I just typed the warnigns.

Thanks!

edit: nevermind, typo... 'wingw'

 Roll Eyes


edit 2: this warning was still there after changing typo:

Neither mmap/munmap<2> or shmget <2> library functions.

make worked and I was wondering wheter this warning will come back and haunt me further along the way?




newbie
Activity: 1
Merit: 0
Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include
 #include
 #include
@@ -227,3 +228,4 @@
 #endif
 
 #include
+#endif



Thanks I see it went further but still getting error after some time...

..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:53: Parse er
ror at "BOOST_JOIN"
Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1






Here is my updated file has_binary_operator.hpp looks like...

Code:
//  (C) Copyright 2009-2011 Frederic Bron, Robert Stewart, Steven Watanabe & Roman Perepelitsa.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef Q_MOC_RUN
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include


// should be the last #include
#include
#endif


Hi bitcoinrulzz,
You put the last #endif to a wrong line. Put it at the end of file instead, it should work then. (check again nitrogenetics's answer)
RJX
legendary
Activity: 1078
Merit: 1003
Hi,

Can I use this guide to compile 'some altcoins' wallet? It's an X11 algo coin.



sr. member
Activity: 360
Merit: 250
Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include
 #include
 #include
@@ -227,3 +228,4 @@
 #endif
 
 #include
+#endif



Thanks I see it went further but still getting error after some time...

..\deps\boost_1_57_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer
encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:53: Parse er
ror at "BOOST_JOIN"
Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1






Here is my updated file has_binary_operator.hpp looks like...

Code:
//  (C) Copyright 2009-2011 Frederic Bron, Robert Stewart, Steven Watanabe & Roman Perepelitsa.
//
//  Use, modification and distribution are subject to the Boost Software License,
//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt).
//
//  See http://www.boost.org/libs/type_traits for most recent version including documentation.

#ifndef Q_MOC_RUN
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include


// should be the last #include
#include
#endif
full member
Activity: 131
Merit: 108
Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.


It has been a while since I did a 64bit build. I'll give it a try and report back.


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp

Try wrapping has_binary_operator.hpp code inside an #ifndef Q_MOC_RUN statement:
Code:
--- has_binary_operator.hpp Thu Oct 30 11:47:21 2014
+++ has_binary_operator.hpp Mon Jan 05 23:58:51 2015
@@ -6,6 +6,7 @@
 //
 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
 
+#ifndef Q_MOC_RUN
 #include
 #include
 #include
@@ -227,3 +228,4 @@
 #endif
 
 #include
+#endif
sr. member
Activity: 360
Merit: 250
Thanks, much appreciated Wink

You can find more info about BOOST_JOIN error here: https://bugreports.qt-project.org/browse/QTBUG-22829
I successfully used the suggested workaround of wrapping has_binary_operator.hpp inside an #ifndef Q_MOC_RUN with boost 1.57.

When using current 1.9 miniupnpc sources make sure to define -DMINIUPNP_STATICLIB instead of -DSTATICLIB (v1.9 release still needs -DSTATICLIB).

Hope that helps

I am getting same error:

 C:\Qt\4.8.6\bin\moc.exe -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DUSE_QRCODE -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQ
T_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\Qt\4.8.6\include\Qt
Core" -I"..\Qt\4.8.6\include\QtNetwork" -I"..\Qt\4.8.6\include\QtGui" -I"..\Qt\4
.8.6\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps" -I"src\leveldb\include
" -I"src\leveldb\helpers" -I"..\deps\boost_1_57_0" -I"..\deps\db-4.8.30.NC\build
_unix" -I"..\deps\openssl-1.0.1j\include" -I"..\deps\qrencode-3.4.4" -I"..\Qt\4.
8.6\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.6\mkspecs\default" -D__GN
UC__ -DWIN32 src\qt\rpcconsole.cpp -o build\rpcconsole.moc
:/deps/boost_1_57_0/boost/type_traits/detail/has_binary_operator.hp:50: Parse er
ror at "BOOST_JOIN"

Makefile.Release:742: recipe for target 'build/rpcconsole.moc' failed
mingw32-make: *** [build/rpcconsole.moc] Error 1


Can you be more specific & detail as to what needs to change in has_binary_operator.hpp
newbie
Activity: 3
Merit: 0
Anyone having problems linking with libQt5Gui.a?
I'm using 64bit binaries and have built the steps leading up to Qt qttools-opensource-src-5.3.2 with no issues.  The link for Qtdiag.exe doesn't seem to want to work.  I'm not an expert at this but know the basics and have managed to get up to here with no errors.  I've followed the current instructions as they are (great guide btw!).

I'm wondering how many have actually installed using 64bit.  My next step will be to try with 32 if I can't get this resolved.  Google searches show a similar problem but so far none resolved.

This is the link and error:
g++ -Wl,--gc-sections -Wl,-s -Wl,-subsystem,console -o C:/Qt/5.3.2/bin/qtdiag.exe .obj/release/main.o .obj/release/qtdiag.o .obj/release/qtdiag_plugin_import.o  -LC:/deps/libpng-1.6.15/.libs -LC:/deps/openssl-1.0.1j -LC:/Qt/5.3.2/lib -LC:/Qt/5.3.2/plugins/bearer -lqgenericbearer -lqnativewifibearer -lQt5Network -ldnsapi -lcrypt32 -LC:/Qt/5.3.2/plugins/platforms -lqwindows -lwinspool -lshlwapi -lQt5PlatformSupport -LC:/Qt/5.3.2/plugins/imageformats -lqico -lQt5Gui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lpng -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz

C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6ae9): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6be9): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6d7d): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o):qimage.cpp:(.text+0x6e6b): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Qt/5.3.2/lib/libQt5Gui.a(qimage.o): bad reloc address 0x0 in section `.pdata'

collect2.exe: error: ld returned 1 exit status
Makefile.Release:81: recipe for target 'C:/Qt/5.3.2/bin/qtdiag.exe' failed
mingw32-make[3]: *** [C:/Qt/5.3.2/bin/qtdiag.exe] Error 1
mingw32-make[3]: Leaving directory 'c:/Qt/qttools-opensource-src-5.3.2/src/qtdiag'
Makefile:34: recipe for target 'release' failed
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/qttools-opensource-src-5.3.2/src/qtdiag'
Makefile:220: recipe for target 'sub-qtdiag-make_first' failed
mingw32-make[1]: *** [sub-qtdiag-make_first] Error 2
full member
Activity: 131
Merit: 108
Thanks, much appreciated Wink

You can find more info about BOOST_JOIN error here: https://bugreports.qt-project.org/browse/QTBUG-22829
I successfully used the suggested workaround of wrapping has_binary_operator.hpp inside an #ifndef Q_MOC_RUN with boost 1.57.

When using current 1.9 miniupnpc sources make sure to define -DMINIUPNP_STATICLIB instead of -DSTATICLIB (v1.9 release still needs -DSTATICLIB).

Hope that helps
legendary
Activity: 1330
Merit: 1000
Blockchain Developer
nitrogenics, this is one of my typical threads that I check in with every so often. You are doing an awesome job here (and others that help are too).

Just installed the build environment on a new machine. A few notes (and this really applies to older altcoins, not specifically bitcoin which i did not attempt to build):
1) Boost 1.57 seems to have some problems with QT < 5. Throwing errors on BOOST_JOIN's.  Boost 1.55 works fine.
2) I had same problem with miniupnpc as mentioned by others earlier in the thread. I built with 1.8 instead and it worked fine.
3) sending a small tip to your btc address, thanks for maintaining this thread!  Cool
full member
Activity: 131
Merit: 108
Make sure not to use msys-gcc: uninstall relevant packages or delete mingw install dir and reinstall required msys packages only.
newbie
Activity: 1
Merit: 0
I'm using db-4.8.30.NC.tar.gz, latest mingw ($ gcc -v => Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs)
cd build_unix
../dist/configure --enable-cxx --enable-mingw --disable-pthread_api --disable-replication
After this completes
@ Line 113 Replace
typedef pthread_t db_threadid_t;
with
typedef u_int32_t db_threadid_t;

Got error:

Code:
$ make
./libtool --mode=compile gcc -c -I. -I../dist/..  -O3  ../dist/../mutex/mut_win3
2.c
libtool: compile:  gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c  -DD
LL_EXPORT -DPIC -o .libs/mut_win32.o
In file included from ./db_int.h:96,
                 from ../dist/../mutex/mut_win32.c:12:
../dist/../dbinc/win_db.h:23:20: direct.h: No such file or directory
../dist/../dbinc/win_db.h:35:19: tchar.h: No such file or directory
In file included from ../dist/../dbinc/win_db.h:49,
                 from ./db_int.h:96,
                 from ../dist/../mutex/mut_win32.c:12:
/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winsock2.h:103:2: war
ning: #warning "fd_set and associated macros have been defined in sys/types.
  This may cause runtime problems with W32 sockets"
In file included from /usr/include/unistd.h:6,
                 from ./db.h:29,
                 from ./db_int.h:99,
                 from ../dist/../mutex/mut_win32.c:12:
/usr/include/sys/unistd.h:62: error: conflicting types for 'GetCurrentProcessId'

/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winbase.h:1434: error
: previous declaration of 'GetCurrentProcessId' was here
/usr/include/sys/unistd.h:62: error: conflicting types for 'GetCurrentProcessId'

/usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/winbase.h:1434: error
: previous declaration of 'GetCurrentProcessId' was here
../dist/../mutex/mut_win32.c:33: error: invalid initializer
../dist/../mutex/mut_win32.c: In function `get_handle':
../dist/../mutex/mut_win32.c:43: error: invalid initializer
make: *** [mut_win32.lo] Error 1
How to fix it?
full member
Activity: 131
Merit: 108
Yes, but only after applying patches for qt5 compatibility to 0.8.6 sources:

Remove #define loop from util.h and replace loop with while (true) in
src/bitcoinrpc.cpp
src/main.cpp
src/net.cpp
src/script.cpp
src/util.cpp
src/wallet.cpp
src/walletdb.cpp
see: https://github.com/bitcoin/bitcoin/commit/8351d55cd3955c95c5e3fe065a456db08cc8a559

Qt5 compatibility. #if QT_VERSION < 0x050000 ... in
src/qt/addressbookpage.cpp
src/qt/bitcoin.cpp
src/qt/bitcoingui.cpp
src/qt/guiutil.cpp
src/qt/paymentserver.cpp
src/qt/qrcodedialog.cpp
src/qt/rpcconsole.cpp
src/qt/sendcoinsdialog.cpp
src/qt/transactionview.cpp
src/qt/walletview.cpp
see: https://github.com/bitcoin/bitcoin/commit/25c0cce7fb494fcb871d134e28b26504d30e34d3
http://qt-project.org/doc/qt-5.0/qtdoc/sourcebreaks.html
http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

Qt5 compatibility patch:
Code:
--- bitcoinrpc.cpp Thu Dec 05 13:11:26 2013
+++ bitcoinrpc.cpp Tue Dec 31 02:25:11 2013
@@ -417,7 +417,7 @@
 int ReadHTTPHeaders(std::basic_istream& stream, map& mapHeadersRet)
 {
     int nLen = 0;
-    loop
+    while (true)
     {
         string str;
         std::getline(stream, str);
--- main.cpp Thu Dec 05 13:11:26 2013
+++ main.cpp Tue Dec 31 02:25:11 2013
@@ -4551,7 +4551,7 @@
     CReserveKey reservekey(pwallet);
     unsigned int nExtraNonce = 0;
 
-    try { loop {
+    try { while (true) {
         while (vNodes.empty())
             MilliSleep(1000);
 
@@ -4591,7 +4591,7 @@
         uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
         uint256 hashbuf[2];
         uint256& hash = *alignup<16>(hashbuf);
-        loop
+        while (true)
         {
             unsigned int nHashesDone = 0;
             unsigned int nNonceFound;
--- net.cpp Thu Dec 05 13:11:26 2013
+++ net.cpp Tue Dec 31 02:25:11 2013
@@ -135,7 +135,7 @@
 bool RecvLine(SOCKET hSocket, string& strLine)
 {
     strLine = "";
-    loop
+    while (true)
     {
         char c;
         int nBytes = recv(hSocket, &c, 1, 0);
@@ -307,7 +307,7 @@
     {
         if (strLine.empty()) // HTTP response is separated from headers by blank line
         {
-            loop
+            while (true)
             {
                 if (!RecvLine(hSocket, strLine))
                 {
@@ -750,7 +750,7 @@
 void ThreadSocketHandler()
 {
     unsigned int nPrevNodeCount = 0;
-    loop
+    while (true)
     {
         //
         // Disconnect nodes
@@ -1114,7 +1114,7 @@
         string strDesc = "Bitcoin " + FormatFullVersion();
 
         try {
-            loop {
+            while (true) {
 #ifndef UPNPDISCOVER_SUCCESS
                 /* miniupnpc 1.5 */
                 r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
@@ -1378,7 +1378,7 @@
 
     // Initiate network connections
     int64 nStart = GetTime();
-    loop
+    while (true)
     {
         ProcessOneShot();
 
@@ -1429,7 +1429,7 @@
         int64 nANow = GetAdjustedTime();
 
         int nTries = 0;
-        loop
+        while (true)
         {
             // use an nUnkBias between 10 (no outgoing connections) and 90 (8 outgoing connections)
             CAddress addr = addrman.Select(10 + min(nOutbound,8)*10);
--- script.cpp Thu Dec 05 13:11:26 2013
+++ script.cpp Tue Dec 31 02:25:11 2013
@@ -1163,7 +1163,7 @@
         // Compare
         CScript::const_iterator pc1 = script1.begin();
         CScript::const_iterator pc2 = script2.begin();
-        loop
+        while (true)
         {
             if (pc1 == script1.end() && pc2 == script2.end())
             {
--- util.cpp Thu Dec 05 13:11:26 2013
+++ util.cpp Tue Dec 31 02:25:11 2013
@@ -311,7 +311,7 @@
     char* p = buffer;
     int limit = sizeof(buffer);
     int ret;
-    loop
+    while (true)
     {
         va_list arg_ptr;
         va_copy(arg_ptr, ap);
@@ -371,7 +371,7 @@
         return;
     string::size_type i1 = 0;
     string::size_type i2;
-    loop
+    while (true)
     {
         i2 = str.find(c, i1);
         if (i2 == str.npos)
@@ -500,7 +500,7 @@
 {
     // convert hex dump to vector
     vector vch;
-    loop
+    while (true)
     {
         while (isspace(*psz))
             psz++;
@@ -954,7 +954,7 @@
 
 bool WildcardMatch(const char* psz, const char* mask)
 {
-    loop
+    while (true)
     {
         switch (*mask)
         {
--- util.h Thu Dec 05 13:11:26 2013
+++ util.h Tue Dec 31 02:25:11 2013
@@ -37,7 +37,6 @@
 static const int64 COIN = 100000000;
 static const int64 CENT = 1000000;
 
-#define loop                for (;;)
 #define BEGIN(a)            ((char*)&(a))
 #define END(a)              ((char*)&((&(a))[1]))
 #define UBEGIN(a)           ((unsigned char*)&(a))
--- wallet.cpp Thu Dec 05 13:11:26 2013
+++ wallet.cpp Tue Dec 31 02:25:11 2013
@@ -1173,7 +1173,7 @@
         LOCK2(cs_main, cs_wallet);
         {
             nFeeRet = nTransactionFee;
-            loop
+            while (true)
             {
                 wtxNew.vin.clear();
                 wtxNew.vout.clear();
--- walletdb.cpp Thu Dec 05 13:11:26 2013
+++ walletdb.cpp Tue Dec 31 02:25:11 2013
@@ -73,7 +73,7 @@
     if (!pcursor)
         throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor");
     unsigned int fFlags = DB_SET_RANGE;
-    loop
+    while (true)
     {
         // Read next record
         CDataStream ssKey(SER_DISK, CLIENT_VERSION);
@@ -415,7 +415,7 @@
             return DB_CORRUPT;
         }
 
-        loop
+        while (true)
         {
             // Read next record
             CDataStream ssKey(SER_DISK, CLIENT_VERSION);
--- qt/addressbookpage.cpp Thu Dec 05 13:11:26 2013
+++ qt/addressbookpage.cpp Tue Dec 31 02:25:11 2013
@@ -143,8 +143,13 @@
     ui->tableView->sortByColumn(0, Qt::AscendingOrder);
 
     // Set column widths
+#if QT_VERSION < 0x050000
     ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Label, QHeaderView::Stretch);
     ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents);
+#else
+    ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Label, QHeaderView::Stretch);
+    ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents);
+#endif
 
     connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
             this, SLOT(selectionChanged()));
--- qt/bitcoin.cpp Thu Dec 05 13:11:26 2013
+++ qt/bitcoin.cpp Tue Dec 31 02:25:11 2013
@@ -17,7 +17,9 @@
 #include "splashscreen.h"
 
 #include
+#if QT_VERSION < 0x050000
 #include
+#endif
 #include
 #include
 #include
@@ -118,9 +120,11 @@
     // Command-line options take precedence:
     ParseParameters(argc, argv);
 
+#if QT_VERSION < 0x050000
     // Internal string conversion is all UTF-8
     QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
     QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
+#endif
 
     Q_INIT_RESOURCE(bitcoin);
     QApplication app(argc, argv);
--- qt/bitcoingui.cpp Thu Dec 05 13:11:26 2013
+++ qt/bitcoingui.cpp Tue Dec 31 02:25:11 2013
@@ -44,7 +44,9 @@
 #include
 #include
 #include
+#if QT_VERSION < 0x050000
 #include
+#endif
 #include
 #include
 #include
--- qt/guiutil.cpp Thu Dec 05 13:11:26 2013
+++ qt/guiutil.cpp Tue Dec 31 02:25:11 2013
@@ -13,8 +13,12 @@
 #include
 #include
 #include
+#if QT_VERSION >= 0x050000
+#include
+#else
 #include
-#include // For Qt::escape
+#endif
+#include // for Qt::mightBeRichText
 #include
 #include
 #include
@@ -86,7 +90,13 @@
     SendCoinsRecipient rv;
     rv.address = uri.path();
     rv.amount = 0;
+
+#if QT_VERSION < 0x050000
     QList > items = uri.queryItems();
+#else
+    QUrlQuery uriQuery(uri);
+    QList > items = uriQuery.queryItems();
+#endif
     for (QList >::iterator i = items.begin(); i != items.end(); i++)
     {
         bool fShouldReturnFalse = false;
@@ -139,7 +149,11 @@
 
 QString HtmlEscape(const QString& str, bool fMultiLine)
 {
+#if QT_VERSION < 0x050000
     QString escaped = Qt::escape(str);
+#else
+    QString escaped = str.toHtmlEscaped();
+#endif
     if(fMultiLine)
     {
         escaped = escaped.replace("\n", "
\n");
@@ -176,7 +190,11 @@
     QString myDir;
     if(dir.isEmpty()) // Default to user documents location
     {
+#if QT_VERSION < 0x050000
         myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+#else
+        myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
+#endif
     }
     else
     {
--- qt/paymentserver.cpp Thu Dec 05 13:11:26 2013
+++ qt/paymentserver.cpp Tue Dec 31 02:25:11 2013
@@ -18,7 +18,9 @@
 #include
 #include
 #include
+#if QT_VERSION < 0x050000
 #include
+#endif
 
 using namespace boost;
 
--- qt/qrcodedialog.cpp Thu Dec 05 13:11:26 2013
+++ qt/qrcodedialog.cpp Tue Dec 31 02:25:11 2013
@@ -7,7 +7,9 @@
 #include "optionsmodel.h"
 
 #include
+#if QT_VERSION < 0x050000
 #include
+#endif
 
 #include
 
--- qt/rpcconsole.cpp Thu Dec 05 13:11:26 2013
+++ qt/rpcconsole.cpp Tue Dec 31 02:25:11 2013
@@ -8,7 +8,9 @@
 #include
 #include
 #include
+#if QT_VERSION < 0x050000
 #include
+#endif
 #include
 
 #include
--- qt/sendcoinsdialog.cpp Thu Dec 05 13:11:26 2013
+++ qt/sendcoinsdialog.cpp Tue Dec 31 02:25:11 2013
@@ -93,7 +93,11 @@
     QStringList formatted;
     foreach(const SendCoinsRecipient &rcp, recipients)
     {
+#if QT_VERSION < 0x050000
         formatted.append(tr("%1 to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address));
+#else
+        formatted.append(tr("%1 to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), rcp.label.toHtmlEscaped(), rcp.address));
+#endif
     }
 
     fNewRecipientAllowed = false;
--- qt/transactionview.cpp Thu Dec 05 13:11:26 2013
+++ qt/transactionview.cpp Tue Dec 31 02:25:11 2013
@@ -176,7 +176,11 @@
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Status, 23);
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Date, 120);
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Type, 120);
+#if QT_VERSION < 0x050000
         transactionView->horizontalHeader()->setResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
+#else
+        transactionView->horizontalHeader()->setSectionResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
+#endif
         transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Amount, 100);
     }
 }
--- qt/walletview.cpp Thu Dec 05 13:11:26 2013
+++ qt/walletview.cpp Tue Dec 31 02:25:11 2013
@@ -21,7 +21,11 @@
 #include
 #include
 #include
+#if QT_VERSION < 0x050000
 #include
+#else
+#include
+#endif
 #include
 #include
 
@@ -233,7 +237,11 @@
 
 void WalletView::backupWallet()
 {
+#if QT_VERSION < 0x050000
     QString saveDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
+#else
+    QString saveDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
+#endif
     QString filename = QFileDialog::getSaveFileName(this, tr("Backup Wallet"), saveDir, tr("Wallet Data (*.dat)"));
     if (!filename.isEmpty()) {
         if (!walletModel->backupWallet(filename)) {
member
Activity: 476
Merit: 10
Thanks for this excellent guide.

It's possible to compile bitcoin 0.8.6 with qt 5.3.2 or i have to install qt 4.8.6?
sr. member
Activity: 293
Merit: 251
Director - www.cubeform.io
Further reading for QTWebkit On Windows, includes direct method and a simpler working MingW method:
https://trac.webkit.org/wiki/BuildingQtOnWindows
full member
Activity: 131
Merit: 108
If you are going to compile qtwebkit (not required for reference implementation) you will need the full package, not just base and tools.
hero member
Activity: 501
Merit: 503
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

just finished the build, will test today.

So is the qt-everywhere-opensource a more complete version of QT?
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
last time i built it, and with 9.x i think it will show up in src/qt

older 8.x builds tend to show up in the release folder.... fyi


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.
hero member
Activity: 501
Merit: 503
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 config + make sure the client isnt running
Pages:
Jump to: