Pages:
Author

Topic: Why can't I compile the bitcoin source code? - page 5. (Read 895 times)

legendary
Activity: 1512
Merit: 7340
Farewell, Leo


Sorry for the double post but I think that I'm unluckier than I thought... I tried to do it with the linux way. I installed ubuntu on my windows 10. Why do I get this error on installng g++mingw-w64-x86-64 ?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Admit that I'm unlucky please...  Cheesy Tongue
What do I have to do now? Is there any other way to compile it with visual studio 2017/2019?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
And what error(s) or info is shown in "C:\Users\LE\Pictures\vcpkg-master\buildtrees\bzip2\msys-pacman-x86-windows-err.log"? Huh

Anything useful that might give a clue as to why the bash.exe command failed? Huh

msys-pacman-x86-windows-err.log returns me this:
Code:
error: mingw32: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: mingw64: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
error: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" could not be looked up remotely
error: database 'mingw32' is not valid (invalid or corrupted database (PGP signature))
error: database 'mingw64' is not valid (invalid or corrupted database (PGP signature))
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))
HCP
legendary
Activity: 2086
Merit: 4318
And what error(s) or info is shown in "C:\Users\LE\Pictures\vcpkg-master\buildtrees\bzip2\msys-pacman-x86-windows-err.log"? Huh

Anything useful that might give a clue as to why the bash.exe command failed? Huh
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Ahh... What's wrong with me... I try to install the dependencies and I get the following error on installing boost-filesystem:

legendary
Activity: 3374
Merit: 3095
BTC price road to $80k
I put the bitcoin.sln to VS and then I click build. Simple as that.

Did you follow the step on GitHub from the top to the end?

It seems you have same problem with the same issue from the Bitcoin Github page and until now he does not solve his issue.
You can check it from here https://github.com/bitcoin/bitcoin/issues/17864

Then try to do some solution given from other users there who succeed in compiling it with Visual Studio.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
It looks like generic error message where you set the path for the source code incorrectly, but i might be wrong since i never compile Bitcoin Core from Windows.

P.S. it might be good idea to mention what command or parameter do you use to compile Bitcoin Core

I put the bitcoin.sln to VS and then I click build. Simple as that.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I just installed visual studio 2019 with v142. This is what it returns when I try to build it:

Code:
1>------ Build started: Project: libbitcoinconsensus, Configuration: Debug Win32 ------
2>------ Build started: Project: libunivalue, Configuration: Debug Win32 ------
3>------ Build started: Project: libsecp256k1, Configuration: Debug Win32 ------
4>------ Build started: Project: libleveldb, Configuration: Debug Win32 ------
2>univalue.cpp
2>univalue_get.cpp
2>univalue_read.cpp
2>univalue_write.cpp
2>Generating Code...
2>libunivalue.vcxproj -> C:\Users\LE\Pictures\coin\build_msvc\Win32\Debug\libunivalue\libunivalue.lib
3>secp256k1.c
3>C:\Users\LE\Pictures\coin\src\secp256k1\src\util.h(11,10): fatal error C1083: Cannot open include file: 'libsecp256k1-config.h': No such file or directory
3>Done building project "libsecp256k1.vcxproj" -- FAILED.
5>------ Build started: Project: libbitcoin_qt, Configuration: Debug Win32 ------
6>------ Build started: Project: bitcoin-cli, Configuration: Debug Win32 ------
4>builder.cc
4>c.cc
4>dbformat.cc
4>db_impl.cc
1>arith_uint256.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>merkle.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>tx_check.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>aes.cpp
1>chacha20.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>hmac_sha256.cpp
1>hmac_sha512.cpp
1>ripemd160.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>sha1.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>sha256.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>sha256_sse4.cpp
1>sha512.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>hash.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>block.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>transaction.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>pubkey.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>bitcoinconsensus.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>interpreter.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>script.cpp
1>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
1>script_error.cpp
1>Generating Code...
1>Compiling...
1>uint256.cpp
1>strencodings.cpp
1>Generating Code...
1>Done building project "libbitcoinconsensus.vcxproj" -- FAILED.
7>------ Build started: Project: testconsensus, Configuration: Debug Win32 ------
5>Performing libbitcoin_qt moc code include generation task, output path .\QtGeneratedFiles\qt.
7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
5>C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\bitcoinamountfield.cpp" -o .\QtGeneratedFiles\qt\bitcoinamountfield.moc.
5>C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\intro.cpp" -o .\QtGeneratedFiles\qt\intro.moc.
5>C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\overviewpage.cpp" -o .\QtGeneratedFiles\qt\overviewpage.moc.
4>db_iter.cc
5>C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\rpcconsole.cpp" -o .\QtGeneratedFiles\qt\rpcconsole.moc.
5>The system cannot find the path specified.
5>C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj(168,5): error MSB3073: The command "C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\bitcoinamountfield.cpp" -o .\QtGeneratedFiles\qt\bitcoinamountfield.moc" exited with code 3.
5>Done building project "libbitcoin_qt.vcxproj" -- FAILED.
8>------ Build started: Project: bitcoin-tx, Configuration: Debug Win32 ------
6>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
6>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
6>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
6>bitcoin-cli.cpp
6>C:\Users\LE\Pictures\coin\src\bitcoin-cli.cpp(7,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
6>Done building project "bitcoin-cli.vcxproj" -- FAILED.
7>testconsensus.cpp
7>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
7>Done building project "testconsensus.vcxproj" -- FAILED.
4>dumpfile.cc
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
4>filename.cc
4>log_reader.cc
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
8>bitcoin-tx.cpp
8>C:\Users\LE\Pictures\coin\src\bitcoin-tx.cpp(6,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
8>Done building project "bitcoin-tx.vcxproj" -- FAILED.
4>log_writer.cc
4>memtable.cc
4>repair.cc
4>table_cache.cc
4>version_edit.cc
4>version_set.cc
4>write_batch.cc
4>memenv.cc
4>block.cc
4>block_builder.cc
4>filter_block.cc
4>format.cc
4>Generating Code...
4>Compiling...
4>iterator.cc
4>merger.cc
4>table.cc
4>table_builder.cc
4>two_level_iterator.cc
4>arena.cc
4>bloom.cc
4>cache.cc
4>coding.cc
4>comparator.cc
4>crc32c.cc
4>env.cc
4>env_windows.cc
4>filter_policy.cc
4>hash.cc
4>histogram.cc
4>logging.cc
4>options.cc
4>status.cc
4>Generating Code...
4>libleveldb.vcxproj -> C:\Users\LE\Pictures\coin\build_msvc\Win32\Debug\libleveldb\libleveldb.lib
9>------ Build started: Project: bitcoind, Configuration: Debug Win32 ------
10>------ Build started: Project: test_bitcoin, Configuration: Debug Win32 ------
11>------ Build started: Project: bitcoin-wallet, Configuration: Debug Win32 ------
12>------ Build started: Project: bitcoin-qt, Configuration: Debug Win32 ------
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libtest_util\libtest_util.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
11>bitcoin-wallet.cpp
9>bitcoind.cpp
11>C:\Users\LE\Pictures\coin\src\bitcoin-wallet.cpp(6,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
9>C:\Users\LE\Pictures\coin\src\bitcoind.cpp(7,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
12>main.cpp
12>C:\Users\LE\Pictures\coin\src\qt\bitcoin.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
11>Done building project "bitcoin-wallet.vcxproj" -- FAILED.
9>Done building project "bitcoind.vcxproj" -- FAILED.
13>------ Build started: Project: test_bitcoin-qt, Configuration: Debug Win32 ------
12>Done building project "bitcoin-qt.vcxproj" -- FAILED.
13>Performing test_bitcoin-qt moc generation task, output path .\QtGeneratedFiles\qt\moc.
10>addrman_tests.cpp
13>The system cannot find the path specified.
13>C:\Users\LE\Pictures\coin\build_msvc\test_bitcoin-qt\test_bitcoin-qt.vcxproj(103,5): error MSB3073: The command "C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\test\addressbooktests.h" -o .\QtGeneratedFiles\qt\moc\moc_addressbooktests.cpp" exited with code 3.
13>Done building project "test_bitcoin-qt.vcxproj" -- FAILED.
10>C:\Users\LE\Pictures\coin\src\clientversion.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>allocator_tests.cpp
10>C:\Users\LE\Pictures\coin\src\util\system.h(14,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>amount_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>arith_uint256_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\arith_uint256_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>base32_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>base58_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>base64_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>bech32_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>bip32_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\bip32_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>blockchain_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\blockchain_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>blockencodings_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>blockfilter_index_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>blockfilter_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>bloom_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>bswap_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\byteswap.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>checkqueue_tests.cpp
10>C:\Users\LE\Pictures\coin\src\util\system.h(14,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>coins_tests.cpp
10>C:\Users\LE\Pictures\coin\src\clientversion.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>compilerbug_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>compress_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>crypto_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>Generating Code...
10>Compiling...
10>cuckoocache_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\cuckoocache_tests.cpp(4,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>dbwrapper_tests.cpp
10>C:\Users\LE\Pictures\coin\src\clientversion.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>denialofservice_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>descriptor_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>flatfile_tests.cpp
10>C:\Users\LE\Pictures\coin\src\clientversion.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>fs_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>getarg_tests.cpp
10>C:\Users\LE\Pictures\coin\src\util\system.h(14,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>hash_tests.cpp
10>C:\Users\LE\Pictures\coin\src\clientversion.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>key_io_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>key_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>limitedmap_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>logging_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>main.cpp
10>C:\Users\LE\Pictures\coin\src\test\main.cpp(10,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>mempool_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>merkleblock_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>merkle_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>miner_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>multisig_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>netbase_tests.cpp
10>C:\Users\LE\Pictures\coin\src\netbase.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>net_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>Generating Code...
10>Compiling...
10>pmt_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>policyestimator_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>pow_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>prevector_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>raii_event_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\raii_event_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'event2/event.h': No such file or directory
10>random_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>reverselock_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>rpc_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>sanity_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>scheduler_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>scriptnum_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>script_p2sh_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>script_standard_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>script_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>serialize_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>settings_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>sighash_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>sigopcount_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>skiplist_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>streams_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>Generating Code...
10>Compiling...
10>sync_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>timedata_tests.cpp
10>C:\Users\LE\Pictures\coin\src\netaddress.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>torcontrol_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>transaction_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>txindex_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>txvalidationcache_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>txvalidation_tests.cpp
10>C:\Users\LE\Pictures\coin\src\validation.h(10,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>uint256_tests.cpp
10>C:\Users\LE\Pictures\coin\src\compat\endian.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>blockfilter.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>logging.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>mining.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>net.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>setup_common.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>str.cpp
10>transaction_utils.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>wallet.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>util_tests.cpp
10>C:\Users\LE\Pictures\coin\src\util\system.h(14,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>util_threadnames_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>validationinterface_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\validationinterface_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>validation_block_tests.cpp
10>C:\Users\LE\Pictures\coin\src\test\validation_block_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>Generating Code...
10>Compiling...
10>validation_flush_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>validation_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>versionbits_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>coinselector_tests.cpp
10>C:\Users\LE\Pictures\coin\src\optional.h(10,10): fatal error C1083: Cannot open include file: 'boost/optional.hpp': No such file or directory
10>db_tests.cpp
10>C:\Users\LE\Pictures\coin\src\wallet\test\db_tests.cpp(7,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>init_tests.cpp
10>C:\Users\LE\Pictures\coin\src\wallet\test\init_tests.cpp(5,10): fatal error C1083: Cannot open include file: 'boost/test/unit_test.hpp': No such file or directory
10>init_test_fixture.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>ismine_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>psbt_wallet_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>scriptpubkeyman_tests.cpp
10>C:\Users\LE\Pictures\coin\src\crypto\common.h(9,10): fatal error C1083: Cannot open include file: 'config/bitcoin-config.h': No such file or directory
10>wallet_crypto_tests.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>wallet_tests.cpp
10>C:\Users\LE\Pictures\coin\src\optional.h(10,10): fatal error C1083: Cannot open include file: 'boost/optional.hpp': No such file or directory
10>wallet_test_fixture.cpp
10>C:\Users\LE\Pictures\coin\src\fs.h(14,10): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory
10>Generating Code...
10>Done building project "test_bitcoin.vcxproj" -- FAILED.
========== Build: 2 succeeded, 11 failed, 0 up-to-date, 0 skipped ==========

What do I do wrong again? Have I forgotten something?
legendary
Activity: 2170
Merit: 1789
You don't have the required build tools. v142 is included in Visual Studio 2019. So either upgrade your Visual Studio or edit the Platform Toolset settings. CMIIW.

See:
https://stackoverflow.com/questions/56901371/how-to-install-v142-build-tools-in-visual-studio
https://developercommunity.visualstudio.com/content/problem/591541/missing-v142-toolset-vs2019-installed.html
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I'm trying to build the source code in windows 10 with visual studio 2017 but I'm so confused! I've made my searches here on this forum but nothing, only linux answers. They say that everything is written here: https://github.com/bitcoin/bitcoin/blob/master/build_msvc/README.md but I don't get it. It tells me that I have to download libraries, how exactly?? Because I can't find the instructions in build-windows.md

Also, do I have to do one of these or all of them?


When I try to compile in visual studio I get these errors:
Code:
C:\Users\LE\Pictures\coin\build_msvc\libbitcoinconsensus\libbitcoinconsensus.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\testconsensus\testconsensus.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\bitcoind\bitcoind.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_util\libbitcoin_util.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_util\libbitcoin_util.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_common\libbitcoin_common.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_common\libbitcoin_common.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_crypto\libbitcoin_crypto.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_crypto\libbitcoin_crypto.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_server\libbitcoin_server.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_server\libbitcoin_server.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libunivalue\libunivalue.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_wallet\libbitcoin_wallet.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_wallet\libbitcoin_wallet.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_zmq\libbitcoin_zmq.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_zmq\libbitcoin_zmq.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\test_bitcoin\test_bitcoin.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_cli\libbitcoin_cli.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_cli\libbitcoin_cli.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\bitcoin-cli\bitcoin-cli.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\bench_bitcoin\bench_bitcoin.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\bench_bitcoin\bench_bitcoin.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\bitcoin-tx\bitcoin-tx.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\bitcoin-wallet\bitcoin-wallet.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\libsecp256k1\libsecp256k1.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libleveldb\libleveldb.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\bitcoin-qt\bitcoin-qt.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

C:\Users\LE\Pictures\coin\build_msvc\libtest_util\libtest_util.vcxproj : error  : Project "C:\Users\LE\Pictures\coin\build_msvc\libtest_util\libtest_util.vcxproj" could not be found.

C:\Users\LE\Pictures\coin\build_msvc\test_bitcoin-qt\test_bitcoin-qt.vcxproj : warning  : The build tools for v142 cannot be found. Install v142 to build using the v142 build tools.

Pages:
Jump to: