Pages:
Author

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

sr. member
Activity: 260
Merit: 251
no luck still the same issue Sad
can I build without upnp and also how would that affect it? would it be qmake "USE_UPNP=-" coin-qt.pro to build without upnp?

Hello skyisthelimit,

It was for me, back on May 17, 2013!

Don't quite know what "no luck" means, since the messages were not "significant" then, in that a makefile.release was created nonetheless!

Ron

Hey Ron a makefile.release gets made but when I try make -f Makefile.Release I get this issue



Hello skyisthelimit,

What the screen is saying to me is that:
1. g++ is compiling bitcoin.cpp
2. in bitcoin.cpp, g++ sees init.h at line 11
3. init.h sees wallet.h
4. wallet.h sees main.h
5. main.h sees bignum.h
6. bignum.h see bn.h
which g++ can't find in (... whatever include paths you have specified)/openssl/bn.h

So did you do notice step 4.4? Since you appear to be on step 4.6? The part that you seemed to have wrong or missed is
Code:
add dependency library locations:
in virtue of
Code:
OPENSSL_INCLUDE_PATH=whatever is yours...

Ron
newbie
Activity: 28
Merit: 0
no luck still the same issue Sad
can I build without upnp and also how would that affect it? would it be qmake "USE_UPNP=-" coin-qt.pro to build without upnp?

Hello skyisthelimit,

It was for me, back on May 17, 2013!

Don't quite know what "no luck" means, since the messages were not "significant" then, in that a makefile.release was created nonetheless!

Ron

Hey Ron a makefile.release gets made but when I try make -f Makefile.Release I get this issue

http://i.imgur.com/FeA85jQ.png
sr. member
Activity: 260
Merit: 251
no luck still the same issue Sad
can I build without upnp and also how would that affect it? would it be qmake "USE_UPNP=-" coin-qt.pro to build without upnp?

Hello skyisthelimit,

It was for me, back on May 17, 2013!

Don't quite know what "no luck" means, since the messages were not "significant" then, in that a makefile.release was created nonetheless!

Ron
newbie
Activity: 28
Merit: 0
no luck still the same issue Sad
can I build without upnp and also how would that affect it? would it be qmake "USE_UPNP=-" coin-qt.pro to build without upnp?
sr. member
Activity: 260
Merit: 251
Is anyone still around to help?

I installed all deps and now got to the last part in compiling the client but get this error when I run qmake "USE_UPNP=- coin-qt.pro



Hello skyisthelimit,

It could be that
https://bitcointalksearch.org/topic/m.2177060
will answer your question or at least point you in the right direction?

Ron
hero member
Activity: 518
Merit: 503
I am having one problem when I try to compile the miniupnpc 1.5.xx on Windows 7 32bits:

Unpack Miniupnpc inside your C:\deps folder, then executing mingw32make.bat



And with miniupnpc 1.8 on same Windows 7 32bits others errors:




Could anybody help me?
newbie
Activity: 28
Merit: 0
Is anyone still around to help?

I installed all deps and now got to the last part in compiling the client but get this error when I run qmake "USE_UPNP=- coin-qt.pro

http://i.imgur.com/1ZCjEv0.png
member
Activity: 84
Merit: 10
Can somebody help me ?
I'm stuck at a point when configuring the berkeley db (step 2.2)

The shell stuck on :
Quote
checking whether we are cross compiling...

And nothing happens
Can somebody help ?

Thanks
member
Activity: 92
Merit: 10
Thanks for the guide.

 I compiled litecoind, but when I run it it crashes after a few seconds with no error code. I tried it on a machine never ran litecoin before, same issue.

Any thoughts?

All it says in the debug file is this:

2013-12-23 22:33:51 Litecoin version v0.8.6.1-g88e2a2e-beta (Thu, 5 Dec 2013 22:52:50 -1000)
2013-12-23 22:33:51 Using OpenSSL version OpenSSL 1.0.1e 11 Feb 2013
2013-12-23 22:33:51 Default data directory C:\Users\920\AppData\Roaming\Litecoin
2013-12-23 22:33:51 Using data directory C:\Users\920\AppData\Roaming\Litecoin
2013-12-23 22:33:51 Using at most 125 connections (2048 file descriptors available)
2013-12-23 22:33:51 Using 8 threads for script verification
2013-12-23 22:33:51 init message: Verifying wallet...
2013-12-23 22:33:51 dbenv.open LogDir=C:\Users\920\AppData\Roaming\Litecoin\database ErrorFile=C:\Users\920\AppData\Roaming\Litecoin\db.log
member
Activity: 92
Merit: 10
Thanks for the guide.

 I compiled litecoind, but when I run it it crashes after a few seconds with no error code. I tried it on a machine never ran litecoin before, same issue.

Any thoughts?
sr. member
Activity: 252
Merit: 250
Hello,
I'm stucked at the 3.4. I have to make this code in Windows cmd:
Code:
cd C:\bitcoin\bitcoin-master\src
mingw32-make -f makefile.mingw
strip bitcoind.exe
The second line is not working though. At first the mingw32-make function did not work (the cmd told me that it is undefined) but after I pasted all of its directory, the program had finally recognized it. The problem is that when I write the code now I get a lot (like really a lot) errors. I don't know why. I have makefile.mingw at the right place and the mingw32-make function should work.
Every help is much appreciated Smiley

send me a pm. I can make your qt wallet for you.
newbie
Activity: 6
Merit: 0
I want to test yacoin(Download:https://github.com/yacoin/yacoin), returning the following error:
Code:
PARAMS: BOOST_SUFFIX=-mgw46-mt-1_54 INCLUDEPATHS=" -I'../libs/boost_1_54_0' -I'.
./libs/openssl-1.0.1e/include' -I'../libs/db-4.8.30.NC/build_unix' -I'../libs/mi
niupnpc-1.8'" LIBPATHS=" -L'../libs/boost_1_54_0/stage/lib' -L'../libs/openssl-1
.0.1e' -L'../libs/db-4.8.30.NC/build_unix' -L'../libs/miniupnpc-1.8'" ADDITIONAL
CCFLAGS="-fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -
Wno-unused-value -Wno-sign-compare -Wno-strict-aliasing"
g++ -c -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wn
o-unused-value -Wno-sign-compare -Wno-strict-aliasing -mthreads -O2 -msse2 -w -W
all -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -D
WIN32_LEAN_AND_MEAN -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
-DSTATICLIB -DUSE_UPNP=1 -DUSE_IPV6=1 -I'../libs/boost_1_54_0' -I'../libs/openss
l-1.0.1e/include' -I'../libs/db-4.8.30.NC/build_unix' -I'../libs/miniupnpc-1.8'
-o obj/net.o net.cpp
g++ -fno-guess-branch-probability -frandom-seed=1984 -Wno-unused-variable -Wno-u
nused-value -Wno-sign-compare -Wno-strict-aliasing -mthreads -O2 -msse2 -w -Wall
 -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -D_MT -DWIN32 -DWIN
32_LEAN_AND_MEAN -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DS
TATICLIB -DUSE_UPNP=1 -DUSE_IPV6=1 -I'../libs/boost_1_54_0' -I'../libs/openssl-1
.0.1e/include' -I'../libs/db-4.8.30.NC/build_unix' -I'../libs/miniupnpc-1.8' -Wl
,--dynamicbase -Wl,--nxcompat -o yacoind.exe -L'../libs/boost_1_54_0/stage/lib'
-L'../libs/openssl-1.0.1e' -L'../libs/db-4.8.30.NC/build_unix' -L'../libs/miniup
npc-1.8' obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o
 obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/bloom.
o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.
o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o ob
j/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kern
el.o obj/pbkdf2.o obj/scrypt_mine.o obj/scrypt-x86.o obj/scrypt-x86_64.o -l boos
t_system-mgw46-mt-1_54 -l boost_filesystem-mgw46-mt-1_54 -l boost_program_option
s-mgw46-mt-1_54 -l boost_thread-mgw46-mt-1_54 -l boost_chrono-mgw46-mt-1_54 -l d
b_cxx -l ssl -l crypto -l miniupnpc -l iphlpapi -l mingwthrd -l kernel32 -l user
32 -l gdi32 -l comdlg32 -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
obj/scrypt_mine.o: In function `Z11scrypt_hashPKvjPjh':
D:\yacoin-master\src/scrypt_mine.cpp:101: undefined reference to `scrypt'
obj/scrypt_mine.o: In function `Z15scanhash_scryptP12CBlockHeaderjRjPvS0_h':
D:\yacoin-master\src/scrypt_mine.cpp:202: undefined reference to `scrypt'
collect2: ld returned 1 exit status
makefile.mingw:104: recipe for target 'yacoind.exe' failed
mingw32-make: *** [yacoind.exe] Error 1

newbie
Activity: 12
Merit: 0
Hello,
I'm stucked at the 3.4. I have to make this code in Windows cmd:
Code:
cd C:\bitcoin\bitcoin-master\src
mingw32-make -f makefile.mingw
strip bitcoind.exe
The second line is not working though. At first the mingw32-make function did not work (the cmd told me that it is undefined) but after I pasted all of its directory, the program had finally recognized it. The problem is that when I write the code now I get a lot (like really a lot) errors. I don't know why. I have makefile.mingw at the right place and the mingw32-make function should work.
Every help is much appreciated Smiley
sr. member
Activity: 260
Merit: 251
I'm up to 3.2 -- but ... makefile.mingw is no longer in the 0.8.5 src.... so what do I do now ?

Hello GoodHosting?

Seems I addressed this ~three months ago!!

See
https://bitcointalk.org/index.php?PHPSESSID=gbmelfpm3h9pjphahl0uh7bg24&topic=149479.msg3214374#msg3214374

Don't know if it is "correct" but it worked for me Grin

Ron
newbie
Activity: 42
Merit: 0
I'm up to 3.2 -- but ... makefile.mingw is no longer in the 0.8.5 src.... so what do I do now ?
legendary
Activity: 1094
Merit: 1006
Formatted in Markdown, cleaned a few typos, and stuck it in the /docs.
Pull is here: https://github.com/super3/bitcoin/blob/build-docs/doc/build-msw-guide.md

Will have to find a clean system and test it for myself, but its a step forward.
sr. member
Activity: 260
Merit: 251


Ron
Congratz! Do you have available any guide or instructions to make Bitcoin compile with MSVC?

Hello kr105

Not yet, but it does compile. The real question is does it run? The levelDB windows (static debug) library I built "stumbles" in the 12th loop in VerifyDB() at level 3. It passes at level 0,1,2 and the exe goes all the way to running. Even connects to clients, but can't store the first new block it obtains, yet. I believe it is related to the LRU cache problem I'm seeing in VerifyDB() level 2.

I am testing on a copy of the block chain that starts(or is it ends) at 272233. This blockchain starts up fine using a "normal" version of bitcoind.exe Smiley

The levelDB code thinks it needs a chainstate/604027.sst file and tries to open it, finding that it is already open! So either it thought it closed it but it didn't. Or it didn't think it had it, but it did.

I built my .lib from the 1.13 release since that was the latest when I began Smiley

I see that bitcoin 0.8.5 uses levelDB 1.12. So should I use that version or try for the latest 1.15 Huh

The hardest parts are creating the libraries needed for MSVC++ and configuring the IDE for the project, the files, the include and library directories. Once that's done, it's a cake walk to compile test, build, debug, etc. Since the IDE has "intellisense" on all the classes, etc. it is really nice, especially in debug mode. And it "knows" about the include file relationships, which is worth it in time on rebuilding.

Since there was so little reaction to the pix, I went off MSVC++ porting some other *coin. And it went much faster since I had done the tough work on the bitcoin sources.

I am trying to find (and fix) this levelDB caching problem, and when I have and the code works, I will clean up the sources and "github" them.

I will say the there are very few changes done to the source. It is mostly in the arrangement of the includes Shocked

Ron
hero member
Activity: 938
Merit: 501


Ron
Congratz! Do you have available any guide or instructions to make Bitcoin compile with MSVC?
sr. member
Activity: 260
Merit: 251
hero member
Activity: 938
Merit: 501
What is the advantage of using a different compiler? What about accidental forks?
^This.

Edit: Maybe to use Visual Studio as development IDE?
Pages:
Jump to: