Cassey
Sr. Member
Offline
Activity: 470
Merit: 250
Better to have 100 friends than 100 rubles
|
|
March 25, 2014, 03:56:45 AM |
|
I took me at least two 40 hour weeks to get my first coin to build under windows. It took 5 minutes under Linux. Once you get the environment setup right, it will go easier.
the windows wallet can't be built under linux though right? In theory you could cross-compile, spent a week trying, on and off, and never got there. Always one piece that wouldn't fit in the puzzle.
|
Cassey
|
|
|
deaconboogie
|
|
March 25, 2014, 04:29:01 PM |
|
Been trying to build for months off and on... Followed the instructions to the letter and on any build, I always get the same exact error message when I try to run the otherwise cleanly compiled executable: What am I doing wrong here? Windows 7 x64 build environment which is freshly installed in a VM.
|
Mooncoin: 2F4E859vh1ezhpdDnMZdcR4hS1gLn54ytf BTC: 18S8XiKvFVhw6avx9tB21EHd3gNgomBFCK
|
|
|
nitrogenetics (OP)
|
|
March 25, 2014, 06:10:25 PM |
|
If I try to copy content of winsock2.h and replace ws2tcpip.h, i will get an error at netbase.cpp where it need ws2tcpip.h , so I can't really fix this part
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
what should i do..
You are most likely using the wrong toolchain. You should use one of the latest mingw-builds toolchains. I took me at least two 40 hour weeks to get my first coin to build under windows. It took 5 minutes under Linux. Once you get the environment setup right, it will go easier.
the windows wallet can't be built under linux though right? In theory you could cross-compile, spent a week trying, on and off, and never got there. Always one piece that wouldn't fit in the puzzle. Windows executables can be cross-compiled on gitian. See http://gavintech.blogspot.it/2014/02/gitian-building-bitcoin-releases.htmlBeen trying to build for months off and on... Followed the instructions to the letter and on any build, I always get the same exact error message when I try to run the otherwise cleanly compiled executable:
What am I doing wrong here?
Windows 7 x64 build environment which is freshly installed in a VM.
Not crashing here. Make sure your build environment and project file are ok.
|
BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
|
|
|
deaconboogie
|
|
March 25, 2014, 06:48:59 PM |
|
Been trying to build for months off and on... Followed the instructions to the letter and on any build, I always get the same exact error message when I try to run the otherwise cleanly compiled executable:
What am I doing wrong here?
Windows 7 x64 build environment which is freshly installed in a VM.
Not crashing here. Make sure your build environment and project file are ok. As I said, it's a clean build environment. Fresh Windows 7 install. Followed the first post to the letter. Compiles clean, but any coin I compile produces similar errors.
|
Mooncoin: 2F4E859vh1ezhpdDnMZdcR4hS1gLn54ytf BTC: 18S8XiKvFVhw6avx9tB21EHd3gNgomBFCK
|
|
|
jamd315
Newbie
Offline
Activity: 7
Merit: 0
|
|
March 26, 2014, 10:18:52 PM |
|
at make -f makefile.release I get ld.exe: cannot find -ldb_cxx In the .pro file the path BDB_LIB_PATH point to the directory with db_cxx.h also, how to I get a log from make? If one studies the makefile, one sees that the -lxxx refers to a file in the -LpathWhateverDirectory whose name is libxxx.a So do you have such a file in that place? If not, then either it wasn't built, or was built but put elsewhere (or erased, renamed,...) Can't think of too many orther possibilities Ron I can find db_cxx.h in the "BDB_LIB_PATH=c:/deps/db-4.8.30.NC/build_unix" and when I built Berkeley DB I used --enable_cxx Let's try again, Did you see my message above? I made it bigger this time So when one sees a gcc argument like -ldb_cxx one should find a file named libdb_cxx.a there. Notice how -lssl becomes libssl.a, etc. Hint: one must observe and generalize from the patterns shown in the makefile. It's all there if one just looks. Perhaps this has helped others. Ron So I checked in c:/deps/db-4.8.30.NC/build_unix I couldn't find db_cxx.a, did I build it wrong? I also ran a full HD search and found nothing. Thanks for your help! bump
|
|
|
|
old c coder
|
|
March 27, 2014, 02:40:31 AM Last edit: March 27, 2014, 02:17:29 PM by old c coder |
|
at make -f makefile.release I get ld.exe: cannot find -ldb_cxx In the .pro file the path BDB_LIB_PATH point to the directory with db_cxx.h also, how to I get a log from make? If one studies the makefile, one sees that the -lxxx refers to a file in the -LpathWhateverDirectory whose name is libxxx.a So do you have such a file in that place? If not, then either it wasn't built, or was built but put elsewhere (or erased, renamed,...) Can't think of too many orther possibilities Ron I can find db_cxx.h in the "BDB_LIB_PATH=c:/deps/db-4.8.30.NC/build_unix" and when I built Berkeley DB I used --enable_cxx Let's try again, Did you see my message above? I made it bigger this time So when one sees a gcc argument like -ldb_cxx one should find a file named libdb_cxx.a there. Notice how -lssl becomes libssl.a, etc. Hint: one must observe and generalize from the patterns shown in the makefile. It's all there if one just looks. Perhaps this has helped others. Ron So I checked in c:/deps/db-4.8.30.NC/build_unix I couldn't find db_cxx.a, did I build it wrong? I also ran a full HD search and found nothing. Thanks for your help! bump bump
|
LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf The day is coming when a single carrot, freshly observed, will set off a revolution. Paul Cezanne
|
|
|
old c coder
|
|
March 27, 2014, 04:08:55 PM |
|
That is why I'm trying to offer an alternative build platform for Windows. The bitcoin source is the same. Not changed at all. Except with changes as above. Should be easier to pretty up a windows version in MSVC than in Qt. At least it seems so to me at this time. Qt is fine but it seems to have a lot of compatibility issues with its compiler, its libraries, etc.
Anything yet ?
Hello Eternity, Sure looks like my words there! Oh it is, see message #322 (digest #17) of January 07, 2014, 03:34:12 PM https://bitcointalk.org/index.php?topic=149479.msg4371673#msg4371673To put it in context, see #228, digest 12, November 30, 2013, 06:40:00 PM https://bitcointalk.org/index.php?topic=149479.msg3785964#msg3785964 and #381 (digest #20), February 13, 2014, 03:02:10 AM https://bitcointalk.org/index.php?topic=149479.msg5114756#msg5114756I have succeeded in making a MSVC version of bitcoind.exe The testing has been going on for about two weeks now. Now it is "catching up" on the block chain and is at the moment about 23 hours behind. It is an 0.8.6 version and is built using the four libraries: Boost 1.53, OpenSSL 1.0.1e, BerkeleyDB 4.8.30 and levelDB 1.13. All MSVS built, multi-threaded and static. The release mode exe is 3,976KB (3.88MB [4,071,424bytes]) in size as compared to the gcc version which is 6,548KB (6.39MB[6,704,640byts]) in size. The debug version as an aside is 17,704KB (17.2MB[18,128,896bytes]) in size. I share the honor of having an all MSVS (Microsoft Visual Studio) port of the gcc port of the bitcoind.exe code with Claire123. Hers is for VS 2012 and is both for bitcoind and bitcoin-qt! See her forum https://bitcointalk.org/index.php?topic=349094.0;all Here they come, I can hear the digital stampede now My version is for MSVC++ 2005 Express and as it is the first and "lightest in weight" it is by definition upwardly compatible with all later versions of VS and VS Express: 2008, 2010, 2012, 2013. And it was also done on Windows XP (SP2) so as to be the most compatible with the majority of internet connected Window's desktop units. See http://www.netmarketshare.com/?source=NASite and select [Operating Systems]=>[Desktop Share by Version] Finally, it has been running for half a day or so and has settled down to consuming ~390 MB of memory. Task Manager says 407MB, procexp.exe says 395MB. The gcc bitcoind.exe (version 0.8.3) uses ~250MB. It is the only one I measured for any length of time. Ron
|
LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf The day is coming when a single carrot, freshly observed, will set off a revolution. Paul Cezanne
|
|
|
old c coder
|
|
March 27, 2014, 08:02:02 PM |
|
Hello all, Here is a live pix worth 1K words. There is a lot in there. Notice the 5 transactions hi-lighted in color on blockchain.info and hi-lighted on the running MSVC++ bitcoind.exe. Also the ~117MB being used by bitcoind.exe according to procexp.exe. Another bitcoind.exe just RPC quizzed the MSVC++ version for getblockcount, actually getblockcountt. I added a command to give the block number and its blocktime so I could see easily how the "catch-up" was going. And on the right is MSVC++ Express having just compiled 3 of the files and linked them in 1:52 (1 minute and 52 seconds) to produce the program that is running. I just commented (//) out a few printf()s to quiet the printtoconsole output a little so that I could capture the transactions as they go scrolling by. If one looks closely one can see this forum open in another browser window in the background. Ron
|
LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf The day is coming when a single carrot, freshly observed, will set off a revolution. Paul Cezanne
|
|
|
temple
|
|
March 28, 2014, 07:20:21 AM |
|
There is an issue that compiled the wallet, I got some error like the application has requested the runtime to terminate it in an unusual way anyone can help on this? the source is under: https://github.com/9cat/templecoin
|
|
|
|
saymissme
|
|
March 28, 2014, 01:30:53 PM |
|
g++ -c -frandom-seed=obj/net.o -mthreads -O2 -msse2 -w -Wall -Wextra -Wformat -W format-security -Wno-unused-parameter -g -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_L IB -DBOOST_SPIRIT_THREADSAFE -DSCRYPT_CHACHA -DSCRYPT_KECCAK512 -DSCRYPT_CHOOSE_ COMPILETIME -DO2 -DUSE_IPV6=1 -Ic:/deps/openssl-1.0.1e/include -I"C:/yacoin/src" -I"C:/yacoin/src/scrypt-jane" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/ build_unix" -I"c:/deps/openssl-1.0.1f/include" -I"c:/deps" -o obj/net.o net.cpp net.cpp: In function 'bool BindListenPort(const CService&, std::string&)': net.cpp:1802:87: error: invalid conversion from 'void*' to 'const char*' [-fperm issive] setsockopt(hListenSocket, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&nOne, size of(int));
^ In file included from compat.h:14:0, from netbase.h:11, from util.h:30, from bignum.h:12, from main.h:8, from db.h:8, from net.cpp:8: C:/mingw32/i686-w64-mingw32/include/winsock2.h:999:34: error: initializing arg ument 4 of 'int setsockopt(SOCKET, int, int, const char*, int)' [-fpermissive] WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,cons t char *optval,int optlen); ^ makefile.mingw:145: recipe for target 'obj/net.o' failed mingw32-make: *** [obj/net.o] Error 1
i build yacoind.exe got this error how bo fix it? thanks very much!
|
|
|
|
nitrogenetics (OP)
|
|
March 28, 2014, 02:35:37 PM |
|
There is an issue that compiled the wallet, I got some error like the application has requested the runtime to terminate it in an unusual way anyone can help on this? the source is under: https://github.com/9cat/templecoinAre you statically or dynamically linking qt? g++ -c -frandom-seed=obj/net.o -mthreads -O2 -msse2 -w -Wall -Wextra -Wformat -W format-security -Wno-unused-parameter -g -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_L IB -DBOOST_SPIRIT_THREADSAFE -DSCRYPT_CHACHA -DSCRYPT_KECCAK512 -DSCRYPT_CHOOSE_ COMPILETIME -DO2 -DUSE_IPV6=1 -Ic:/deps/openssl-1.0.1e/include -I"C:/yacoin/src" -I"C:/yacoin/src/scrypt-jane" -I"c:/deps/boost_1_55_0" -I"c:/deps/db-4.8.30.NC/ build_unix" -I"c:/deps/openssl-1.0.1f/include" -I"c:/deps" -o obj/net.o net.cpp net.cpp: In function 'bool BindListenPort(const CService&, std::string&)': net.cpp:1802:87: error: invalid conversion from 'void*' to 'const char*' [-fperm issive] setsockopt(hListenSocket, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&nOne, size of(int));
^ In file included from compat.h:14:0, from netbase.h:11, from util.h:30, from bignum.h:12, from main.h:8, from db.h:8, from net.cpp:8: C:/mingw32/i686-w64-mingw32/include/winsock2.h:999:34: error: initializing arg ument 4 of 'int setsockopt(SOCKET, int, int, const char*, int)' [-fpermissive] WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,cons t char *optval,int optlen); ^ makefile.mingw:145: recipe for target 'obj/net.o' failed mingw32-make: *** [obj/net.o] Error 1
i build yacoind.exe got this error how bo fix it? thanks very much! https://github.com/bitcoin/bitcoin/commit/6c6255edb54bed780f0879c906dccf6cfa98b4db
|
BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
|
|
|
temple
|
|
March 28, 2014, 07:03:21 PM |
|
Boost 1.55 seems to be broken for me. When I run I got some errors like: "VCVARS32.BAT is not recognized as an internal or external command" like in this thread: http://b1te.de/5NSo I moved to Boost 1.54 and I can run now without any problems. See if this fix helps: https://groups.google.com/d/msg/boost-developers-archive/hVNKGbZcXs0/fIh-iK-DVOMJActually I got a problem to create the Bitcoin-qt. I got messages like CC is not found. C:\testcoin>mingw32-make -f Makefile.Release cd C:/testcoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPIL E mingw32-make OPT="-pipe -fno-keep-inline-dllexport -D_FORTIFY_SOURCE=2 -O2" li bleveldb.a libmemenv.a && ranlib C:/testcoin/src/leveldb/libleveldb.a && ranl ib C:/testcoin/src/leveldb/libmemenv.a Der Befehl "CC" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Makefile.Release:317: recipe for target 'C:/testcoin/src/leveldb/libleveldb.a ' failed mingw32-make: *** [C:/testcoin/src/leveldb/libleveldb.a] Error 1 -> But CC = gcc is specified and it worked to create the headless version. I use Qt 5.2 maybe I should try it with another version. Did you remove leveldb build instructions from your .pro file? Thanks man , it save me! Just post the solution directly hereh: Adding an empty!! new line in
$BOOSTDIR/tools/build/v2/engine/build.bat
in line 93 right before: :Guess_Toolset
After that
cmd /c 'bootstrap.bat mingw'
Works as expected again in msys command environment.
|
|
|
|
apple242
Newbie
Offline
Activity: 5
Merit: 0
|
|
March 29, 2014, 04:40:58 AM |
|
c:\Wellcoin>make -f makefile.release g++ -c -pipe -D_FORTIFY_SOURCE=2 -O2 -frtti -fexceptions -mthreads -fdiagnostics -show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wst ack-protector -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAF E -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -DQT_D LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_ HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NEEDS_QMAIN -I"..\ Qt\4.8.5\include\QtCore" -I"..\Qt\4.8.5\include\QtNetwork" -I"..\Qt\4.8.5\includ e\QtGui" -I"..\Qt\4.8.5\include" -I"src" -I"src\json" -I"src\qt" -I"..\deps\boos t_1_55_0" -I"..\deps\boost_1_55_0\stage\lib" -I"..\openssl-1.0.1e\include" -I".. \openssl-1.0.1e" -I"..\deps\miniupnpc" -I"..\deps\boost_1_55_0\stage\lib" -I"..\ deps\db-4.8.30.NC\build_unix" -I"src\leveldb\include" -I"src\leveldb\helpers" -I "..\Qt\4.8.5\include\ActiveQt" -I"build" -I"build" -I"..\Qt\4.8.5\mkspecs\win32- g++" -o build\bitcoin.o src\qt\bitcoin.cpp In file included from src/schnorr.h:11:0, from src/hash.h:17, from src/net.h:22, from src/main.h:10, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/cryptopp/osrng.h:43:0: warning: ignoring #pragma comment [-Wunknown-pragmas ] #pragma comment(lib, "advapi32.lib") ^ In file included from ..\deps\boost_1_55_0/boost/bind/bind.hpp:29:0, from ..\deps\boost_1_55_0/boost/bind.hpp:22, from ..\deps\boost_1_55_0/boost/thread/detail/thread.hpp:29, from ..\deps\boost_1_55_0/boost/thread/thread_only.hpp:22, from ..\deps\boost_1_55_0/boost/thread/thread.hpp:12, from ..\deps\boost_1_55_0/boost/thread.hpp:13, from src/util.h:26, from src/bignum.h:12, from src/main.h:8, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: ..\deps\boost_1_55_0/boost/bind/arg.hpp: In constructor 'boost::arg<I>::arg(cons t T&)': ..\deps\boost_1_55_0/boost/bind/arg.hpp:37:22: warning: typedef 'T_must_be_place holder' locally defined but not used [-Wunused-local-typedefs] typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: - 1 ]; ^ In file included from ..\deps\boost_1_55_0/boost/tuple/tuple.hpp:33:0, from ..\deps\boost_1_55_0/boost/thread/detail/async_func.hpp:37 , from ..\deps\boost_1_55_0/boost/thread/future.hpp:22, from ..\deps\boost_1_55_0/boost/thread.hpp:24, from src/util.h:26, from src/bignum.h:12, from src/main.h:8, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: ..\deps\boost_1_55_0/boost/tuple/detail/tuple_basic.hpp: In function 'typename b oost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::co ns<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)': ..\deps\boost_1_55_0/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs] typedef BOOST_DEDUCED_TYPENAME impl::type cons_element; ^ In file included from src/cryptopp/pubkey.h:35:0, from src/cryptopp/eccrypto.h:7, from src/schnorr.h:12, from src/hash.h:17, from src/net.h:22, from src/main.h:10, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/cryptopp/modarith.h: In copy constructor 'CryptoPP::ModularArithmetic::Modul arArithmetic(const CryptoPP::ModularArithmetic&)': src/cryptopp/modarith.h:29:2: warning: base class 'class CryptoPP::AbstractRing< CryptoPP::Integer>' should be explicitly initialized in the copy constructor [-W extra] ModularArithmetic(const ModularArithmetic &ma) ^ In file included from src/wallet.h:13:0, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/main.h: At global scope: src/main.h:1271:25: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default] int CURRENT_VERSION=112; ^ In file included from src/walletdb.h:9:0, from src/wallet.h:19, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/base58.h: In member function 'bool CBitcoinAddress::IsValid() const': src/base58.h:315:13: error: duplicate case value case SCRIPT_ADDRESS_TEST: ^ src/base58.h:302:13: error: previously used here case PUBKEY_ADDRESS: ^ src/base58.h: In member function 'CTxDestination CBitcoinAddress::Get() const': src/base58.h:356:9: error: duplicate case value case SCRIPT_ADDRESS_TEST: { ^ src/base58.h:349:9: error: previously used here case PUBKEY_ADDRESS: ^ In file included from ..\deps\boost_1_55_0/boost/thread/shared_mutex.hpp:18:0, from ..\deps\boost_1_55_0/boost/thread/detail/thread_group.hpp: 9, from ..\deps\boost_1_55_0/boost/thread/thread.hpp:13, from ..\deps\boost_1_55_0/boost/thread.hpp:13, from src/util.h:26, from src/bignum.h:12, from src/main.h:8, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp: In instantiation of 'T boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T = boost::sh ared_mutex::state_data]': ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:124:103: required fro m here ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *reinterpret_cast <long*>(&comparand));
^ ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:52:99: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] return *reinterpret_cast<T const*>(&res); ^ ..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53:52: warning: derefer encing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] In file included from src/cryptopp/simple.h:10:0, from src/cryptopp/filters.h:6, from src/cryptopp/randpool.h:5, from src/cryptopp/osrng.h:10, from src/schnorr.h:11, from src/hash.h:17, from src/net.h:22, from src/main.h:10, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/cryptopp/algparam.h: In instantiation of 'CryptoPP::ConstByteArrayParameter: :ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char>]': src/cryptopp/filters.h:793:132: required from here src/cryptopp/misc.h:61:118: warning: unused variable 'cryptopp_assert_26' [-Wunu sed-variable] #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAss ert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
^ src/cryptopp/misc.h:64:39: note: in definition of macro 'CRYPTOPP_DO_ASSERT_JOIN ' #define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y ^ src/cryptopp/misc.h:61:97: note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN' #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAss ert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
^ src/cryptopp/misc.h:57:44: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT_ INSTANCE' #define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(ass ertion, __LINE__) ^ src/cryptopp/algparam.h:26:9: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSE RT' CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1); ^ In file included from src/cryptopp/filters.h:11:0, from src/cryptopp/randpool.h:5, from src/cryptopp/osrng.h:10, from src/schnorr.h:11, from src/hash.h:17, from src/net.h:22, from src/main.h:10, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/cryptopp/algparam.h: In instantiation of 'void CryptoPP::AlgorithmParameters Template<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
src\qt\bitcoin.cpp:301:1: required from here src/cryptopp/algparam.h:322:35: warning: unused variable 'p' [-Wunused-variable]
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T >(*this); ^ In file included from src/cryptopp/simple.h:10:0, from src/cryptopp/filters.h:6, from src/cryptopp/randpool.h:5, from src/cryptopp/osrng.h:10, from src/schnorr.h:11, from src/hash.h:17, from src/net.h:22, from src/main.h:10, from src/wallet.h:13, from src/init.h:8, from src\qt\bitcoin.cpp:13: src/cryptopp/misc.h: At global scope: src/cryptopp/misc.h:551:20: warning: 'std::string CryptoPP::StringNarrow(const w char_t*, bool)' defined but not used [-Wunused-function] static std::string StringNarrow(const wchar_t *str, bool throwOnError = true) ^ makefile.release:860: recipe for target 'build/bitcoin.o' failed mingw32-make: *** [build/bitcoin.o] Error 1
How I can solve the problem?
|
|
|
|
baokychen
|
|
March 29, 2014, 08:12:57 AM |
|
In file included from src\/compat.h:17:0, from src\/netbase.h:11, from src\/net.h:19, from src\rpcnet.cpp:6: c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:147:8: erro r: redefinition of 'struct ip_mreq' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsock.h:315:8: error : previous definition of 'struct ip_mreq' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:390:13: err or: expected initializer before 'freeaddrinfo' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:391:12: err or: expected initializer before 'getaddrinfo' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:393:12: err or: expected initializer before 'getnameinfo' In file included from src\/cryptopp/pubkey.h:35:0, from src\/cryptopp/eccrypto.h:7, from src\/schnorr.h:12, from src\/hash.h:17, from src\/net.h:22, from src\rpcnet.cpp:6: src\/cryptopp/modarith.h: In copy constructor 'CryptoPP::ModularArithmetic::Modu larArithmetic(const CryptoPP::ModularArithmetic&)': src\/cryptopp/modarith.h:29:2: warning: base class 'class CryptoPP::AbstractRing <CryptoPP::Integer>' should be explicitly initialized in the copy constructor [- Wextra] In file included from src\/cryptopp/simple.h:10:0, from src\/cryptopp/filters.h:6, from src\/cryptopp/randpool.h:5, from src\/cryptopp/osrng.h:10, from src\/schnorr.h:11, from src\/hash.h:17, from src\/net.h:22, from src\rpcnet.cpp:6: src\/cryptopp/misc.h: In function 'std::string CryptoPP::IntToString(T, unsigned int) [with T = unsigned int, std::string = std::basic_string<char>]': src\/cryptopp/simple.h:35:128: instantiated from here src\/cryptopp/misc.h:414:2: warning: comparison of unsigned expression < 0 is al ways false [-Wtype-limits] Makefile.Release:3231: recipe for target 'build/rpcnet.o' failed mingw32-make: *** [build/rpcnet.o] Error 1 How to fix this error with ws2tcpip.h is not compaitable with winsock.h Include winsock2.h instead If I take away ws2tcpip.h, it will end up issue at netbase.cpp where its use parameter of ws2tcpip.h , anyone can help resolve this Trying to build max coin window qt, but have this issue.
|
|
|
|
Stygian0708
Member
Offline
Activity: 84
Merit: 10
|
|
March 29, 2014, 05:41:47 PM |
|
Can someone please help me with this issue, I don't know what I did before to fix it but I just installed win7 in a vm to give it a try on windows7 instead of windows 8 and I am back at to the following error. I have tried installing MinGW over I know someone said install msys over mingw but I have no clue what they are talking about as haven't clarrified t hemself when asked what they meant, so any help would be greatly appreciated. I have also checked my path variables and everything seems to be correct. C:\JennyCoin>mingw32-make -f Makefile.Release cd C:/JennyCoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -fno-keep-inline -dllexport -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/JennyCoin/src/leveldb/libleveldb.a && ranlib C :/JennyCoin/src/leveldb/libmemenv.a 'CC' is not recognized as an internal or external command, operable program or batch file. Makefile.Release:317: recipe for target 'C:/JennyCoin/src/leveldb/libleveldb.a' failed mingw32-make: *** [C:/JennyCoin/src/leveldb/libleveldb.a] Error 1
C:\JennyCoin>
|
|
|
|
voxelot
|
|
March 29, 2014, 11:08:10 PM |
|
Can someone please help me with this issue, I don't know what I did before to fix it but I just installed win7 in a vm to give it a try on windows7 instead of windows 8 and I am back at to the following error. I have tried installing MinGW over I know someone said install msys over mingw but I have no clue what they are talking about as haven't clarrified t hemself when asked what they meant, so any help would be greatly appreciated. I have also checked my path variables and everything seems to be correct. C:\JennyCoin>mingw32-make -f Makefile.Release cd C:/JennyCoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -fno-keep-inline -dllexport -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/JennyCoin/src/leveldb/libleveldb.a && ranlib C :/JennyCoin/src/leveldb/libmemenv.a 'CC' is not recognized as an internal or external command, operable program or batch file. Makefile.Release:317: recipe for target 'C:/JennyCoin/src/leveldb/libleveldb.a' failed mingw32-make: *** [C:/JennyCoin/src/leveldb/libleveldb.a] Error 1
C:\JennyCoin>
Make sure you are building the libleveldb.a and libmemenv.a libraries before you compile JennyCoin from msys shell cd /C/JennyCoin/src/leveldb TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a
|
|
|
|
voxelot
|
|
March 29, 2014, 11:34:53 PM Last edit: March 30, 2014, 06:39:16 PM by voxelot |
|
When I go to make Qt 5 for feathercoin-qt.pro I receive a long list of these error outputs after qmake feathercoin-qt.pro Project MESSAGE: Building with UPNP support Warning: ignoring <defaultcodec> element Warning: ignoring <defaultcodec> element Warning: ignoring <defaultcodec> element... Is this normal? *EDIT* I assume this is normal as I have successfully compiled feathercoin-qt.exe I then received this error after mingw32-make -f Makefile.Release g++: error: unrecognized command line option '-Wl' Makefile.Release:294: recipe for target 'release\feathercoin-qt.exe' failed mingw32-make: *** [release\feathercoin-qt.exe] Error 1 I checked the feathercoin-qt.pro file and there was a difference in the win32:QMAKE_LFLAGS before the one where we are supposed to add -static where it only had win32:QMAKE_LFLAGS *= -Wl instead of win32:QMAKE_LFLAGS *= -Wl, --dynamicbase -Wl, --nxcompat So I changed that and I just receive the errors g++: error: unrecognized command line option '--dynamicbase' g++: error: unrecognized command line option '--nxcompat' Makefile.Release:294: recipe for target 'release\feathercoin-qt.exe' failed mingw32-make: *** [release\feathercoin-qt.exe] Error 1 Any advice on this? *EDIT* I fixed this by commenting out the entire line in the feathercoin-qt.pro. Might want to try adding -static to the end of the extra QMAKE_LFLAGS line too, didn't try that. # win32:QMAKE_LFLAGS *= -Wl, I'll leave this up in case anybody else comes across this g++ error.
|
|
|
|
Stygian0708
Member
Offline
Activity: 84
Merit: 10
|
|
March 30, 2014, 06:01:51 PM |
|
Make sure you are building the libleveldb.a and libmemenv.a libraries before you compile JennyCoin from msys shell cd /C/JennyCoin/src/leveldb TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a Thanks for the help but not doing that isn't going to give me the error im getting
|
|
|
|
Kergekoin
|
|
March 30, 2014, 10:16:13 PM Last edit: March 31, 2014, 06:55:38 AM by Kergekoin |
|
Trying to compile with msys, but in the end running to error:
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi n/ld.exe: cannot find -lboost_thread_win32-mgw48-mt-s-1_55 collect2.exe: error: ld returned 1 exit status make[1]: *** [release/xcoin-qt.exe] Error 1 make[1]: Leaving directory `/c/xcoin' make: *** [release] Error 2
Suspecting problem with bold part in file name. I dont have any _win32 suffix files in boost/stage/lib directory. Do i need to create them or adjust .pro file somehow?
Edit: Problem solved. Found controversal line in .pro file.
|
|
|
|
nitrogenetics (OP)
|
|
April 01, 2014, 12:13:18 AM |
|
In file included from src\/compat.h:17:0, from src\/netbase.h:11, from src\/net.h:19, from src\rpcnet.cpp:6: c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:147:8: erro r: redefinition of 'struct ip_mreq' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsock.h:315:8: error : previous definition of 'struct ip_mreq' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:390:13: err or: expected initializer before 'freeaddrinfo' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:391:12: err or: expected initializer before 'getaddrinfo' c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:393:12: err or: expected initializer before 'getnameinfo' In file included from src\/cryptopp/pubkey.h:35:0, from src\/cryptopp/eccrypto.h:7, from src\/schnorr.h:12, from src\/hash.h:17, from src\/net.h:22, from src\rpcnet.cpp:6: src\/cryptopp/modarith.h: In copy constructor 'CryptoPP::ModularArithmetic::Modu larArithmetic(const CryptoPP::ModularArithmetic&)': src\/cryptopp/modarith.h:29:2: warning: base class 'class CryptoPP::AbstractRing <CryptoPP::Integer>' should be explicitly initialized in the copy constructor [- Wextra] In file included from src\/cryptopp/simple.h:10:0, from src\/cryptopp/filters.h:6, from src\/cryptopp/randpool.h:5, from src\/cryptopp/osrng.h:10, from src\/schnorr.h:11, from src\/hash.h:17, from src\/net.h:22, from src\rpcnet.cpp:6: src\/cryptopp/misc.h: In function 'std::string CryptoPP::IntToString(T, unsigned int) [with T = unsigned int, std::string = std::basic_string<char>]': src\/cryptopp/simple.h:35:128: instantiated from here src\/cryptopp/misc.h:414:2: warning: comparison of unsigned expression < 0 is al ways false [-Wtype-limits] Makefile.Release:3231: recipe for target 'build/rpcnet.o' failed mingw32-make: *** [build/rpcnet.o] Error 1 How to fix this error with ws2tcpip.h is not compaitable with winsock.h Include winsock2.h instead If I take away ws2tcpip.h, it will end up issue at netbase.cpp where its use parameter of ws2tcpip.h , anyone can help resolve this Trying to build max coin window qt, but have this issue. You should use one of the latest mingw-builds toolchains. See step 1.1 to get a working environment. Can someone please help me with this issue, I don't know what I did before to fix it but I just installed win7 in a vm to give it a try on windows7 instead of windows 8 and I am back at to the following error. I have tried installing MinGW over I know someone said install msys over mingw but I have no clue what they are talking about as haven't clarrified t hemself when asked what they meant, so any help would be greatly appreciated. I have also checked my path variables and everything seems to be correct. C:\JennyCoin>mingw32-make -f Makefile.Release cd C:/JennyCoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -fno-keep-inline -dllexport -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/JennyCoin/src/leveldb/libleveldb.a && ranlib C :/JennyCoin/src/leveldb/libmemenv.a 'CC' is not recognized as an internal or external command, operable program or batch file. Makefile.Release:317: recipe for target 'C:/JennyCoin/src/leveldb/libleveldb.a' failed mingw32-make: *** [C:/JennyCoin/src/leveldb/libleveldb.a] Error 1
C:\JennyCoin>
Compile leveldb in msys shell and ensure genleveldb commands are commented out in your project file before qmaking and making the project.
|
BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
|
|
|
|