Pages:
Author

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

hero member
Activity: 784
Merit: 1416
i would try: #include



i used QT 5.2.1 and the client while exiting produce that flood of error messages, anybody can point me to the the file and function to look at?
member
Activity: 66
Merit: 10
Have finally got static wallets compiled with QT 5.2.0 and have to say it makes the end product much better than the ones compiled with QT 4.8.

There may be a bit more work to do with patching but the 'crash on exit' issues have gone and no longer needing external DLLs makes it look a lot cleaner.
sr. member
Activity: 400
Merit: 268
Hello,

I've been following the guide step by step but at the end when I try to build the wallet mingw32-make -f Makefile.Release.
This is what I get.



Looks like it has to do with boos 1_55_0 but It is installed and all the patches from the guide done.

Any light?

Thanks!

This is usually where most people run into the brick-wall errors.  That being said, please look through the cmd for the part that gives error, not warning.  It should list the .cpp (or header) and the line number, then the actual problem.  If you look at the "-Wunused" warnings, you see warning as opposed to error, so please provide the part earlier up in the script where you encounter the error.




sr. member
Activity: 308
Merit: 250
Update: so i just checked bitcoind.exe and it also opens and closes the cmd with error close the program.  Roll Eyes I have no idea what could be wrong. It showed me no error at all. just warnings. And i was able to strip bitcoind without any error.
sr. member
Activity: 308
Merit: 250
ok, i was compiling on windows 8 32bit. So i was able to compile, strip bitcoind. and makefile release. And after that. Then I try to run bitcoin-qt.exe it says loading wallet. Just like normal. Then suddenly windows error pops up "app has stopped working", then "close the program" it shows me no error. So no idea what's wrong? Also there are no dll files in the folder like it should have, right?
hero member
Activity: 994
Merit: 500
try moving it up above /src - that is where mine is.

It is above /src. It couldn't find anything when I tried compiling. The src directory, all the files and the qt.pro are in the bitcoin folder. I set qtbase\bin in the PATH, but it would still say qmake not found. So I put a copy of qmake.exe in the bitcoin folder and it then gave me the "can not find errors". Could this be my problem?
sr. member
Activity: 470
Merit: 250
Better to have 100 friends than 100 rubles
try moving it up above /src - that is where mine is.
hero member
Activity: 994
Merit: 500
I'm having trouble compiling qt.pro. It can not find the src directory or any other directories. The qt.pro is in the same directory as the others. It basically finds nothing.
olu
newbie
Activity: 10
Merit: 0
Hello,

I've been following the guide step by step but at the end when I try to build the wallet mingw32-make -f Makefile.Release.
This is what I get.

http://i62.tinypic.com/344zdcp.jpg

Looks like it has to do with boos 1_55_0 but It is installed and all the patches from the guide done.

Any light?

Thanks!

This is usually where most people run into the brick-wall errors.  That being said, please look through the cmd for the part that gives error, not warning.  It should list the .cpp (or header) and the line number, then the actual problem.  If you look at the "-Wunused" warnings, you see warning as opposed to error, so please provide the part earlier up in the script where you encounter the error.

sr. member
Activity: 308
Merit: 250
Update, i did a clean install of everything and i was able to strip bitcoind without any errors. I am compiling qt 5.2 libs
sr. member
Activity: 308
Merit: 250
new error

Code:
c:\mingw\include\winsock.h:315:8: error: previous definition of 'struct ip_mreq'

 struct ip_mreq {
        ^
In file included from compat.h:17:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:5:
c:\mingw\include\ws2tcpip.h:390:13: error: expected initializer before 'freeaddr
info'
 void WSAAPI freeaddrinfo (struct addrinfo*);
             ^
c:\mingw\include\ws2tcpip.h:391:12: error: expected initializer before 'getaddri
nfo'
 int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
            ^
c:\mingw\include\ws2tcpip.h:393:12: error: expected initializer before 'getnamei
nfo'
 int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
            ^
makefile.mingw:124: recipe for target 'obj/rpcnet.o' failed
mingw32-make: *** [obj/rpcnet.o] Error 1


if someone is willing to help? I am about to compile the source, and this error occurs.  Undecided
sr. member
Activity: 400
Merit: 268
Hello,

I've been following the guide step by step but at the end when I try to build the wallet mingw32-make -f Makefile.Release.
This is what I get.



Looks like it has to do with boos 1_55_0 but It is installed and all the patches from the guide done.

Any light?

Thanks!
sr. member
Activity: 308
Merit: 250
step

bootstrap.bat mingw

error:

Code:
C:\boost_1_55_0>bootstrap.bat mingw
Building Boost.Build engine
gcc: error: yyacc.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
'yacc' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for furter diagnostics.

You can try to obtain a prebuilt binary from

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.


Now stuck on this. cant figure out what's wrong.
sr. member
Activity: 308
Merit: 250
ok, so i guess the error is because of old version of boost. I am downloading new version to see how it goes.
sr. member
Activity: 308
Merit: 250
when I run mingw32-make -f makefile.mingw in cmd. I get this error.


Code:
In file included from c:/boost-1.43.0-mgw/boost/thread/detail/platform.hpp:17:0,

                 from c:/boost-1.43.0-mgw/boost/thread/thread.hpp:12,
                 from c:/boost-1.43.0-mgw/boost/thread.hpp:13,
                 from util.h:26,
                 from alert.h:13,
                 from alert.cpp:11:
c:/boost-1.43.0-mgw/boost/config/requires_threads.hpp:29:4: error: #error "Threa
ding support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THR
EADS"
 #  error "Threading support unavaliable: it has been explicitly disabled with B
OOST_DISABLE_THREADS"
    ^
makefile.mingw:124: recipe for target 'obj/alert.o' failed
mingw32-make: *** [obj/alert.o] Error 1



Any help is much appreciated. thanks
newbie
Activity: 6
Merit: 0
I am trying to compile smartcoind.exe, but  I am bumping in the following error

C:/deps/boost_1_53_0/boost/program_options/eof_iterator.hpp:75: undefined refere
nce to `boost::program_options::detail::common_config_file_iterator::get()'
obj/util.o: In function `ZN5boost15program_options6detail26basic_config_file_ite
ratorIcEC1ERSiRKSt3setISsSt4lessISsESaISsEEb':
C:/deps/boost_1_53_0/boost/program_options/detail/config_file.hpp:145: undefined
 reference to `boost::program_options::detail::common_config_file_iterator::comm
on_config_file_iterator(std::set, std::alloc
ator > const&, bool)'
C:/deps/boost_1_53_0/boost/program_options/detail/config_file.hpp:148: undefined
 reference to `boost::program_options::detail::common_config_file_iterator::get(
)'
collect2.exe: error: ld returned 1 exit status
makefile.mingw:76: recipe for target 'smartcoind.exe' failed
mingw32-make: *** [smartcoind.exe] Error 1


Anybody experience this before?

Fixing the makefile seems to solve the linking error

LIBS= \
 -l boost_system-mgw48-mt-s-1_5x \
 -l boost_filesystem-mgw48-mt-s-1_5x \
 -l boost_program_options-mgw48-mt-s-1_5x \
 -l boost_thread-mgw48-mt-s-1_5x \

Thank you very much, That did it for me.
newbie
Activity: 4
Merit: 0
My alt litecoin based code compiled perfecting following the recently updated post #1.  The key appeared to be getting a compatible list of package releases, which the post now has.

My only update would be to mention you can do the qmakes in a Mingw32 window since your not doing a full QT 5.2.0 install.  Just make sure the QT install in in your PATH.

Thanks, I am currently trying a fresh download and build of 4.8.5, if that doesn't work I will go back and make the changes for 5.2.0.
sr. member
Activity: 470
Merit: 250
Better to have 100 friends than 100 rubles
My alt litecoin based code compiled perfecting following the recently updated post #1.  The key appeared to be getting a compatible list of package releases, which the post now has.

My only update would be to mention you can do the qmakes in a Mingw32 window since your not doing a full QT 5.2.0 install.  Just make sure the QT install in in your PATH.
newbie
Activity: 4
Merit: 0
I am currently trying to compile litecoin-qt.exe using makefile.debug but keep getting this error:

Code:
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtGuid
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtNetworkd
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtCored
collect2: ld returned 1 exit status

I think its something to do with Qt but I cant figure out what... Any ideas?

I am using
boost 1.55
db 4.6.3
mingw 2.6.2
openssl-1.0.1c
qt 4.8.5


I am able to compile using makefile.release but it just runs for a few seconds with no GUI and then stops again.

Note that your output says it is looking for gcc 4.6.2 and you say you are using gcc 2.6.2??? So something is wrong there for starters!

Also, traditionally we use BerkeleyDB 4.8.30 note db 4.6.3!

Ron


That should have said mingw 4.6.2 and db 4.8.30
The error does not exist in mingw or db clearly since it is saying it cannot find -lQtGuid, etc. The post above that says I am probably missing QtGui is much more helpful. Since it is looking for some library which I probably don't have.


Quote
If this was a linux box, I'd say you didn't have the QtGUI package installed.  Have you tried this with QT 5.2.0 per post #1?

I since I am trying to compile litecoin not bitcoin so I do not want to have to make those changes to get 5.2.0 working. I will have a look to see if the QtGui stuff is missing in the meantime. Thanks

edit:
Quote

Did you compile qt debug libraries? (configure with -debug-and-release instead of -release only)

That might be the problem then :S
full member
Activity: 131
Merit: 108
I am currently trying to compile litecoin-qt.exe using makefile.debug but keep getting this error:

Code:
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtGuid
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtNetworkd
c:/deps/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32
/bin/ld.exe: cannot find -lQtCored
collect2: ld returned 1 exit status

I think its something to do with Qt but I cant figure out what... Any ideas?

I am using
boost 1.55
db 4.6.3
mingw 2.6.2
openssl-1.0.1c
qt 4.8.5


I am able to compile using makefile.release but it just runs for a few seconds with no GUI and then stops again.

Did you compile qt debug libraries? (configure with -debug-and-release instead of -release only)
Pages:
Jump to: