Bitcoin Forum
June 29, 2024, 05:29:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 419327 times)
anotherlateminer
Legendary
*
Offline Offline

Activity: 1413
Merit: 1003

Bagholder. Hodling shit since 2014


View Profile
March 02, 2016, 09:50:25 PM
 #1101

Hello.

I'm getting these errors while making libpng:

Code:
$ make
make  all-am
make[1]: Entering directory `/c/deps/libpng-1.6.21'
depbase=`echo png.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
 -g -O2 -MT png.lo -MD -MP -MF $depbase.Tpo -c -o png.lo png.c &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -g -O2 -MT png.lo -MD -MP -MF .deps/p
ng.Tpo -c png.c -o png.o
In file included from pngpriv.h:70:0,
                 from png.c:14:
pnglibconf.h:199:54: error: expected identifier or '(' before '-' token
                                                 0
                                                      ^
In file included from pngpriv.h:794:0,
                 from png.c:14:
pngstruct.h:266:21: error: operator '>=' has no left operand
 #if PNG_ZLIB_VERNUM >= 0x1240
                     ^
In file included from png.c:14:0:
pngpriv.h:800:21: error: operator '!=' has no left operand
 #if PNG_ZLIB_VERNUM != 0 && PNG_ZLIB_VERNUM != ZLIB_VERNUM
                     ^
pngpriv.h:1218:21: error: operator '>=' has no left operand
 #if PNG_ZLIB_VERNUM >= 0x1240
                     ^
make[1]: *** [png.lo] Error 1
make[1]: Leaving directory `/c/deps/libpng-1.6.21'
make: *** [all] Error 2

Have anyone been experiencing something like this?
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
March 03, 2016, 12:04:51 PM
 #1102


Have anyone been experiencing something like this?

I have a faint memory of getting this and resolving
it by using a newer version of libpng. The other one was incompatible
with the version of zlib that I had.

“God does not play dice"
anotherlateminer
Legendary
*
Offline Offline

Activity: 1413
Merit: 1003

Bagholder. Hodling shit since 2014


View Profile
March 03, 2016, 01:44:49 PM
Last edit: March 03, 2016, 02:26:09 PM by anotherlateminer
 #1103


Have anyone been experiencing something like this?

I have a faint memory of getting this and resolving
it by using a newer version of libpng. The other one was incompatible
with the version of zlib that I had.
I've tried to use several versions of libpng without luck. 1.6.21 is the latest version downloaded from here: http://www.libpng.org/pub/png/libpng.html

Updated zlib, the same.
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
March 03, 2016, 05:50:39 PM
 #1104


I think this first error may be a key to the mystery.

Code:
pnglibconf.h:199:54: error: expected identifier or '(' before '-' token
                                                 0
                                                      ^

What's on that line? It might be something unpalatable for windows.

“God does not play dice"
anotherlateminer
Legendary
*
Offline Offline

Activity: 1413
Merit: 1003

Bagholder. Hodling shit since 2014


View Profile
March 04, 2016, 12:17:39 PM
 #1105


I think this first error may be a key to the mystery.

Code:
pnglibconf.h:199:54: error: expected identifier or '(' before '-' token
                                                 0
                                                      ^

What's on that line? It might be something unpalatable for windows.
Thanks!

I've opened the file in Notepad++, noticed some strange symbols, that are not shown in basic Windows Notepad, deleted them and it worked!
mrflibblehat
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250

★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
March 05, 2016, 08:54:44 AM
 #1106


I think this first error may be a key to the mystery.

Code:
pnglibconf.h:199:54: error: expected identifier or '(' before '-' token
                                                 0
                                                      ^

What's on that line? It might be something unpalatable for windows.
Thanks!

I've opened the file in Notepad++, noticed some strange symbols, that are not shown in basic Windows Notepad, deleted them and it worked!

Aren't they ASCII that notepad can't interpret and shows them that way?

cinnamon_carter
Legendary
*
Offline Offline

Activity: 1148
Merit: 1018


It's about time -- All merrit accepted !!!


View Profile WWW
March 06, 2016, 02:12:18 AM
 #1107

the answer to this depends on which version/generation of source code you use

I suspect your question is not related to bitcoin however since this is now a bit out of date for btc,.,,,


also why change the version number ?

lol

hello it took me a while but i managed to learn how to compile wallets on windows,mac and linux but i have one issue, how do i change the version number in the about page for the wallet? i changed it using qt creator and then used the cmd to compile and when it runs and i check it, it didnt change

Check out my coin Photon
Merge Mine 5 other Blake 256 coins - 6x your hash power  https://www.blakecoin.org/

The obvious choice is not always the best choice.

LOOK DEEPER - Look into the Blake 256 Family -- CC
anotherlateminer
Legendary
*
Offline Offline

Activity: 1413
Merit: 1003

Bagholder. Hodling shit since 2014


View Profile
March 06, 2016, 04:57:15 PM
 #1108


I think this first error may be a key to the mystery.

Code:
pnglibconf.h:199:54: error: expected identifier or '(' before '-' token
                                                 0
                                                      ^

What's on that line? It might be something unpalatable for windows.
Thanks!

I've opened the file in Notepad++, noticed some strange symbols, that are not shown in basic Windows Notepad, deleted them and it worked!

Aren't they ASCII that notepad can't interpret and shows them that way?
Maybe so. I just should have used normal editor from the very beginning Smiley
ironsniper
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
March 10, 2016, 06:54:43 PM
 #1109

hey everyone, i am trying to compile a wallet on mac but am hitting a snag, i am getting the message
Code:
ld: library not found for -lminiupnpc

other then that its fine, i tried linking to the folder in the .pro file but that didnt help, what am i missing?
RidgyDidge
Sr. Member
****
Offline Offline

Activity: 369
Merit: 250


View Profile
April 09, 2016, 11:50:04 AM
 #1110

First off I have my build environment set up & I am up to the Windows Qt wallet compile part of a similar guide but am getting stuck, I think it may have something to do with the path setting ?

Commands:

cd c:\photon

qmake "USE_UPNP=1" photon-qt.pro

make -f Makefile.Release


End Result

Code:
c:\photon> make -f Makefile.Release
cd C:/photon/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE min
gw32-make OPT="-pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2" libleveldb.a lib
memenv.a && ranlib C:/photon/src/leveldb/libleveldb.a && ranlib C:/photon/src/le
veldb/libmemenv.a
CC: error: =gcc: No such file or directory
CC: error: CXX=g++: No such file or directory
CC: error: TARGET_OS=OS_WINDOWS_CROSSCOMPILE: No such file or directory
CC: error: mingw32-make: No such file or directory
CC: error: OPT=-pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2: No such file or
directory
mingw32-make: *** [c:/photon/src/leveldb/libleveldb.a] Error 1

I tried redoing the leveldb make again and libleveldb.a and also libmemenv.a were already updated & current from when I previously done it.

I'm so Close yet so far........

I am using the correct photon source github tree, already set up for compile against the guide I am following.

If anyone can help out & point me in the right direction that would be great.

cinnamon_carter
Legendary
*
Offline Offline

Activity: 1148
Merit: 1018


It's about time -- All merrit accepted !!!


View Profile WWW
April 09, 2016, 04:36:01 PM
 #1111

dude , you are posting to a thread about how to compile the bitcoin qt client for windows , using the source to an alt coin (that I happen to be involved with  and wrote notes elsewhere to help people to comple a win wallet among other things)  .......whats up with that, going to send you pm

Check out my coin Photon
Merge Mine 5 other Blake 256 coins - 6x your hash power  https://www.blakecoin.org/

The obvious choice is not always the best choice.

LOOK DEEPER - Look into the Blake 256 Family -- CC
amber2302
Member
**
Offline Offline

Activity: 94
Merit: 10


View Profile
July 08, 2016, 09:51:24 AM
 #1112

dude , you are posting to a thread about how to compile the bitcoin qt client for windows , using the source to an alt coin (that I happen to be involved with  and wrote notes elsewhere to help people to comple a win wallet among other things)  .......whats up with that, going to send you pm


hey i want to make new coin..but not able to understand this code..can u help me ??
mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
July 08, 2016, 03:01:52 PM
 #1113

dude , you are posting to a thread about how to compile the bitcoin qt client for windows , using the source to an alt coin (that I happen to be involved with  and wrote notes elsewhere to help people to comple a win wallet among other things)  .......whats up with that, going to send you pm


hey i want to make new coin..but not able to understand this code..can u help me ??

lmao
wr104
Sr. Member
****
Offline Offline

Activity: 329
Merit: 250


View Profile WWW
August 21, 2016, 06:13:49 PM
 #1114

The OP hasn't been updated in over a year.  

Has anybody figure out how to build Bitcoin 0.12.1 or the 0.13 RC?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3444
Merit: 6726


Just writing some code


View Profile WWW
August 21, 2016, 06:18:14 PM
 #1115

The OP hasn't been updated in over a year.  

Has anybody figure out how to build Bitcoin 0.12.1 or the 0.13 RC?
Try Bash for Windows on the Linux Subsytem in Windows 10. Then just use that as if you were using Ubuntu and cross compile for windows.

I'm trying to see if this works now. In theory it should.

mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
August 22, 2016, 02:10:21 AM
 #1116

The OP hasn't been updated in over a year.  

Has anybody figure out how to build Bitcoin 0.12.1 or the 0.13 RC?
Try Bash for Windows on the Linux Subsytem in Windows 10. Then just use that as if you were using Ubuntu and cross compile for windows.

I'm trying to see if this works now. In theory it should.

Thanks for the reminder. I've been interested in trying it out for this purpose, myself. I'd set Windows 10 to developer mode and restarted the computer a week or so ago, and then promptly forgot to go ahead and have it install Bash and test it out. Smiley
wr104
Sr. Member
****
Offline Offline

Activity: 329
Merit: 250


View Profile WWW
August 22, 2016, 12:56:10 PM
 #1117

I installed Bash for Windows 10 and I'm able to build bitcoind, bitcoin-cli and bitcoin-xt binaries that can only run on the same Bash for Windows environment.   But, I could not figure out how to build executables that could run on Windows.  

I followed the instructions on the below document that tells you how to build Windows executables via cross-compilation in Ubuntu but, after the build was completed I got no .exe files (at least I couldn't find them).  
https://github.com/kryptohash/bitcoin/blob/master/doc/build-windows.md

Has anybody been successful with this cross-compiling method?   By the way, I do not want to hijack this old thread full of great info. Let me know if I should create a new thread instead.

Thanks
wr104


mmortal03
Legendary
*
Offline Offline

Activity: 1762
Merit: 1010


View Profile
August 22, 2016, 08:52:41 PM
 #1118

I'm running into similar issues, not being able to build on bash on Windows for Windows. Initially, there seemed to be filename length issues, so I started using C:\a as the base directory. Even after doing that, I get the following errors:

In the depends folder, the first run of "make HOST=x86_64-w64-mingw32 -j4" ends with:

Code:
config.status: executing libtool commands
make[2]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[2]: Entering directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[2]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[1]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f/src'
make: *** [/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f/./.stamp_built] Error 2

Running "make HOST=x86_64-w64-mingw32 -j4" a second time ends with:

Code:
rm: cannot remove ‘/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/boost/1_59_0-b0bbbf17cd7/b2’: Input/output error
make: *** [/mnt/c/a/bitcoin/depends/work/staging/x86_64-w64-mingw32/boost/1_59_0-b0bbbf17cd7/.stamp_staged] Error 1
wr104
Sr. Member
****
Offline Offline

Activity: 329
Merit: 250


View Profile WWW
August 22, 2016, 09:12:45 PM
Last edit: August 23, 2016, 02:05:01 PM by wr104
 #1119

I'm running into similar issues, not being able to build on bash on Windows for Windows. Initially, there seemed to be filename length issues, so I started using C:\a as the base directory. Even after doing that, I get the following errors:

In the depends folder, the first run of "make HOST=x86_64-w64-mingw32 -j4" ends with:

Code:
config.status: executing libtool commands
make[2]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[2]: Entering directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[2]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f'
make[1]: Leaving directory `/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f/src'
make: *** [/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/native_protobuf/2.6.1-e228208c78f/./.stamp_built] Error 2

Running "make HOST=x86_64-w64-mingw32 -j4" a second time ends with:

Code:
rm: cannot remove ‘/mnt/c/a/bitcoin/depends/work/build/x86_64-w64-mingw32/boost/1_59_0-b0bbbf17cd7/b2’: Input/output error
make: *** [/mnt/c/a/bitcoin/depends/work/staging/x86_64-w64-mingw32/boost/1_59_0-b0bbbf17cd7/.stamp_staged] Error 1

I'm able to build Linux executables just fine using Bash for Windows but, I can't seem to figure out how to build executables that can run on Windows.

I'm not sure what those errors above mean but, I had a lot of trouble running any script until I realized the issue was related to extra CR (or LF) characters added by Windows to all these files that I obtained using Git for Windows.  To solve this, I deleted the project and used Git on the Bash environment itself to obtain a fresh copy of the bitcoin 0.13 project.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3444
Merit: 6726


Just writing some code


View Profile WWW
August 22, 2016, 09:21:19 PM
 #1120

Yeah, bash for windows didn't work for me.

To cross compile, you need to use the depends system.

Pages: « 1 ... 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!