anotherlateminer
Legendary
Offline
Activity: 1415
Merit: 1003
Bagholder. Hodling shit since 2014
|
|
March 02, 2016, 09:50:25 PM |
|
Hello. I'm getting these errors while making libpng: $ 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
Activity: 996
Merit: 1013
|
|
March 03, 2016, 12:04:51 PM |
|
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
Activity: 1415
Merit: 1003
Bagholder. Hodling shit since 2014
|
|
March 03, 2016, 01:44:49 PM Last edit: March 03, 2016, 02:26:09 PM by anotherlateminer |
|
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.htmlUpdated zlib, the same.
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
March 03, 2016, 05:50:39 PM |
|
I think this first error may be a key to the mystery. 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
Activity: 1415
Merit: 1003
Bagholder. Hodling shit since 2014
|
|
March 04, 2016, 12:17:39 PM |
|
I think this first error may be a key to the mystery. 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
Activity: 350
Merit: 250
★YoBit.Net★ 350+ Coins Exchange & Dice
|
|
March 05, 2016, 08:54:44 AM |
|
I think this first error may be a key to the mystery. 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
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
|
|
March 06, 2016, 02:12:18 AM |
|
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
Activity: 1415
Merit: 1003
Bagholder. Hodling shit since 2014
|
|
March 06, 2016, 04:57:15 PM |
|
I think this first error may be a key to the mystery. 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
|
|
|
|
ironsniper
Member
Offline
Activity: 92
Merit: 10
|
|
March 10, 2016, 06:54:43 PM |
|
hey everyone, i am trying to compile a wallet on mac but am hitting a snag, i am getting the message 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
|
|
April 09, 2016, 11:50:04 AM |
|
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 Resultc:\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
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
|
|
April 09, 2016, 04:36:01 PM |
|
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
Activity: 94
Merit: 10
|
|
July 08, 2016, 09:51:24 AM |
|
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
Activity: 1762
Merit: 1011
|
|
July 08, 2016, 03:01:52 PM |
|
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
|
|
August 21, 2016, 06:13:49 PM |
|
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
Offline
Activity: 3514
Merit: 6863
Just writing some code
|
|
August 21, 2016, 06:18:14 PM |
|
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
Activity: 1762
Merit: 1011
|
|
August 22, 2016, 02:10:21 AM |
|
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.
|
|
|
|
wr104
|
|
August 22, 2016, 12:56:10 PM |
|
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.mdHas 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
Activity: 1762
Merit: 1011
|
|
August 22, 2016, 08:52:41 PM |
|
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: 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: 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
|
|
August 22, 2016, 09:12:45 PM Last edit: August 23, 2016, 02:05:01 PM by wr104 |
|
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: 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: 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
Offline
Activity: 3514
Merit: 6863
Just writing some code
|
|
August 22, 2016, 09:21:19 PM |
|
Yeah, bash for windows didn't work for me.
To cross compile, you need to use the depends system.
|
|
|
|
|