Pages:
Author

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

member
Activity: 107
Merit: 10
what the best version QT?
member
Activity: 107
Merit: 10
hi,
I am trying to compile the wallet, I finished to compile the wallet , but, after I finished the compiling QT wallet with QT 4.8.5-mingw and mingw-0.6(GCC-4.8.1), the app just crashed after startup immediately.
Anybody knows which QT and mingw could be compatible?? many thanks.

Perl Install , deps folder on C HDD
member
Activity: 107
Merit: 10
hi,
I am trying to compile the wallet, I finished to compile the wallet , but, after I finished the compiling QT wallet with QT 4.8.5-mingw and mingw-0.6(GCC-4.8.1), the app just crashed after startup immediately.
Anybody knows which QT and mingw could be compatible?? many thanks.
sr. member
Activity: 467
Merit: 267
Did you do the libpng step?

Download and unpack http://download.sourceforge.net/libpng/libpng-1.6.16.tar.gz inside your deps folder then configure and make:
Code:
cd /c/deps/libpng-1.6.16
configure --disable-shared
make
cp .libs/libpng16.a .libs/libpng.a
newbie
Activity: 17
Merit: 0
jr. member
Activity: 58
Merit: 10
I compiled wallet, but I get this error:

Code:
C:/deps/boost_1_59_0/stage/lib\libboost_chrono-mgw49-mt-s-1_59.a(chrono.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
...
./build\db.o:db.cpp:(.text+0x34e): undefined reference to `DbEnv::DbEnv(unsigned int)'
...
collect2.exe: error: ld returned 1 exit status

Hello Foxill1 (?)

Looks like your build environment can't find the BerkeleyDB include (&/or library) files, perhaps other things too!

So you must ponder your build machinery, autogen?  and the system it is running on (your OS setup) and try to determine where &/or who is wrong. Shocked

I would look at message #1 in this forum,
https://bitcointalksearch.org/topic/m.1587734, especially step 2.2 Wink

Ron

Thanks Smiley

one more question. How can I change the look wallet? Qt Creator does not help
Hello Foxill1?,

I presume then, that you got it to compile?

In any event, to "prettify" a standard *coin-qt.exe, try Qt Designer! Wink  And if you come up with anything that's neat, cool, etc. let us know Grin

Ron


Thanks again. Yes I compiled coin and Qt Designer also helps
sr. member
Activity: 260
Merit: 251
I compiled wallet, but I get this error:

Code:
C:/deps/boost_1_59_0/stage/lib\libboost_chrono-mgw49-mt-s-1_59.a(chrono.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
...
./build\db.o:db.cpp:(.text+0x34e): undefined reference to `DbEnv::DbEnv(unsigned int)'
...
collect2.exe: error: ld returned 1 exit status

Hello Foxill1 (?)

Looks like your build environment can't find the BerkeleyDB include (&/or library) files, perhaps other things too!

So you must ponder your build machinery, autogen?  and the system it is running on (your OS setup) and try to determine where &/or who is wrong. Shocked

I would look at message #1 in this forum,
https://bitcointalksearch.org/topic/m.1587734, especially step 2.2 Wink

Ron

Thanks Smiley

one more question. How can I change the look wallet? Qt Creator does not help
Hello Foxill1?,

I presume then, that you got it to compile?

In any event, to "prettify" a standard *coin-qt.exe, try Qt Designer! Wink  And if you come up with anything that's neat, cool, etc. let us know Grin

Ron
jr. member
Activity: 58
Merit: 10
I compiled wallet, but I get this error:

Code:
C:/deps/boost_1_59_0/stage/lib\libboost_chrono-mgw49-mt-s-1_59.a(chrono.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
...
./build\db.o:db.cpp:(.text+0x34e): undefined reference to `DbEnv::DbEnv(unsigned int)'
...
collect2.exe: error: ld returned 1 exit status

Hello Foxill1 (?)

Looks like your build environment can't find the BerkeleyDB include (&/or library) files, perhaps other things too!

So you must ponder your build machinery, autogen?  and the system it is running on (your OS setup) and try to determine where &/or who is wrong. Shocked

I would look at message #1 in this forum,
https://bitcointalksearch.org/topic/m.1587734, especially step 2.2 Wink

Ron

Thanks Smiley

one more question. How can I change the look wallet? Qt Creator does not help
sr. member
Activity: 260
Merit: 251
I compiled wallet, but I get this error:

Code:
C:/deps/boost_1_59_0/stage/lib\libboost_chrono-mgw49-mt-s-1_59.a(chrono.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
...
./build\db.o:db.cpp:(.text+0x34e): undefined reference to `DbEnv::DbEnv(unsigned int)'
...
collect2.exe: error: ld returned 1 exit status

Hello Foxill1 (?)

Looks like your build environment can't find the BerkeleyDB include (&/or library) files, perhaps other things too!

So you must ponder your build machinery, autogen?  and the system it is running on (your OS setup) and try to determine where &/or who is wrong. Shocked

I would look at message #1 in this forum,
https://bitcointalksearch.org/topic/m.1587734, especially step 2.2 Wink

Ron
jr. member
Activity: 58
Merit: 10
I compiled wallet, but I get this error:

Code:
C:/deps/boost_1_59_0/stage/lib\libboost_chrono-mgw49-mt-s-1_59.a(chrono.o): duplicate section `.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
./build\db.o:db.cpp:(.text+0x34e): undefined reference to `DbEnv::DbEnv(unsigned int)'
./build\db.o:db.cpp:(.text+0x729): undefined reference to `DbEnv::close(unsigned int)'
./build\db.o:db.cpp:(.text+0x753): undefined reference to `DbEnv::DbEnv(unsigned int)'
./build\db.o:db.cpp:(.text+0x769): undefined reference to `DbEnv::remove(char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x774): undefined reference to `DbEnv::~DbEnv()'
./build\db.o:db.cpp:(.text+0x784): undefined reference to `DbEnv::strerror(int)'
./build\db.o:db.cpp:(.text+0x7e3): undefined reference to `DbEnv::~DbEnv()'
./build\db.o:db.cpp:(.text+0x856): undefined reference to `DbEnv::~DbEnv()'
./build\db.o:db.cpp:(.text+0x8f0): undefined reference to `DbEnv::~DbEnv()'
./build\db.o:db.cpp:(.text+0xcc9): undefined reference to `DbEnv::set_lg_dir(char const*)'
./build\db.o:db.cpp:(.text+0xd1b): undefined reference to `DbEnv::set_cachesize(unsigned int, unsigned int, int)'
./build\db.o:db.cpp:(.text+0xd2c): undefined reference to `DbEnv::set_lg_bsize(unsigned int)'
./build\db.o:db.cpp:(.text+0xd3d): undefined reference to `DbEnv::set_lg_max(unsigned int)'
./build\db.o:db.cpp:(.text+0xd4e): undefined reference to `DbEnv::set_lk_max_locks(unsigned int)'
./build\db.o:db.cpp:(.text+0xd5f): undefined reference to `DbEnv::set_lk_max_objects(unsigned int)'
./build\db.o:db.cpp:(.text+0xd99): undefined reference to `DbEnv::set_errfile(_iobuf*)'
./build\db.o:db.cpp:(.text+0xdc6): undefined reference to `DbEnv::set_flags(unsigned int, int)'
./build\db.o:db.cpp:(.text+0xddf): undefined reference to `DbEnv::set_flags(unsigned int, int)'
./build\db.o:db.cpp:(.text+0xdf8): undefined reference to `DbEnv::log_set_config(unsigned int, int)'
./build\db.o:db.cpp:(.text+0xe25): undefined reference to `DbEnv::open(char const*, unsigned int, int)'
./build\db.o:db.cpp:(.text+0xfe4): undefined reference to `DbEnv::strerror(int)'
./build\db.o:db.cpp:(.text+0x15f0): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x17e3): undefined reference to `DbMpoolFile::set_flags(unsigned int, int)'
./build\db.o:db.cpp:(.text+0x1aa9): undefined reference to `DbEnv::set_cachesize(unsigned int, unsigned int, int)'
./build\db.o:db.cpp:(.text+0x1aba): undefined reference to `DbEnv::set_lg_bsize(unsigned int)'
./build\db.o:db.cpp:(.text+0x1acb): undefined reference to `DbEnv::set_lg_max(unsigned int)'
./build\db.o:db.cpp:(.text+0x1adc): undefined reference to `DbEnv::set_lk_max_locks(unsigned int)'
./build\db.o:db.cpp:(.text+0x1aed): undefined reference to `DbEnv::set_lk_max_objects(unsigned int)'
./build\db.o:db.cpp:(.text+0x1b06): undefined reference to `DbEnv::set_flags(unsigned int, int)'
./build\db.o:db.cpp:(.text+0x1b1f): undefined reference to `DbEnv::log_set_config(unsigned int, int)'
./build\db.o:db.cpp:(.text+0x1b40): undefined reference to `DbEnv::open(char const*, unsigned int, int)'
./build\db.o:db.cpp:(.text+0x1d3c): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x1d63): undefined reference to `Db::verify(char const*, char const*, std::ostream*, unsigned int)'
./build\db.o:db.cpp:(.text+0x1db7): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x1e6e): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x1f7e): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x1fa7): undefined reference to `Db::verify(char const*, char const*, std::ostream*, unsigned int)'
./build\db.o:db.cpp:(.text+0x1ff7): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x252a): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x269d): undefined reference to `DbTxn::abort()'
./build\db.o:db.cpp:(.text+0x26d5): undefined reference to `DbEnv::txn_checkpoint(unsigned int, unsigned int, unsigned int)'
./build\db.o:db.cpp:(.text+0x2864): undefined reference to `DbEnv::txn_checkpoint(unsigned int, unsigned int, unsigned int)'
./build\db.o:db.cpp:(.text+0x2885): undefined reference to `DbEnv::lsn_reset(char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x2920): undefined reference to `DbEnv::dbremove(DbTxn*, char const*, char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x2bbc): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x2d2d): undefined reference to `Dbt::Dbt()'
./build\db.o:db.cpp:(.text+0x2d35): undefined reference to `Dbt::Dbt()'
./build\db.o:db.cpp:(.text+0x2d69): undefined reference to `Dbc::get(Dbt*, Dbt*, unsigned int)'
./build\db.o:db.cpp:(.text+0x2e76): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x2e81): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x304e): undefined reference to `Dbt::Dbt(void*, unsigned int)'
./build\db.o:db.cpp:(.text+0x307b): undefined reference to `Dbt::Dbt(void*, unsigned int)'
./build\db.o:db.cpp:(.text+0x30bb): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x30c6): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x3177): undefined reference to `Dbc::close()'
./build\db.o:db.cpp:(.text+0x3286): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x32ac): undefined reference to `Db::remove(char const*, char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x32c8): undefined reference to `Db::Db(DbEnv*, unsigned int)'
./build\db.o:db.cpp:(.text+0x32f5): undefined reference to `Db::rename(char const*, char const*, char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x3306): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x3311): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x332b): undefined reference to `Dbc::close()'
./build\db.o:db.cpp:(.text+0x33b6): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x33c1): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x34e5): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x34f0): undefined reference to `Dbt::~Dbt()'
./build\db.o:db.cpp:(.text+0x3514): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x3523): undefined reference to `Db::~Db()'
./build\db.o:db.cpp:(.text+0x3896): undefined reference to `DbEnv::txn_checkpoint(unsigned int, unsigned int, unsigned int)'
./build\db.o:db.cpp:(.text+0x38d2): undefined reference to `DbEnv::lsn_reset(char const*, unsigned int)'
./build\db.o:db.cpp:(.text+0x3adf): undefined reference to `DbEnv::log_archive(char***, unsigned int)'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: ./build\db.o: bad reloc address 0x348 in section `.rdata'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
newbie
Activity: 17
Merit: 0
sr. member
Activity: 260
Merit: 251
lmao, you guys understand that bitcoin exists now and yet ...  still use mac/win?  7 years in? 

wake up peeps!  No excuse for that today. 
Hello hashman,

And I think that to ignore the market where there are an order of magnitude more desktops on the internet using (all kinds of different versions of) Windows than all the Mac, linux, unix,... machines combined is one of the reasons why bitcoin after 6 years is still ignored.  See http://netmarketshare.com/, chose Operating Systems, etc.  There are other reasons too.

Ron
legendary
Activity: 1264
Merit: 1008
lmao, you guys understand that bitcoin exists now and yet ...  still use mac/win?  7 years in? 

wake up peeps!  No excuse for that today. 
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
Ron, i never got a chance to try, just recently installed vs to use for some other projects and will likely test with btc first , if i come up with anything useful will post here.
sr. member
Activity: 260
Merit: 251
Hello all,

I have no problem compiling and running the unit tests in Windows, for bitcoin using MSVS, but I can't find any hints as to how to coerce makefile.mingw in Windows to compile test_bitcoin.exe?  I would like to run the gcc version of the unit tests to compare the results.  Especially for some *coins Wink

Ron
Hello all,

I guess either no one cares or no one knows or those that do aren't saying, but anyway....
I did it finally using gcc.  A bit of a hack but at least it's working.

Here is the usual output from the 0.8.6 sources:

Running 93 test cases...
Entering test suite "Bitcoin Test Suite"
Entering test suite "wallet_tests"
Entering test case "coin_selection_tests"
Leaving test case "coin_selection_tests"; testing time: 2046999mks
Leaving test suite "wallet_tests"
Entering test suite "util_tests"
Entering test case "util_criticalsection"
Test case util_criticalsection did not check any assertions
Leaving test case "util_criticalsection"
Entering test case "util_MedianFilter"
Leaving test case "util_MedianFilter"
Entering test case "util_ParseHex"
Leaving test case "util_ParseHex"
Entering test case "util_HexStr"
Leaving test case "util_HexStr"
Entering test case "util_DateTimeStrFormat"
Test case util_DateTimeStrFormat did not check any assertions
Leaving test case "util_DateTimeStrFormat"
Entering test case "util_ParseParameters"
Leaving test case "util_ParseParameters"
Entering test case "util_GetArg"
Leaving test case "util_GetArg"
Entering test case "util_WildcardMatch"
Leaving test case "util_WildcardMatch"
Entering test case "util_FormatMoney"
Leaving test case "util_FormatMoney"
Entering test case "util_ParseMoney"
Leaving test case "util_ParseMoney"
Entering test case "util_IsHex"
Leaving test case "util_IsHex"
Entering test case "util_seed_insecure_rand"
Leaving test case "util_seed_insecure_rand"
Entering test case "util_TimingResistantEqual"
Leaving test case "util_TimingResistantEqual"
Leaving test suite "util_tests"
Entering test suite "uint256_tests"
Entering test case "uint256_equality"
Leaving test case "uint256_equality"
Leaving test suite "uint256_tests"
Entering test suite "uint160_tests"
Entering test case "uint160_equality"
Leaving test case "uint160_equality"
Leaving test suite "uint160_tests"
Entering test suite "transaction_tests"
Entering test case "tx_valid"
Leaving test case "tx_valid"; testing time: 47ms
Entering test case "tx_invalid"
Leaving test case "tx_invalid"; testing time: 31ms
Entering test case "basic_transaction_tests"
Leaving test case "basic_transaction_tests"
Entering test case "test_Get"
Leaving test case "test_Get"
Entering test case "test_IsStandard"
Leaving test case "test_IsStandard"; testing time: 15999mks
Leaving test suite "transaction_tests"
Entering test suite "sigopcount_tests"
Entering test case "GetSigOpCount"
Leaving test case "GetSigOpCount"
Leaving test suite "sigopcount_tests"
Entering test suite "serialize_tests"
Entering test case "varints"
Leaving test case "varints"; testing time: 812ms
Leaving test suite "serialize_tests"
Entering test suite "script_tests"
Entering test case "script_valid"
Leaving test case "script_valid"; testing time: 62999mks
Entering test case "script_invalid"
Leaving test case "script_invalid"; testing time: 156ms
Entering test case "script_PushData"
Leaving test case "script_PushData"
Entering test case "script_CHECKMULTISIG12"
Leaving test case "script_CHECKMULTISIG12"; testing time: 31ms
Entering test case "script_CHECKMULTISIG23"
Leaving test case "script_CHECKMULTISIG23"; testing time: 94ms
Entering test case "script_combineSigs"
Leaving test case "script_combineSigs"; testing time: 109ms
Leaving test suite "script_tests"
Entering test suite "script_P2SH_tests"
Entering test case "sign"
Leaving test case "sign"; testing time: 79ms
Entering test case "norecurse"
Leaving test case "norecurse"
Entering test case "set"
Leaving test case "set"; testing time: 62ms
Entering test case "is"
Leaving test case "is"
Entering test case "switchover"
Leaving test case "switchover"
Entering test case "AreInputsStandard"
Leaving test case "AreInputsStandard"; testing time: 47ms
Leaving test suite "script_P2SH_tests"
Entering test suite "rpc_tests"
Entering test case "rpc_addmultisig"
Leaving test case "rpc_addmultisig"; testing time: 15999mks
Entering test case "rpc_rawparams"
Leaving test case "rpc_rawparams"
Entering test case "rpc_rawsign"
Leaving test case "rpc_rawsign"; testing time: 15ms
Leaving test suite "rpc_tests"
Entering test suite "pmt_tests"
Entering test case "pmt_test1"
Leaving test case "pmt_test1"; testing time: 781ms
Leaving test suite "pmt_tests"
Entering test suite "netbase_tests"
Entering test case "netbase_networks"
test/netbase_tests.cpp(17): error in "netbase_networks": check CNetAddr("2001::8888").GetNetwork() == NET_IPV6 failed
test/netbase_tests.cpp(18): error in "netbase_networks": check CNetAddr("FD87:D87E:EB43:edb1:8e4:3588:e546:35ca").GetNetwork() == NET_TOR failed
Leaving test case "netbase_networks"
Entering test case "netbase_properties"
test/netbase_tests.cpp(24): error in "netbase_properties": check CNetAddr("::FFFF:192.168.1.1").IsIPv4() failed
test/netbase_tests.cpp(29): error in "netbase_properties": check CNetAddr("2001:0DB8::").IsRFC3849() failed
test/netbase_tests.cpp(31): error in "netbase_properties": check CNetAddr("2002::1").IsRFC3964() failed
test/netbase_tests.cpp(32): error in "netbase_properties": check CNetAddr("FC00::").IsRFC4193() failed
test/netbase_tests.cpp(33): error in "netbase_properties": check CNetAddr("2001::2").IsRFC4380() failed
test/netbase_tests.cpp(34): error in "netbase_properties": check CNetAddr("2001:10::").IsRFC4843() failed
test/netbase_tests.cpp(35): error in "netbase_properties": check CNetAddr("FE80::").IsRFC4862() failed
test/netbase_tests.cpp(36): error in "netbase_properties": check CNetAddr("64:FF9B::").IsRFC6052() failed
test/netbase_tests.cpp(37): error in "netbase_properties": check CNetAddr("FD87:D87E:EB43:edb1:8e4:3588:e546:35ca").IsTor() failed
test/netbase_tests.cpp(39): error in "netbase_properties": check CNetAddr("::1").IsLocal() failed
test/netbase_tests.cpp(41): error in "netbase_properties": check CNetAddr("2001::1").IsRoutable() failed
Leaving test case "netbase_properties"
Entering test case "netbase_splithost"
Leaving test case "netbase_splithost"
Entering test case "netbase_lookupnumeric"
test/netbase_tests.cpp(84): error in "netbase_lookupnumeric": check TestParse("::ffff:127.0.0.1", "127.0.0.1:65535") failed
test/netbase_tests.cpp(85): error in "netbase_lookupnumeric": check TestParse("::", "[::]:65535") failed
test/netbase_tests.cpp(86): error in "netbase_lookupnumeric": check TestParse("[::]:8333", "[::]:8333") failed
Leaving test case "netbase_lookupnumeric"; testing time: 15999mks
Entering test case "onioncat_test"
test/netbase_tests.cpp(96): error in "onioncat_test": check addr1 == addr2 failed
Leaving test case "onioncat_test"
Leaving test suite "netbase_tests"
Entering test suite "multisig_tests"
Entering test case "multisig_verify"
Leaving test case "multisig_verify"; testing time: 266ms
Entering test case "multisig_IsStandard"
Leaving test case "multisig_IsStandard"
Entering test case "multisig_Solver1"
Leaving test case "multisig_Solver1"; testing time: 15ms
Entering test case "multisig_Sign"
Leaving test case "multisig_Sign"; testing time: 47ms
Leaving test suite "multisig_tests"
Entering test suite "mruset_tests"
Entering test case "mruset_like_set"
Leaving test case "mruset_like_set"; testing time: 15999mks
Entering test case "mruset_limited_size"
Leaving test case "mruset_limited_size"; testing time: 31ms
Entering test case "mruset_window"
Leaving test case "mruset_window"; testing time: 47ms
Leaving test suite "mruset_tests"
Entering test suite "miner_tests"
Entering test case "CreateNewBlock_validity"
Leaving test case "CreateNewBlock_validity"; testing time: 1391ms
Entering test case "sha256transform_equality"
2df5e1c65ef9f8cde240d23cae2ec036d31a15ec64bc68f64be242b1da6631f3
Leaving test case "sha256transform_equality"
Leaving test suite "miner_tests"
Entering test suite "key_tests"
Entering test case "key_test1"
Leaving test case "key_test1"; testing time: 1765ms
Leaving test suite "key_tests"
Entering test suite "getarg_tests"
Entering test case "boolarg"
Leaving test case "boolarg"
Entering test case "stringarg"
Leaving test case "stringarg"
Entering test case "intarg"
Leaving test case "intarg"
Entering test case "doubledash"
Leaving test case "doubledash"
Entering test case "boolargno"
Leaving test case "boolargno"
Leaving test suite "getarg_tests"
Entering test suite "DoS_tests"
Entering test case "DoS_banning"
Leaving test case "DoS_banning"; testing time: 62999mks
Entering test case "DoS_banscore"
Leaving test case "DoS_banscore"
Entering test case "DoS_bantime"
Leaving test case "DoS_bantime"
Entering test case "DoS_checknbits"
Leaving test case "DoS_checknbits"
Entering test case "DoS_mapOrphans"
Leaving test case "DoS_mapOrphans"; testing time: 906ms
Entering test case "DoS_checkSig"
Leaving test case "DoS_checkSig"; testing time: 2203ms
Leaving test suite "DoS_tests"
Entering test suite "compress_tests"
Entering test case "compress_amounts"
Leaving test case "compress_amounts"; testing time: 4219ms
Leaving test suite "compress_tests"
Entering test suite "Checkpoints_tests"
Entering test case "sanity"
Leaving test case "sanity"
Leaving test suite "Checkpoints_tests"
Entering test suite "CheckBlock_tests"
Entering test case "May15"
Test case May15 did not check any assertions
Leaving test case "May15"
Leaving test suite "CheckBlock_tests"
Entering test suite "canonical_tests"
Entering test case "script_canon"
Leaving test case "script_canon"; testing time: 15ms
Entering test case "script_noncanon"
Leaving test case "script_noncanon"; testing time: 15999mks
Leaving test suite "canonical_tests"
Entering test suite "bloom_tests"
Entering test case "bloom_create_insert_serialize"
Leaving test case "bloom_create_insert_serialize"
Entering test case "bloom_create_insert_serialize_with_tweak"
Leaving test case "bloom_create_insert_serialize_with_tweak"
Entering test case "bloom_create_insert_key"
Leaving test case "bloom_create_insert_key"
Entering test case "bloom_match"
Leaving test case "bloom_match"
Entering test case "merkle_block_1"
Leaving test case "merkle_block_1"
Entering test case "merkle_block_2"
Leaving test case "merkle_block_2"
Entering test case "merkle_block_2_with_update_none"
Leaving test case "merkle_block_2_with_update_none"
Entering test case "merkle_block_3_and_serialize"
Leaving test case "merkle_block_3_and_serialize"
Entering test case "merkle_block_4"
Leaving test case "merkle_block_4"
Entering test case "merkle_block_4_test_p2pubkey_only"
Leaving test case "merkle_block_4_test_p2pubkey_only"
Entering test case "merkle_block_4_test_update_none"
Leaving test case "merkle_block_4_test_update_none"
Leaving test suite "bloom_tests"
Entering test suite "bignum_tests"
Entering test case "bignum_setint64"
Leaving test case "bignum_setint64"
Entering test case "bignum_SetCompact"
Leaving test case "bignum_SetCompact"
Leaving test suite "bignum_tests"
Entering test suite "base64_tests"
Entering test case "base64_testvectors"
Leaving test case "base64_testvectors"
Leaving test suite "base64_tests"
Entering test suite "base58_tests"
Entering test case "base58_EncodeBase58"
Leaving test case "base58_EncodeBase58"
Entering test case "base58_DecodeBase58"
Leaving test case "base58_DecodeBase58"
Entering test case "base58_keys_valid_parse"
Leaving test case "base58_keys_valid_parse"; testing time: 15ms
Entering test case "base58_keys_valid_gen"
Leaving test case "base58_keys_valid_gen"
Entering test case "base58_keys_invalid"
Leaving test case "base58_keys_invalid"; testing time: 31999mks
Leaving test suite "base58_tests"
Entering test suite "base32_tests"
Entering test case "base32_testvectors"
Leaving test case "base32_testvectors"
Leaving test suite "base32_tests"
Entering test suite "allocator_tests"
Entering test case "test_LockedPageManagerBase"
Leaving test case "test_LockedPageManagerBase"
Leaving test suite "allocator_tests"
Entering test suite "Alert_tests"
Entering test case "AlertApplies"
Leaving test case "AlertApplies"; testing time: 15ms
Leaving test suite "Alert_tests"
Entering test suite "accounting_tests"
Entering test case "acc_orderupgrade"
Leaving test case "acc_orderupgrade"; testing time: 31ms
Leaving test suite "accounting_tests"
Leaving test suite "Bitcoin Test Suite"


Ron
sr. member
Activity: 260
Merit: 251
Hello all,

I have no problem compiling and running the unit tests in Windows, for bitcoin using MSVS, but I can't find any hints as to how to coerce makefile.mingw in Windows to compile test_bitcoin.exe?  I would like to run the gcc version of the unit tests to compare the results.  Especially for some *coins Wink

Ron
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
When you built qrencode did you get any errors ?

You could try make clean & rebuilding it or delete qrencode folder & just rebuild it.

I did not bother to check if you were using btc source known to be compatable with these build directions.

I suggest also on the win 7 vm in control panel go to user accounts , change user account settings, pull all the way down to never notify.... to allow easier / seamless building of the toolchain. This has been known to cause issues for some people.
hero member
Activity: 597
Merit: 500
newbie
Activity: 17
Merit: 0
Hi, I'm new here Wink I am following this tutorial but I receive errors while making qrencode-3.4.4 (step 2.6)
I'm using Windows 7 x86 on Oracle VM Virtualbox. Can somebody help? Please! Smiley

Code:
checking whether the C compiler works...no
configure: error: in '/c/deps/qrencode-3.4.4':
configure: error: C compiler cannot create executables
See 'config.log' for more details

This is the content of config.log file

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by QRencode configure 3.4.4, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --enable-static --disable-shared --without-tools

## --------- ##
## Platform. ##
## --------- ##

hostname = PC
uname -m = i686
uname -r = 1.0.18(0.48/3/2)
uname -s = MINGW32_NT-6.1
uname -v = 2012-11-21 22:34

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/mingw32/bin
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2237: checking build system type
configure:2251: result: i686-pc-mingw32
configure:2271: checking host system type
configure:2284: result: i686-pc-mingw32
configure:2304: checking target system type
configure:2317: result: i686-pc-mingw32
configure:2360: checking for a BSD-compatible install
configure:2428: result: /bin/install -c
configure:2439: checking whether build environment is sane
configure:2494: result: yes
configure:2645: checking for a thread-safe mkdir -p
configure:2684: result: /bin/mkdir -p
configure:2691: checking for gawk
configure:2707: found /bin/gawk
configure:2718: result: gawk
configure:2729: checking whether make sets $(MAKE)
configure:2751: result: yes
configure:2780: checking whether make supports nested variables
configure:2797: result: yes
configure:2966: checking for style of include used by make
configure:2994: result: GNU
configure:3065: checking for gcc
configure:3081: found /bin/gcc
configure:3092: result: gcc
configure:3321: checking for C compiler version
configure:3330: gcc --version >&5
gcc (GCC) 3.4.4 (msys special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3341: $? = 0
configure:3330: gcc -v >&5
Reading specs from /usr/lib/gcc/i686-pc-msys/3.4.4/specs
Configured with: /home/cstrauss/build/gcc3/gcc-3.4.4/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=/share/info --mandir=/share/man --libexecdir=/lib --enable-languages=c,c++ --disable-nls --enable-threads=posix --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug --with-newlib
Thread model: posix
gcc version 3.4.4 (msys special)
configure:3341: $? = 0
configure:3330: gcc -V >&5
gcc: `-V' option must have argument
configure:3341: $? = 1
configure:3330: gcc -qversion >&5
gcc: unrecognized option `-qversion'
gcc: no input files
configure:3341: $? = 1
configure:3361: checking whether the C compiler works
configure:3383: gcc    conftest.c ../libpng-1.6.16/.libs/libpng.a ../../mingw32/i686-w64-mingw32/lib/libz.a >&5
gcc: ../libpng-1.6.16/.libs/libpng.a: No such file or directory
configure:3387: $? = 1
configure:3425: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QRencode"
| #define PACKAGE_TARNAME "qrencode"
| #define PACKAGE_VERSION "3.4.4"
| #define PACKAGE_STRING "QRencode 3.4.4"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MAJOR_VERSION 3
| #define MINOR_VERSION 4
| #define MICRO_VERSION 4
| #define PACKAGE "qrencode"
| #define VERSION "3.4.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3430: error: in `/c/deps/qrencode-3.4.4':
configure:3432: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-mingw32
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value='../libpng-1.6.16/.libs/libpng.a ../../mingw32/i686-w64-mingw32/lib/libz.a'
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_png_CFLAGS_set=set
ac_cv_env_png_CFLAGS_value=-I../libpng-1.6.16
ac_cv_env_png_LIBS_set=set
ac_cv_env_png_LIBS_value=-L../libpng-1.6.16/.libs
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-mingw32
ac_cv_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-mingw32
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /c/deps/qrencode-3.4.4/use/missing aclocal-1.14'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /c/deps/qrencode-3.4.4/use/missing autoconf'
AUTOHEADER='${SHELL} /c/deps/qrencode-3.4.4/use/missing autoheader'
AUTOMAKE='${SHELL} /c/deps/qrencode-3.4.4/use/missing automake-1.14'
AWK='gawk'
BUILD_TESTS_FALSE=''
BUILD_TESTS_TRUE=''
BUILD_TOOLS_FALSE=''
BUILD_TOOLS_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HAVE_LIBPTHREAD_FALSE=''
HAVE_LIBPTHREAD_TRUE=''
HAVE_SDL_FALSE=''
HAVE_SDL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBICONV=''
LIBOBJS=''
LIBPTHREAD=''
LIBS='../libpng-1.6.16/.libs/libpng.a ../../mingw32/i686-w64-mingw32/lib/libz.a'
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBOBJS=''
MAJOR_VERSION='3'
MAKEINFO='${SHELL} /c/deps/qrencode-3.4.4/use/missing makeinfo'
MANIFEST_TOOL=''
MICRO_VERSION='4'
MINOR_VERSION='4'
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='qrencode'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='QRencode'
PACKAGE_STRING='QRencode 3.4.4'
PACKAGE_TARNAME='qrencode'
PACKAGE_URL=''
PACKAGE_VERSION='3.4.4'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SDL_CFLAGS=''
SDL_CONFIG=''
SDL_LIBS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='3.4.4'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-mingw32'
host_alias=''
host_cpu='i686'
host_os='mingw32'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /c/deps/qrencode-3.4.4/use/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
png_CFLAGS='-I../libpng-1.6.16'
png_LIBS='-L../libpng-1.6.16/.libs'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-mingw32'
target_alias=''
target_cpu='i686'
target_os='mingw32'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "QRencode"
#define PACKAGE_TARNAME "qrencode"
#define PACKAGE_VERSION "3.4.4"
#define PACKAGE_STRING "QRencode 3.4.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define MAJOR_VERSION 3
#define MINOR_VERSION 4
#define MICRO_VERSION 4
#define PACKAGE "qrencode"
#define VERSION "3.4.4"

configure: exit 77
legendary
Activity: 1148
Merit: 1018
It's about time -- All merrit accepted !!!
personally on win & linux i have always had best results building from command prompt not using qt creator (i do get better results using qt creator building on osx)
Pages:
Jump to: