Bitcoin Forum
May 08, 2024, 12:17:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 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 419326 times)
awais3344
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
April 01, 2014, 07:37:27 AM
 #521

Code:
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?

i think you have to go to root/src/cryptopp then make

then edit makefile.mingw or qmake to include cryptopp in libpaths.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
NEOSCOIN
  +POD Developers +Active Community - V2 Coming Soon! Live In-App Trading, Live Pool Stats - IRC - Arbitrush Anonymous System soon!! NEOSCOIN
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1715127440
Hero Member
*
Offline Offline

Posts: 1715127440

View Profile Personal Message (Offline)

Ignore
1715127440
Reply with quote  #2

1715127440
Report to moderator
1715127440
Hero Member
*
Offline Offline

Posts: 1715127440

View Profile Personal Message (Offline)

Ignore
1715127440
Reply with quote  #2

1715127440
Report to moderator
1715127440
Hero Member
*
Offline Offline

Posts: 1715127440

View Profile Personal Message (Offline)

Ignore
1715127440
Reply with quote  #2

1715127440
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715127440
Hero Member
*
Offline Offline

Posts: 1715127440

View Profile Personal Message (Offline)

Ignore
1715127440
Reply with quote  #2

1715127440
Report to moderator
1715127440
Hero Member
*
Offline Offline

Posts: 1715127440

View Profile Personal Message (Offline)

Ignore
1715127440
Reply with quote  #2

1715127440
Report to moderator
Kergekoin
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
April 02, 2014, 09:09:07 AM
Last edit: April 02, 2014, 05:31:40 PM by Kergekoin
 #522

qt done, but in trouble again with daemon.

Code:
c:/testcoin/src/leveldb/libleveldb.a(env_win.o):env_win.cc:(.text+0xdd8): undefin
ed reference to `_imp__PathFileExistsW@4'
c:/testcoin/src/leveldb/libleveldb.a(env_win.o):env_win.cc:(.text+0x2df2): undefi
ned reference to `_imp__PathFileExistsW@4'
c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: c:/testcoin/src/leveldb/libleveldb.a(env_win.o): bad reloc address 0x9
in section `.text.startup'
collect2.exe: error: ld returned 1 exit status
make: *** [testcoind.exe] Error 1


Installed new linux virtual machine, just to see if code is OK. and it appearantly is. Linux daemon compiled and works.
Windows qt also compiles just fine. Problem is somewhere in leveldb or my makefile.mingw.
Help appriciated Smiley.

******  NB! The links below are affiliate - friend type links, which bring additional benefits both, to you and me  ******
Binance - Best Crypto Trading Platform          CoinBase - Fastest way from FIAT to Crypto
Windscribe - The quickest and easyest way to secure and anonymize your internet traffic
Joe_Bauers
Hero Member
*****
Offline Offline

Activity: 802
Merit: 1003


GCVMMWH


View Profile
April 03, 2014, 04:01:36 AM
 #523

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

Are you statically or dynamically linking qt?


Code:
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


I merged this change to github so error will not occur again. Thanks for the heads up nitro!
apple242
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 03, 2014, 03:21:09 PM
 #524

Code:
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?

i think you have to go to root/src/cryptopp then make

then edit makefile.mingw or qmake to include cryptopp in libpaths.
Very thanks you
But another error is gone
please help me

Code:
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_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -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\include\QtGui" -I"..\QT\4.8.5\include" -
I"src" -I"src\json" -I"src\qt" -I"src\cryptopp" -I"..\deps\boost_1_55_0" -I"c:\d
eps\boost_1_55_0\stage\lib" -I"..\openssl-1.0.1e\include" -I"..\openssl-1.0.1e"
-I"..\deps\miniupnpc" -I"miniupnpc" -I"c:\deps\boost_1_55_0\stage\lib" -I"..\dep
s\db-4.8.30.NC\build_unix" -I"mgw32-mt-sd-1_55_0" -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:125:103:   required fro
m here
..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53: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:53: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:54: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:54: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)
                    ^
In file included from ..\deps\boost_1_55_0/boost/system/system_error.hpp:14:0,
                 from ..\deps\boost_1_55_0/boost/thread/exceptions.hpp:22,
                 from ..\deps\boost_1_55_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from ..\deps\boost_1_55_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from ..\deps\boost_1_55_0/boost/thread/win32/mutex.hpp:9,
                 from c:/deps/boost_1_55_0/boost/thread/mutex.hpp:14,
                 from src/allocators.h:10,
                 from src\qt\walletmodel.h:6,
                 from src\qt\bitcoin.cpp:9:
..\deps\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
makefile.release:860: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

c:\Wellcoin>
tugvarish
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
April 04, 2014, 08:36:34 PM
Last edit: April 04, 2014, 10:00:25 PM by tugvarish
 #525

I am unable to get boost installed I have followed this guide and still when I run the command to install boost it cannot find gcc any ideas

Code:

C:\deps\boost_1_55_0>bootstrap.bat mingw
Building Boost.Build engine
'gcc' 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.

C:\deps\boost_1_55_0>



Traverse to: $BOOSTDIR/tools/build/v2/engine/build.bat

and at like line 93 before :Guess_Toolset

put 3 spaces(new lines) in

then after that, type out cmd /c 'bootstrap.bat mingw'

There ya go.

This would not fix the problem... which is the actual $BOOSTDIR/tools/build/v2/engine/build.bat you are using has been coded with Unix style end-of-line (LF) instead of windows style end-of-line (CR+LF), so since it is a batch (.bat) file to be ran inside the regular windows console (CMD.COM) it will fail to execute correctly.
The solution is to open the file $BOOSTDIR/tools/build/v2/engine/build.bat with and appropriate editor that can convert the end-of-line encoding to the correct one (CR+LF)... something like NotePad2 or NotePad++ or anything else of your liking that has this feature.

EDIT (after more checking...):
... I find out that actually there are a lot of them (batch files) with the "wrong" end-of-line encoding, in some it does not cause any problem, but in some it does (depending on parsing engine), so if you have those files the best course of action is to search for and open all of them (*.bat) in something like NotePad++ and convert all the end-of-line to windows style and save all the files.
This should fix some if not all of the problems peps are having while compiling boost on windows.

(Anyway this problem mainly arise when the boost tar.gz packaged file is extracted (tar xvfz) on windows, so it should not arise if you use the boost .zip file, that supposedly and hopefully has the end-of-line of the batch files (.bat) encoded for the purpose of being open and used on windows.)

P.S.:
those solution should also fix the problem in windows where you get:
Code:
    Prompt>bootstrap.bat mingw 
    Building Boost.Build engine
    '"VCVARS32.BAT"' is not recognized as an internal or external command
    operable program or batch file.
    '"VCVARS32.BAT"' is not recognized as an internal or external command
    operable program or batch file.
    '"VCVARS32.BAT"' is not recognized as an internal or external command
    operable program or batch file.
    '"VCVARS32.BAT"' is not recognized as an internal or external command
    operable program or batch file.
    'cl' is not recognized as an internal or external command,
    operable program or batch file.
tugvarish
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
April 04, 2014, 11:57:24 PM
 #526


2.4 Miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.tar.gz
Unpack Miniupnpc to C:\deps, rename containing folder from "miniupnpc-1.9" to "miniupnpc" then from a Windows command prompt:
Code:
cd C:\deps\miniupnpc
mingw32-make -f Makefile.mingw init upnpc-static

This part has a problem. On windows if you download the tar.gz file, depending on how you unpack it, most of the time you will end up with files that may not run correctly like the two batch files in it... again the reason is that those files from the package have the Unix end-of-line encoding (LF) and will not work correctly used from windows console (cmd.com).
So either a conversion from Unix LF to Windows CR+LF on those files is needed, or just use mingw to compile it using "$ make -f Makefile.mingw init upnpc-static" from msys instead of Windows command prompt.
tugvarish
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
April 05, 2014, 09:54:48 AM
 #527


Compile bitcoind https://github.com/bitcoin/bitcoin/archive/v0.8.6.zip
Leveldb libraries will not compile automatically so we'll need to compile them first.

Extract bitcoin-0.8.6.zip (for example to C:\) then start MinGW shell and change into leveldb folder:
Code:
cd /C/bitcoin-0.8.6/src/leveldb
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a

this will compile both libleveldb.a and libmemenv.a libraries required by bitcoin.


About this part... actually there is already a directive in the makefile.mingw that does exactly that... from msys while in the bitcoin src directory, call:
Code:
make -f makefile.mingw leveldb/libleveldb.a
nitrogenetics (OP)
Full Member
***
Offline Offline

Activity: 131
Merit: 108



View Profile
April 05, 2014, 10:52:16 AM
Last edit: April 05, 2014, 01:17:12 PM by nitrogenetics
 #528

... I find out that actually there are a lot of them (batch files) with the "wrong" end-of-line encoding, in some it does not cause any problem, but in some it does (depending on parsing engine), so if you have those files the best course of action is to search for and open all of them (*.bat) in something like NotePad++ and convert all the end-of-line to windows style and save all the files.
This should fix some if not all of the problems peps are having while compiling boost on windows.


Boost tarballs contain unix EOL encoded files, the easyest way is to use either the zip or the 7z archive containing windows EOL files.


So either a conversion from Unix LF to Windows CR+LF on those files is needed, or just use mingw to compile it using "$ make -f Makefile.mingw init upnpc-static" from msys instead of Windows command prompt.


Miniupnpc compiles fine from both msys and cmd producing identical binaries, so it's just a matter of preference which one you compile from.


About this part... actually there is already a directive in the makefile.mingw that does exactly that... from msys while in the bitcoin src directory, call:
Code:
make -f makefile.mingw leveldb/libleveldb.a

Yes, this is a remnant from older versions, it probably makes more sense compiling bitcoind from msys instead of building leveldb from msys then bitcoind from cmd Wink

BTC: 1NWQ4TarCCC7j1XY26KRFFEtLYbPP6S3DH
XRP: rJkbeyRaUYDmcukEyLYVfn56QDM9VhybZG
tugvarish
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
April 06, 2014, 03:34:05 AM
 #529


So either a conversion from Unix LF to Windows CR+LF on those files is needed, or just use mingw to compile it using "$ make -f Makefile.mingw init upnpc-static" from msys instead of Windows command prompt.


Miniupnpc compiles fine from both msys and cmd producing identical binaries, so it's just a matter of preference which one you compile from.


Well, that is correct for now, but since the package contains all files with the Unix style end-of-line, I prefer to use MSYS on Windows, so I am sure that nothing breaks now, nor will in the future.

Also note that one of the batch files in the miniupnpc folder is named 'mingw32make.bat', very similar to the command that you instruct to use, 'mingw32-make', if the user has Windows CLI completion enable, and type the first few letter then auto-complete, that batch file will be used causing problems... also in Windows batch file can be called without the .bat extension, making this one even more similar to the actual command that we want to use.

... but yes for now is just matter of preference.
marseille
Hero Member
*****
Offline Offline

Activity: 938
Merit: 500



View Profile
April 07, 2014, 08:29:06 AM
 #530

I've been following your method to build alt coins, for most it works fine. But when I try to build some coins based on Litecoin 0.6.3, I got this link error. Any insights on what happened there?

Code:
g++ -c -pipe -msse2 -O2 -frtti -fexceptions -mthreads -fdiagnostics-show-option
-Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT
_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_SYSTEM_IN
CLUDES -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_DLL -DQT_NO_DEBU
G -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HA
VE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../Qt/4.8.4/
include/QtCore' -I'../../Qt/4.8.4/include/QtGui' -I'../../Qt/4.8.4/include' -I's
rc' -I'src/json' -I'src/qt' -I'e:/' -I'e:/boost_1_55_0' -I'e:/db-4.8.30.NC/build
_unix' -I'e:/openssl-1.0.1f/include' -I'../../Qt/4.8.4/include/ActiveQt' -I'buil
d' -I'build' -I'../../Qt/4.8.4/mkspecs/default' -o build/qrc_bitcoin.o release/q
rc_bitcoin.cpp
windres -i src/qt/res/bitcoin-qt.rc -o build/bitcoin-qt_res.o --include-dir=./sr
c/qt/res -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOS
T_SPIRIT_THREADSAFE -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -D__NO_S
YSTEM_INCLUDES -DUSE_UPNP=1 -DSTATICLIB -DUSE_IPV6=1 -DWIN32 -D_MT -DQT_DLL -DQT
_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE
 -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,-s -mthreads -Wl,-subsystem,windows -o
release/eccoin-qt.exe object_script.eccoin-qt.Release  -L'c:/Qt/4.8.4/lib' -lmin
gwthrd -lmingw32 -lqtmain build/bitcoin-qt_res.o -LE:/miniupnpc -lminiupnpc -lip
hlpapi -LE:/boost_1_55_0/stage/lib -LE:/db-4.8.30.NC/build_unix -LE:/openssl-1.0
.1f -lssl -lcrypto -ldb_cxx -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luu
id -lgdi32 -lboost_system-mgw48-mt-d-1_55 -lboost_filesystem-mgw48-mt-d-1_55 -lb
oost_program_options-mgw48-mt-d-1_55 -lboost_thread-mgw48-mt-d-1_55 -lboost_chro
no-mgw48-mt-d-1_55 -lQtGui4 -lQtCore4
./build/util.o:util.cpp:(.text+0x4ae5): undefined reference to `boost::program_o
ptions::detail::common_config_file_iterator::get()'
./build/util.o:util.cpp:(.text$_ZN5boost15program_options6detail26basic_config_f
ile_iteratorIcEC1ERSiRKSt3setISsSt4lessISsESaISsEEb[__ZN5boost15program_options6
detail26basic_config_file_iteratorIcEC1ERSiRKSt3setISsSt4lessISsESaISsEEb]+0x1c)
: undefined reference to `boost::program_options::detail::common_config_file_ite
rator::common_config_file_iterator(std::set<std::string, std::less<std::string>,
 std::allocator<std::string> > const&, bool)'
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bi
n/ld.exe: ./build/util.o: bad reloc address 0x1c in section `.text$_ZN5boost15pr
ogram_options6detail26basic_config_file_iteratorIcEC1ERSiRKSt3setISsSt4lessISsES
aISsEEb[__ZN5boost15program_options6detail26basic_config_file_iteratorIcEC1ERSiR
KSt3setISsSt4lessISsESaISsEEb]'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:259: recipe for target 'release/eccoin-qt.exe' failed
mingw32-make: *** [release/eccoin-qt.exe] Error 1
Kergekoin
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
April 07, 2014, 12:49:11 PM
 #531

Looks like you have changed something in source code?

******  NB! The links below are affiliate - friend type links, which bring additional benefits both, to you and me  ******
Binance - Best Crypto Trading Platform          CoinBase - Fastest way from FIAT to Crypto
Windscribe - The quickest and easyest way to secure and anonymize your internet traffic
marseille
Hero Member
*****
Offline Offline

Activity: 938
Merit: 500



View Profile
April 07, 2014, 04:00:02 PM
 #532

Looks like you have changed something in source code?
Nope, this source code is from ECCoin:
https://github.com/eccoin/eccoin

I did not change.
Kergekoin
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
April 07, 2014, 05:25:26 PM
 #533

Looks like you have changed something in source code?
Nope, this source code is from ECCoin:
https://github.com/eccoin/eccoin

I did not change.

OK, ECC, MINT, GRAIN and other such clones you need to compile with QT4.8. You could use easywinbuilder script for them. They should compile just fine with it.
I managed to port to compile with QT5.2 as well, but it takes some code changes for it to work.

******  NB! The links below are affiliate - friend type links, which bring additional benefits both, to you and me  ******
Binance - Best Crypto Trading Platform          CoinBase - Fastest way from FIAT to Crypto
Windscribe - The quickest and easyest way to secure and anonymize your internet traffic
marseille
Hero Member
*****
Offline Offline

Activity: 938
Merit: 500



View Profile
April 07, 2014, 06:13:36 PM
 #534

Looks like you have changed something in source code?
Nope, this source code is from ECCoin:
https://github.com/eccoin/eccoin

I did not change.

OK, ECC, MINT, GRAIN and other such clones you need to compile with QT4.8. You could use easywinbuilder script for them. They should compile just fine with it.
I managed to port to compile with QT5.2 as well, but it takes some code changes for it to work.

I am compiling with QT 4.8.5. Where can I find easywinbuilder?

BTW, I found that this issue only happens if I use dynamic libraries from boost. If I use static library, then the compilation works fine.
TheColdQuasar
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
April 08, 2014, 06:02:22 PM
Last edit: April 08, 2014, 08:30:45 PM by TheColdQuasar
 #535

Hello,
On step 2.6 PKG_CONFIG enviroment variable issue. How to avoid png_CFLAG not to call PKG
awais3344
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
April 14, 2014, 07:55:36 AM
 #536

Code:
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?

i think you have to go to root/src/cryptopp then make

then edit makefile.mingw or qmake to include cryptopp in libpaths.
Very thanks you
But another error is gone
please help me

Code:
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_IPV6=1 -DWIN32 -D_MT -DQT_THREAD_SUPPORT -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\include\QtGui" -I"..\QT\4.8.5\include" -
I"src" -I"src\json" -I"src\qt" -I"src\cryptopp" -I"..\deps\boost_1_55_0" -I"c:\d
eps\boost_1_55_0\stage\lib" -I"..\openssl-1.0.1e\include" -I"..\openssl-1.0.1e"
-I"..\deps\miniupnpc" -I"miniupnpc" -I"c:\deps\boost_1_55_0\stage\lib" -I"..\dep
s\db-4.8.30.NC\build_unix" -I"mgw32-mt-sd-1_55_0" -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:125:103:   required fro
m here
..\deps\boost_1_55_0/boost/thread/win32/shared_mutex.hpp:53: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:53: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:54: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:54: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)
                    ^
In file included from ..\deps\boost_1_55_0/boost/system/system_error.hpp:14:0,
                 from ..\deps\boost_1_55_0/boost/thread/exceptions.hpp:22,
                 from ..\deps\boost_1_55_0/boost/thread/win32/thread_primitives.
hpp:16,
                 from ..\deps\boost_1_55_0/boost/thread/win32/basic_timed_mutex.
hpp:14,
                 from ..\deps\boost_1_55_0/boost/thread/win32/mutex.hpp:9,
                 from c:/deps/boost_1_55_0/boost/thread/mutex.hpp:14,
                 from src/allocators.h:10,
                 from src\qt\walletmodel.h:6,
                 from src\qt\bitcoin.cpp:9:
..\deps\boost_1_55_0/boost/system/error_code.hpp:222:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
     static const error_category &  posix_category = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:223:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
     static const error_category &  errno_ecat     = generic_category();
                                    ^
..\deps\boost_1_55_0/boost/system/error_code.hpp:224:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
     static const error_category &  native_ecat    = system_category();
                                    ^
makefile.release:860: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1

c:\Wellcoin>


Late reply, but have you included the cryptopp in makefile.mingw and qmake?

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
NEOSCOIN
  +POD Developers +Active Community - V2 Coming Soon! Live In-App Trading, Live Pool Stats - IRC - Arbitrush Anonymous System soon!! NEOSCOIN
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Lisa Sheridan
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
April 14, 2014, 08:30:46 AM
 #537

I checked the feathercoin-qt.pro file
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
April 17, 2014, 07:55:58 AM
 #538

so many things to install, there isn't an easy way? like a compiler with all those things packed in?
Jori
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
April 17, 2014, 02:44:13 PM
Last edit: April 17, 2014, 03:25:09 PM by Jori
 #539

I followed this guide loosely and successfully compiled OpenSSL, BDB and Boost (compiling for the headless version, so no QT, protoc, libpng or qrencode needed). Then I set the appropriate include and library files in the gcc specs file, so that they could be found and ran autogen.sh and configure. All went well and a makefile was generated in the root directory, which I ran. It compiled all modules successfully and then tried to build bitcoind (I believe), outputting:

Code:
Making all in src
make[1]: Entering directory `/i/code/bitcoin_git/bitcoin/src'
make  all-recursive
make[2]: Entering directory `/i/code/bitcoin_git/bitcoin/src'
Making all in .
make[3]: Entering directory `/i/code/bitcoin_git/bitcoin/src'
  CXXLD  bitcoind.exe

This failed however with a host of errors (I included the head only, but I think the problem can be derived from this, as the other errors are very alike):

Code:
libbitcoin_server.a(main.o): In function `CLevelDBBatch':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::WriteBatch()'
libbitcoin_server.a(main.o): In function `~CLevelDBBatch':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::~WriteBatch()'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::~WriteBatch()'
libbitcoin_server.a(leveldbwrapper.o): In function `Z11HandleErrorRKN7leveldb6StatusE':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:18: undefined reference to `leveldb::Status::ToString() const'
libbitcoin_server.a(leveldbwrapper.o): In function `ZN15CLevelDBWrapperC2ERKN5boost10filesystem4pathEjbb':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:38: undefined reference to `leveldb::Options::Options()'
libbitcoin_server.a(leveldbwrapper.o): In function `GetOptions':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:29: undefined reference to `leveldb::Options::Options()'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:30: undefined reference to `leveldb::NewLRUCache(unsigned int)'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:32: undefined reference to `leveldb::NewBloomFilterPolicy(int)'
libbitcoin_server.a(leveldbwrapper.o): In function `ZN15CLevelDBWrapperC2ERKN5boost10filesystem4pathEjbb':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:52: undefined reference to `leveldb::DestroyDB(std::string const&, leveldb::Options const&)'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:57: undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.cpp:47: undefined reference to `leveldb::Env::Default()'
libbitcoin_server.a(txdb.o): In function `CLevelDBBatch':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::WriteBatch()'
libbitcoin_server.a(txdb.o): In function `Write<char, int>':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:44: undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
libbitcoin_server.a(txdb.o): In function `~CLevelDBBatch':
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::~WriteBatch()'
i:\code\bitcoin_git\bitcoin\src/leveldbwrapper.h:25: undefined reference to `leveldb::WriteBatch::~WriteBatch()'
...
...
...

I checked if libleveldb.a and libmemenv.a were available, and they were (located at .../src/leveldb).

Could anyone point me in the right direction?
old c coder
Sr. Member
****
Offline Offline

Activity: 260
Merit: 250



View Profile WWW
April 18, 2014, 06:04:28 AM
 #540

Quote
What's interesting is that the compiler "warnings" about the bad C++ slang that is being used, as opposed to the preferred slang, i.e. the highly idiomatic, baroque (as Knuth calls it) nature of C++, can be controlled in MSVC++ and one can "see" more clearly what is "going on".  The thought is that this should lead to more understanding, but so far, the answers given are swamped by the questions that now appear!  Which is why you haven't heard from me (yet) on the Windows MSVC2005 version of bitcoind.  I have a "debug" version of bitcoind 0.8.6 that "appears to" run correctly.  And yes, Claire123 has a MSVC2012 version of bitcoind (& bitcoin-qt), but do our versions work correctly?  Do we have 'release' versions?  I am hoping to "GitHub" commit-pull request my MSVC "additions" to the bitcoind sources soon, but only when I feel that the code runs reliably. 
...
Ron

Hello all,

Well I do now! Grin  See https://github.com/bc4-old-c-coder/bitcoin/commit/f0d221e56a12947b67b9c8f43cc5832b665052c8

I feel pretty confident in it.  Release & debug modes, links with OpenSSL1.0.1g, and so on...
Here it is running at startup


Ron


LTC: LUYiMVsrFQewUSPDasSKGzhyTPAkiTeSov BTC: 1DPvP6WoZzaNQ9Nxzd64hjYad1kyQzTTbx YAC: Y3ZggXDvnRJaRwtVGyGJwt6DMLN3EPQpQf 
The day is coming when a single carrot, freshly observed, will set off a revolution.  Paul Cezanne
Pages: « 1 2 3 4 5 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!