Bitcoin Forum
November 11, 2024, 12:24:21 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
Author Topic: Building headless Bitcoin and Bitcoin-qt on Windows  (Read 419387 times)
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 04:53:34 AM
Last edit: December 01, 2014, 05:24:48 AM by sunerok
 #801

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
Hello ?,

Whose (which *coin) makefile.mingw did you modify!?

Looking at a Bitcoin 0.8.6 makefile.mingw, I see something like:
Code:
...
OBJS= \
    leveldb/libleveldb.a \
    obj/alert.o \
    obj/version.o \
   ...
So the questions one might ask are:
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..

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 251



View Profile WWW
December 01, 2014, 06:19:00 AM
 #802

i modified the makefile.mingw and when i go to make it, i get:
make: *** No rule to make target 'obj/alert.o', needed by mycoind.exe'.
Stop.

ive got all the dependencies installed..
Hello ?,

Whose (which *coin) makefile.mingw did you modify!?

Looking at a Bitcoin 0.8.6 makefile.mingw, I see something like:
Code:
...
OBJS= \
    leveldb/libleveldb.a \
    obj/alert.o \
    obj/version.o \
   ...
So the questions one might ask are:
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..
Hello ?,

Looking at the dogecoindark makefile.mingw, it seems to be missing a compiler directive first line!!  See any other makefile.mingw for any other coin or even bitcoin!  Something simple like, tada:
CXX ?= g++

Did you edit that out? I quote my first message above:
Quote
Did you change anything else in the makefile that might stop it from compiling any .cpp sources

BTW, since you or whoever changed the decimal power of your coin from bitcoin's, you have to fix the code in two places!  Only one was changed.  This is because the original Bitcoin source suffered from and still suffers from poor coding practices.  Especially with respect to undocumented/undefined/uncommented numbers in the sources that are related to other undocumented/... numbers.  And numbers that may be arbitrary or historic.  No one can tell, without studying the whole source, and even then sometimes, it's a WAG Grin

Tips accepted Grin

Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 06:24:05 AM
Last edit: December 01, 2014, 06:44:00 AM by sunerok
 #803

adding that line didnt change the error  Undecided

the dogecoindark-qt.pro compiled the linux qt with no problem..

but yes of course ill send a tip for the "missing link"

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
December 01, 2014, 07:46:20 AM
 #804


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.

“God does not play dice"
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 08:36:14 AM
 #805

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

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 01, 2014, 05:26:59 PM
 #806

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

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 01, 2014, 05:44:17 PM
 #807

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.

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 05:50:44 PM
 #808

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!

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 01, 2014, 05:53:30 PM
 #809

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

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 06:01:38 PM
 #810

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

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 01, 2014, 06:24:26 PM
 #811

@sunerok
makefile.mingw:
http://pastebin.com/BSkQ5wfz

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
sunerok
Hero Member
*****
Offline Offline

Activity: 629
Merit: 500


View Profile WWW
December 01, 2014, 06:27:53 PM
 #812

@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?

_///// [XVG] ★★★★★WE ARE ON  THE VERGE ★★★★★ [SCRYPT] /////_
_//// TOR // I2P // LINUX . WINDOWS . MAC . ANDROID . ELECTRUM . WEBWALLET . GITHUB // WEBSITE // RADIO // IRC ////_
Limx Dev
Copper Member
Legendary
*
Offline Offline

Activity: 2352
Merit: 1348



View Profile
December 01, 2014, 08:40:57 PM
 #813

Thanks for this Thread !!Very Good.

My first Wallet Update http://sourceforge.net/projects/limx/files/?source=navbar

Bitcore BTX - a UTXO fork of Bitcoin - since 2017
___██ WebSite
██ Telegram
___██ Github
██ Github - Releases/ Wallets
___██ SBTX Pancakeswap
██ ChainzID Explorer
___██ UTXO fork
██ Coinmarketcap.com
fabula
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500



View Profile
December 06, 2014, 12:26:30 PM
 #814

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?
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
December 06, 2014, 02:29:54 PM
 #815


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

Have you tried viewing the widgets in QT Designer?

“God does not play dice"
hack_
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
December 12, 2014, 04:57:59 PM
 #816

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?
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 12, 2014, 07:23:51 PM
 #817

Did you compile qt with ssl support?

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
hack_
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
December 12, 2014, 11:07:43 PM
 #818

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?
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
December 13, 2014, 12:48:58 AM
 #819

Nope, I would try cleaning and recompiling Qt. Did you have it previously compiled without openssl support?

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
hack_
Hero Member
*****
Offline Offline

Activity: 501
Merit: 503


View Profile
December 13, 2014, 03:02:32 AM
 #820

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
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!