Author

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

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
August 22, 2020, 08:51:36 AM
#94
**Update**

Okay so I left v0.16.0 and focused on v0.20.0.
I successfully build v0.20.0 using this guide, the problem is that I don't know if I have successfully created a new blockchain. When write getblockcount I get 0. Although it still shows me that I'm connecting to peers. Before I compile I had removed every single line starting with vSeeds.emplace_back so I don't make sense. I also had changed ports. (8333->6333, 18333->16333)
--snip--

At very least, changing port won't let you connect to different blockchain/network. You can change the port and connect to Bitcoin network without any problem, especially since there are few ISP that used to block port 8333.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Although it still shows me that I'm connecting to peers. Before I compile I had removed every single line starting with vSeeds.emplace_back so I don't make sense. I also had changed ports. (8333->6333, 18333->16333)
Your node probably connected to that IP by itself. The IP in a hardcoded set of nodes within the client itself[1].


[1] https://github.com/bitcoin/bitcoin/blob/adac12ae73e896e405e75b02a0a49c575d115b6e/contrib/seeds/nodes_main.txt#L34

So should I make that txt empty and then compile again?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Although it still shows me that I'm connecting to peers. Before I compile I had removed every single line starting with vSeeds.emplace_back so I don't make sense. I also had changed ports. (8333->6333, 18333->16333)
Your node probably connected to that IP by itself. The IP in a hardcoded set of nodes within the client itself[1].


[1] https://github.com/bitcoin/bitcoin/blob/adac12ae73e896e405e75b02a0a49c575d115b6e/contrib/seeds/nodes_main.txt#L34
HCP
legendary
Activity: 2086
Merit: 4318
Question. Are, the compiled files of bitcoin core on my ubuntu, also usable on a windows system too? If not, is it possible to compile the source files from ubuntu and create the executables for windows?
No, the binaries are not cross-platform... Linux and Windows executables are fundamentally different. So you cannot simply copy the "bitcoin-qt" to windows and rename it "bitcoin-qt.exe".

Instead, you would need to follow the "build-windows.md" guide to cross-compile the Windows binaries using your Linux setup... this will build the Windows compatible ".exe" versions.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
**Update**

Okay so I left v0.16.0 and focused on v0.20.0.
I successfully build v0.20.0 using this guide, the problem is that I don't know if I have successfully created a new blockchain. When write getblockcount I get 0. Although it still shows me that I'm connecting to peers. Before I compile I had removed every single line starting with vSeeds.emplace_back so I don't make sense. I also had changed ports. (8333->6333, 18333->16333)







^ I shouldn't get that peer.

I think I will continue my issues about the altcoin creation on that guide, but if you have anything to say I would really want to know. If I have make a mistake, if I haven't make something important. It would be really helpful. Note that I did not create a genesis block, I left satoshi's genesis block as default since I don't care about the first block. Thus I skipped the entire 12th part of the guide.

Question. Are, the compiled files of bitcoin core on my ubuntu, also usable on a windows system too? If not, is it possible to compile the source files from ubuntu and create the executables for windows?
legendary
Activity: 1624
Merit: 2481
How can I get rid of every single installation I have made with bitcoin core on ubuntu? On windows I could simply go on %AppData% and remove the "Bitcoin".

You can not get rid of your installation by just deleting files in the AppData folder.
Removing everything from an installation is way harder to achieve on windows than on linux.


But.. how did we go to "Compiling and finding the executable works" to "Nothing is here" ?
You had it compiled already, what did you do in the meantime?



No... bitcoind is the Bitcoin Core daemon... basically the "server" component that runs in the background. I asked because I wanted to know if the rest of it had actually compiled properly. "bitcoind" seems to have been built "OK", so if "bitcoin-qt" is not being output in the "src" folder along with "bitcoind" and "bitcoin-cli", then it would appear that your compile didn't actually work properly (unless you told it to build without the GUI... Did you use --without-gui with "configure"? Huh)

The file actually is the compiled daemon.
And the compiled file bitcoin-qt is located in src/qt/

OP already was able to find and execute(?) that file.
HCP
legendary
Activity: 2086
Merit: 4318
Like I said, you'll probably need to capture all of the make output and then hunt through that to see if there are any obvious errors relating to building of "bitcoin-qt".

You should be able to use a command like:
Code:
make > make_output.txt
That will redirect the output from the screen to the file make_output.txt... you can then copy/paste the output to pastebin.com or something like that.


Can you also do a directory listing of the "./src" directory with "bitcoind" is located? Would prefer the text listing, rather than a screenshot of the file browser window.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
How can I get rid of every single installation I have made with bitcoin core on ubuntu? On windows I could simply go on %AppData% and remove the "Bitcoin".

I think the old version is getting interacted with the new one. Could that happen?

Edit: I'm right now building again. I think I had forgotten ./configure --with-incompatible-bdb

2nd Edit: Guys it still shows:

Code:
./src/qt/res/bitcoin-qt-res.rc
./doc/man/bitcoin-qt.1
HCP
legendary
Activity: 2086
Merit: 4318
Is it that?
No... bitcoind is the Bitcoin Core daemon... basically the "server" component that runs in the background. I asked because I wanted to know if the rest of it had actually compiled properly. "bitcoind" seems to have been built "OK", so if "bitcoin-qt" is not being output in the "src" folder along with "bitcoind" and "bitcoin-cli", then it would appear that your compile didn't actually work properly (unless you told it to build without the GUI... Did you use --without-gui with "configure"? Huh)

In any case, you'd need to look at the actual output from make to figure out why "bitcoin-qt" has not been built...


Because when I command that, this happens:
The error you're getting is because you've already run a later version of Bitcoin Core at some point which has upgraded your wallet.dat which will be in your "~/.bitcoin/wallets" folder... rename/move the existing wallet.dat and then try starting "bitcoind" again.

NOTE: bitcoind does NOT have a GUI... so once "bitcoind" is running, you will need to use "bitcoin-cli" from the command line to interact it.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Result:
Code:
/home/angelo/altcoin-master/test/functional/data/wallets/high_minversion/wallet.dat
/home/angelo/.bitcoin/wallets/wallet.dat
/home/angelo/.bitcoin/wallets/daf/wallet.dat
/home/angelo/bitcoin-master/test/functional/data/wallets/high_minversion/wallet.dat

Where should I move it?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Where is wallet.dat located?
A neat little command I use in the terminal is:
Code:
find / -name wallet.dat -print 2>/dev/null
.

The output should be the directory the wallet.dat is in.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo

Because when I command that, this happens:

-zip-
Are you using your own wallet.dat? Might be the case of the wallet.dat not being backwards compatible (you're running 0.16.0 after-all). Try moving your wallet.dat to another directory and running the client again.

Where is wallet.dat located?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange

Because when I command that, this happens:

-zip-
Are you using your own wallet.dat? Might be the case of the wallet.dat not being backwards compatible (you're running 0.16.0 after-all). Try moving your wallet.dat to another directory and running the client again.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
After compilation of v0.16.0, is there a file called "bitcoind" that has been created anywhere? Huh

Is it that?



Because when I command that, this happens:

HCP
legendary
Activity: 2086
Merit: 4318
After compilation of v0.16.0, is there a file called "bitcoind" that has been created anywhere? Huh
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I have a question. I want to compile Bitcoin Core v0.16.0. I successfully compile the files but once I write find . -type f -iname "bitcoin-qt*" I only get:

Code:
./src/qt/res/bitcoin-qt-res.rc
./doc/man/bitcoin-qt.1

None of them is the launcher right?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Yeah! I did it. Part 1 is done. I have to face the second part now, and I'm creating a new thread for that.

https://bitcointalksearch.org/topic/trying-to-create-an-altcoin-5270019
legendary
Activity: 1624
Merit: 2481
This is the executable:
Code:
./src/qt/bitcoin-qt


So, either enter the directory ~/bitcoin-master/src/qt/ and enter:
Code:
./bitcoin-qt

or run the following from your home directory:
Code:
./bitcoin-master/src/qt/bitcoin-qt


P.s. You are almost there!  Cheesy
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Code:
./src/qt/res/bitcoin-qt-res.rc
./src/qt/bitcoin-qt
./build_msvc/bitcoin-qt/bitcoin-qt.vcxproj
./doc/man/bitcoin-qt.1
./contrib/bitcoin-qt.pro

And what of those 5 is the bitcoin-qt?
legendary
Activity: 1624
Merit: 2481
They don't necessarily have an extension. The extension is just part of the filename.

The file is named bitcoin-qt.
To run it, enter:
Code:
./bitcoin-qt

It might be the case, that the file is not marked as executable. In that case you first need to run:
Code:
sudo chmod 744 bitcoin-qt


If it says, the file can not be found, run the following in the bitcoin-master directory:
Code:
find . -type f -iname "bitcoin-qt*"
This should give you the location of the file.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo


These are the files? I'm curious of how to run them. I haven't run an executable on linux before. What extension do they have? (if they don't have .exe)
staff
Activity: 3458
Merit: 6793
Just writing some code
This is after make. Is it over? Are the files somewhere? It says that they are made in doc/man but this is what I get when I go there:
Most of the binaries can be found in src/ (i.e. src/bitcoind, src/bitcoin-tx, etc.). bitcoin-qt is in src/qt/bitcoin-qt.

That log line is saying that it entered doc/man and did something there. It does not mean that the build results are there, just the build results of the steps it did there.
legendary
Activity: 1624
Merit: 2481
Yes, you are done.
make finished without errors. The binaries should be in your directory where you executed the command. In your case, that is: ~/bitcoin-master/ ~/bitcoin-master/src/

The output actually does not mean that "all" files are in doc/man.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo


This is after make. Is it over? Are the files somewhere? It says that they are made in doc/man but this is what I get when I go there:

legendary
Activity: 1624
Merit: 2481
This is what I get on ./configure

I tried the --with-incompatible-bdb but it doesn't seem to do anything.

--with-incompatible-bdb is a paremeter which needs to be passed to configure. It is not a command on its own.

If you want to use that parameter, you need to execute:

Code:
./configure --with-incompatible-bdb
legendary
Activity: 1512
Merit: 7340
Farewell, Leo


This is what I get on ./configure

I tried the --with-incompatible-bdb but it doesn't seem to do anything.
legendary
Activity: 1624
Merit: 2481
I did the command you told me. All of these were installed successfully. Now I'm building it with:

Code:
./autogen.sh
./configure
make

Well this is what it returns:

~snip~


Did you read and follow the Instructions?

Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install BerkeleyDB 5.1 or later. This will break binary wallet compatibility with the distributed executables, which are based on BerkeleyDB 4.8. If you do not care about wallet compatibility, pass --with-incompatible-bdb to configure.


Do you have libdb-dev and libdb++-dev installed?
If not, install them:

Code:
sudo apt-get install libdb-dev libdb++-dev
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I did the command you told me. All of these were installed successfully. Now I'm building it with:

Code:
./autogen.sh
./configure
make

Well this is what it returns:

legendary
Activity: 3290
Merit: 3092
Quote
How much experience have you had in the past with coding/compiling on Linux based systems?

0

Hello BlackHatCoiner, is important to install all the dependencies you need before installing the program, for that try with:

Code:
$ sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-all-dev

With that then you shouldn't have problems to compile the core... but if you still having problems, the i would like to recommend you to install and not compile. Here is the step by step:

https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea
HCP
legendary
Activity: 2086
Merit: 4318
Quote
How much experience have you had in the past with coding/compiling on Linux based systems?

0
Well... I guess you're not doing too badly for someone with zero experience! But it does explain a few things. Wink

Note, I'm not sure that diving headfirst into attempting to compile Bitcoin Core as your "first project" is the best way to learn the in's and out's of compiling on Linux Undecided But we'll take a stab at it.

Essentially, run configure and see what it tells you is missing, then do what you need to fix that issue... at this point, it seems that simply executing ./configure with the appropriate settings as per the output from building the BerkeleyDB libs should fix your current problem. I'd expect (assuming that you already installed all the required libs and dependencies here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#ubuntu--debian) that it would complete without error and you should be able to use make
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Quote
How much experience have you had in the past with coding/compiling on Linux based systems?

0
HCP
legendary
Activity: 2086
Merit: 4318
For starters, you ignored the message given here:



It said that you needed to run the "export" and then then "./configure" commands to set the BDB_LIBS and BDB_CFLAGS values... you didn't. Which then meant that when you attempted to run the ./configure as part of the build process... it failed here:



With the error saying that it could not find libdb_cxx headers. Roll Eyes


From the video, it seems that you are just copy/pasting commands from the build-unix.md instructions without fully understanding what they are meant to be used for, nor which ones you actually need to use. You're not meant to use every single command... some of them are for specific setups/configurations etc. It also seems like you're not really reading/understanding some of the output and what it means either.

How much experience have you had in the past with coding/compiling on Linux based systems? Huh
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
https://youtu.be/cOC70UoP4v0

Am I the only one that thinks the build-unix.md is too complex? Can someone give me a hand here? What am I doing wrong?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I'm not using Ubuntu on VM. I've installed the OS with a bootable usb from a youtube tutorial. It "ate" 28GB of storage, I didn't expect so much  Tongue

Anyway, I'm going to try compile bitcoin core from there. No I don't want to be a node, I want to create an altcoin, just for fun. The problem is that it is much more complex than I thought...
legendary
Activity: 2170
Merit: 1789
If I install Ubuntu 18.04 on a 2TB external Maxtor disk will the OS go slower?
If you compare it to runnig it from internal SSD drive with 6GB/s throughput, then it is likely going to be way slower, but still usable for mose use case. If you plan to use it to host your full node, consider buying a separate SSD for your OS and use the HDD (if you can't afford SSD) for your blockchain data.
HCP
legendary
Activity: 2086
Merit: 4318
Which OS? Ubuntu run natively... or Windows with Ubuntu in a VM? Huh

If you're running Ubuntu natively from an external disk, it'll likely run slower from an external disk than from an internal one depending on interfaces being using USB vs USB2 vs USB3 etc and also due to the fact that your 2TB drive is more than likely an HDD and not an SDD.

If it's in a VM, it'll always run slower than it would natively... having said that, if you're just wanting to use it to compile Bitcoin (as per the thread), then running Ubuntu in a VM is "OK"... I run Ubuntu with Oracle Virtual Box on an i5-3570k with only 8Gig of RAM and Windows 10... it's not the fastest config, and multitasking is painful, but it's perfectly "adequate" for single "one off" tasks like compiling Bitcoin. Wink

I also use Ubuntu with WSL on this machine depending on what I'm trying to test.


Depending on your specs, your mileage may vary
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
If I install Ubuntu 18.04 on a 2TB external Maxtor disk will the OS go slower?
legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
Virtual Machine is slower and uses more resources compared with WSL since WSL is hypervisor type 1, while VM is hypervistor type 2.
+1 with this. I was running Ubuntu through my VM and it was not really a good experience to say. Also Microsoft has stopped the support for Windows 7 which is another double negative to be taken into consideration. Running a Ubuntu through VM isn't good either and running Windows 7 isn't good either.

If I was in the position of OP, I would take a backup of my files and would definitely move on to Linux Mint/Ubuntu (considering OP is a new user of Linux). Why anyone should really depend upon an OS which has no support from the team?
legendary
Activity: 2170
Merit: 1789
-snip-
It sounds like BlackHat is trying to have a dual booting machine. That should be okay, isn't it? If Windows is already installed on the machine then the bootloader that comes with Ubuntu should be able to detect it. There should be an option to boot either to Windows 7 or Ubuntu after that. It might be different if you're starting with Ubuntu and then Windows. From my experience, the Windows bootloader will not detect the Ubuntu OS and you have to fix it by repairing the GRUB bootloader.
HCP
legendary
Activity: 2086
Merit: 4318
Not as far as I'm aware. The Windows Subsystem for Linux (aka WSL) which allows you to install various flavours of Unix into Windows is part of Windows 10... it's not available for Windows 7. Your only option on Windows 7 would be to install Ubuntu using Virtual Machine software like Oracle Virtual Box or VMWare or similar.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I would like to ask if I can install Ubuntu 18.04 LTS on a windows 7 machine. I changed the windows 10 device and now I have a desktop running windows 7.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Quote
3. Message signature
Choose a different message start signature:
Code:
CChainParams::pchMessageStart in chainparams.cpp

pchMessageStart[0] = 0xf0;
pchMessageStart[1] = 0xb0;
pchMessageStart[2] = 0xb0;
pchMessageStart[3] = 0xd0;

what exactly do I have to change here? On my altcoin instead of that:

pchMessageStart[0] = 0xf0;
pchMessageStart[1] = 0xb0;
pchMessageStart[2] = 0xb0;
pchMessageStart[3] = 0xd0;

I did it this way:

pchMessageStart[0] = 0xb0;
pchMessageStart[1] = 0xf0;
pchMessageStart[2] = 0xb0;
pchMessageStart[3] = 0xd0;

I just change their position. Do I have to do anything else?
HCP
legendary
Activity: 2086
Merit: 4318
Lol why did they do that? Why not one program for everything? Didn't satoshi vision it like that?
Because it's pointless... you will never be able to mine a block on CPU/GPU anymore... ASICs have seen to that.


Quote
Started having some problems again  Tongue
At this point... I'm going to recommend you go and seek help in https://bitcointalk.org/index.php?topic=3345808.0]that Altcoin thread] or create your own thread in Altcoin Discussion board... as this thread is starting to veer away from compiling Bitcoin Core source code, and into creating an Altcoin.

That's not what this (Bitcoin Technical Support) board is for.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
If you want to mine, you'll need mining software (and preferably mining hardware Tongue)

Lol why did they do that? Why not one program for everything? Didn't satoshi vision it like that?

------------------------------------------

Started having some problems again  Tongue

I follow that guide on how to create a new altcoin. I'm quoting a text of it:
Quote
2.1 Change RPC port:
Code:
CBaseChainParams::nRPCPort in chainparamsbase.cpp

So while I have changed the ports, it still connects with the old peers:


And of course, it downloads me the entire blockchain...

This is what I've changed:



And this comes to my head. Is there any txt files with IPs inside? So I can delete it?
HCP
legendary
Activity: 2086
Merit: 4318
I believe the mining functionality was removed a long time ago (v0.12.1 was the last version to have the setgenerate command)... so the only way to "mine" with Bitcoin Core itself is when you're running a regtest environment and you use generate command.

If you want to mine, you'll need mining software (and preferably mining hardware Tongue)
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Can I mine directly from bitcoin core? Satoshi had designed it that way so everyone could mine without any other mining softwares.
HCP
legendary
Activity: 2086
Merit: 4318
If you're using the Bitcoin Core codebase... then the default way of getting two devices to talk to one another is by using "addnode"... either from the console or in your "bitcoin.conf" file (or whatever your altcoin .conf file is meant to be called).

2 devices on the same network cannot have the same IP... even if they're on the same router, the external IP might be shared from an external viewpoint (ie. from the internet), but on the internal network (behind the router) they will indeed have different IP addresses, and should be able to connect to each other using those.

You'd need to check the network settings on each device to see what they are... and you'd most likely want to assign static IP addresses in the router setup so you can use the "addnode" in the .conf file and not have to worry about it changing.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
EDIT: I MADE IT!!! I just had to add that line in the end:
Code:
sudo make install DESTDIR=/mnt/c/workspace/bitcoin
Yeah... it seems like a simple permissions error... no doubt because Windows 10 has made "C:" somewhat protected to try and prevent malware and viruses and the like... In Linux, "sudo" == "SuperUser do", so it's basically like running things as "administrator" in Windows.

Just one of the many "gotcha's" of trying to cross-compile things... made slightly more complicated by running Linux through Windows! Undecided

Glad you managed to finally get it sorted... good luck with the altcoin experimentation Wink

I am now building the altcoin. Then I will see how to mine. And if I mine a new block every 10 minutes on average of course, which is very important for me. Regtest doesn't provide me.

One question, if I install on 2 different devices the altcoin, how exactly are they gonna connect? There are no IP addresses written on a txt file. (Like on bitcoin core)

Do I have to point an IP from bitcoin core's settings? What if both devices are connected on the same IP? (same router)
HCP
legendary
Activity: 2086
Merit: 4318
EDIT: I MADE IT!!! I just had to add that line in the end:
Code:
sudo make install DESTDIR=/mnt/c/workspace/bitcoin
Yeah... it seems like a simple permissions error... no doubt because Windows 10 has made "C:" somewhat protected to try and prevent malware and viruses and the like... In Linux, "sudo" == "SuperUser do", so it's basically like running things as "administrator" in Windows.

Just one of the many "gotcha's" of trying to cross-compile things... made slightly more complicated by running Linux through Windows! Undecided

Glad you managed to finally get it sorted... good luck with the altcoin experimentation Wink
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Did u Reset the Ubuntu 18.04 by clicking on Advanced Options ? If not, go ahead with that and then access the Ubuntu 18.04 LTS application, create an username again and go with the build. If you haven't done that, you might run into unknown errors/warnings/exceptions again as it might clash with the older installation.

Going by the pic which you posted, didn't you install mingw-w64 cross-compilation tool chain? Also didn't you change the default compiler option to posix? I think if you didn't change the compiler option, you will get the error which you posted in the first video : 'recursive_mutex' is not a member of 'std'

If you have an unsuccessful build, try the above 2 options which I posted.

I had an unseccussful build, I tried both options you told me, and I still have unsuccessful build.

This is what it returns me after make:
Code:
blablablablah, things after make and boom errors:
make[2]: Leaving directory '/home/angelo/bitcoin/src'
make[1]: Leaving directory '/home/angelo/bitcoin/src'
Making all in doc/man
make[1]: Entering directory '/home/angelo/bitcoin/doc/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/angelo/bitcoin/doc/man'
make[1]: Entering directory '/home/angelo/bitcoin'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/angelo/bitcoin'
angelo@LAPTOP-NC8MQ733:~/bitcoin$ sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status"
[sudo] password for angelo:
angelo@LAPTOP-NC8MQ733:~/bitcoin$ make install DESTDIR=/mnt/c/workspace/bitcoin
Making install in src
make[1]: Entering directory '/home/angelo/bitcoin/src'
make[2]: Entering directory '/home/angelo/bitcoin/src'
make[3]: Entering directory '/home/angelo/bitcoin'
make[3]: Leaving directory '/home/angelo/bitcoin'
make[3]: Entering directory '/home/angelo/bitcoin/src'
make[4]: Entering directory '/home/angelo/bitcoin'
make[4]: Leaving directory '/home/angelo/bitcoin'
 /bin/mkdir -p '/mnt/c/workspace/bitcoin//lib'
 /bin/bash ../libtool --preserve-dup-deps  --mode=install /usr/bin/install -c   libbitcoinconsensus.la '/mnt/c/workspace/bitcoin//lib'
libtool: install: /usr/bin/install -c .libs/libbitcoinconsensus.dll.a /mnt/c/workspace/bitcoin//lib/libbitcoinconsensus.dll.a
/usr/bin/install: setting permissions for '/mnt/c/workspace/bitcoin//lib/libbitcoinconsensus.dll.a': Operation not permitted
Makefile:7186: recipe for target 'install-libLTLIBRARIES' failed
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory '/home/angelo/bitcoin/src'
Makefile:18478: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/angelo/bitcoin/src'
Makefile:18150: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/angelo/bitcoin/src'
Makefile:788: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

In workspace/bitcoin this is what I get:




I am one step before giving it up... I don't get what my computer doesn't read right...

EDIT: I MADE IT!!! I just had to add that line in the end:
Code:
sudo make install DESTDIR=/mnt/c/workspace/bitcoin
legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
Did u Reset the Ubuntu 18.04 by clicking on Advanced Options ? If not, go ahead with that and then access the Ubuntu 18.04 LTS application, create an username again and go with the build. If you haven't done that, you might run into unknown errors/warnings/exceptions again as it might clash with the older installation.

Going by the pic which you posted, didn't you install mingw-w64 cross-compilation tool chain? Also didn't you change the default compiler option to posix? I think if you didn't change the compiler option, you will get the error which you posted in the first video : 'recursive_mutex' is not a member of 'std'

If you have an unsuccessful build, try the above 2 options which I posted.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I hope "Ubuntu" is the 20.04 one. It can't be the other one.

Yes, it is. If you look it up in the Microsoft Store, the description of the app says that it installs Ubuntu 20.04.

Okay, I've uninstalled it and I'm trying again with the 18.04 one. I'm praising to work ^^



legendary
Activity: 1876
Merit: 3132
I hope "Ubuntu" is the 20.04 one. It can't be the other one.

Yes, it is. If you look it up in the Microsoft Store, the description of the app says that it installs Ubuntu 20.04.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Do you know how to uninstall ubuntu 20.04 from my windows 10? I had installed it, but I don't know how to get rid of it.

Go to "Apps & features" in your system and search for "Ubuntu". You should see Ubuntu 20.04 and 18.04 separately. The uninstall button will be right next to their names. If you also want to have a clean install of Ubuntu 18.04 then you can click on it, select "Advanced options" and reset it.



I hope "Ubuntu" is the 20.04 one. It can't be the other one.
legendary
Activity: 1876
Merit: 3132
Do you know how to uninstall ubuntu 20.04 from my windows 10? I had installed it, but I don't know how to get rid of it.

Go to "Apps & features" in your system and search for "Ubuntu". You should see Ubuntu 20.04 and 18.04 separately. The uninstall button will be right next to their names. If you also want to have a clean install of Ubuntu 18.04 then you can click on it, select "Advanced options" and reset it.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo


A little tired of trying to accomplish that "simple" compilation. Do you know how to uninstall ubuntu 20.04 from my windows 10? I had installed it, but I don't know how to get rid of it.
legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
I captured a video, with the steps that I do: https://youtu.be/xt-lqp9W640
Can someone tell me what's the problem?

Not sure if my post would be of any help but I had built the source a couple of times in 2 different OS. One was in Ubuntu last year where I didn't have any problem in building and had run various python tests successfully. Last month, I built it in Windows 10 OS and encountered the same issue which you are going through in #35. Later on after many tries I just left that and 2 days back I though of retrying this again after you posted this topic.

As @HCP instructed, I uninstalled Ubuntu 20.04 completely with all its data and had a clean install of 18.04 version. The mistake I did in the previous build last month was neglecting the line which states

Code:
sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix.

As stated in the footnotes, it is not possible to do a successful build of Bitcoin Core without changing the compiler option to posix. Try to run the above code and select 1 in the option which states posix and continue building again. After changing the compiler option to posix, I never encountered the issue with make and everything passed smoothly.

Also note that, if you have any error while running

Code:
make install DESTDIR=/mnt/c/workspace/bitcoin

use

Code:
sudo make install DESTDIR=/mnt/c/workspace/bitcoin
sudo make deploy

instead. This did indeed solve the problem which you have posted in the previous post but I am not sure how well this might work on your PC.



So, after building I tried to run unit tests with python3 example_test.py and I got these errors  Huh Can anyone throw some light in this?

Code:
2020-08-02T11:04:12.271000Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_kpw50dmv
2020-08-02T11:04:29.609000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 503, in start_nodes
    node.wait_for_rpc_connection()
  File "/home/username/bitcoin/test/functional/test_framework/test_node.py", line 221, in wait_for_rpc_connection
    'bitcoind exited with status {} during initialization'.format(self.process.returncode)))
test_framework.test_node.FailedToStartError: [node 0] bitcoind exited with status 1 during initialization

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 117, in main
    self.setup()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 249, in setup
    self.setup_network()
  File "example_test.py", line 114, in setup_network
    self.setup_nodes()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 371, in setup_nodes
    self.start_nodes()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 506, in start_nodes
    self.stop_nodes()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 522, in stop_nodes
    node.stop_node(wait=wait)
  File "/home/username/bitcoin/test/functional/test_framework/test_node.py", line 319, in stop_node
    self.stop(wait=wait)
  File "/home/username/bitcoin/test/functional/test_framework/test_node.py", line 179, in __getattr__
    assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
AssertionError: [node 0] Error: no RPC connection
2020-08-02T11:04:29.699000Z TestFramework (INFO): Stopping nodes
Traceback (most recent call last):
  File "example_test.py", line 217, in
    ExampleTest().main()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 141, in main
    exit_code = self.shutdown()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 265, in shutdown
    self.stop_nodes()
  File "/home/username/bitcoin/test/functional/test_framework/test_framework.py", line 522, in stop_nodes
    node.stop_node(wait=wait)
  File "/home/username/bitcoin/test/functional/test_framework/test_node.py", line 319, in stop_node
    self.stop(wait=wait)
  File "/home/username/bitcoin/test/functional/test_framework/test_node.py", line 179, in __getattr__
    assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
AssertionError: [node 0] Error: no RPC connection
[node 2] Cleaning up leftover process
[node 1] Cleaning up leftover process
[node 0] Cleaning up leftover process
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Did you make any changes to the code yourself?

You may have an unclean build environment where old compilation results are being used. Try doing make clean before running make.

clean make? I did it. Same results. I think I'm gonna try it on another computer.
staff
Activity: 3458
Merit: 6793
Just writing some code
Did you make any changes to the code yourself?

You may have an unclean build environment where old compilation results are being used. Try doing make clean before running make.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
@HCP, thank you for your reply and your interest. I had installed Ubuntu 20.04 and not 18.04. That was my mistake. Although, when I do exactly what you're telling me I'm reaching on an error on:
Code:
make
(the one before sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status")

This is what it returns:


Code:
Makefile:13450: recipe for target 'bitcoind-bitcoind.o' failed
make[2]: *** [bitcoind-bitcoind.o] Error 1
make[2]: Leaving directory '/home/angelo/bitcoin/src'
Makefile:16665: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/angelo/bitcoin/src'
Makefile:781: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I don't make sense. I also don't get why bitcoin core developers don't simply create a .bat file that compiles the source code by itself.

Edit: I captured a video, with the steps that I do: https://youtu.be/xt-lqp9W640
Can someone tell me what's the problem?
HCP
legendary
Activity: 2086
Merit: 4318
Not sure why you were not able to use the WSL with Windows 10... But I think it might have all gone wrong initially when you attempted to modify the "PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var" command Undecided

Modifying that PATH might have screwed up a lot of stuff as the system wouldn't be able to "find" various things while attempting to build.

Also, make sure that your WSL Ubuntu is Ubuntu 18.04. Execute the following command in WSL Ubuntu and make sure it says 18.04:
Code:
cat /etc/os-release

Should show something similar to:



Using WSL Ubuntu 18.04, I simply followed each step here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md, and I did not have any issues... you have to copy/paste each command one at time... and you need to let each command finish before you enter the next one. Note that some of the commands can take a LONG time to finish (like 10-20+ minutes etc)... so you need to wait until you are back at the "$" prompt before you do the next command! Wink

Anyway, after doing all the steps... and then doing:
Code:
make install DEST=/mnt/c/workspace/bitcoin

It copied all the .exe files to my C:\workspsace\bitcoin\bin directory:






Note: The /mnt/[DRIVE LETTER]/ notation is just the way that the Windows Subsystem for Linux (WSL) is able to interact with your Windows drives/file system... Windows and Linux use very different setups... so when using the WSL system, you have to use Linux notation.

Basically, your Windows drive letters C:, D: etc are available in /mnt/c and /mnt/d etc...So: C:\workspace\bitcoin\bin == /mnt/c/workspace/bitcoin/bin

Also, I see you're wanting to build your "altcoin"... do note the important warning here:
Note that for WSL the Bitcoin Core source path MUST be somewhere in the default mount file system, for example /usr/src/bitcoin, AND not under /mnt/d/. If this is not the case the dependency autoconf scripts will fail. This means you cannot use a directory that is located directly on the host Windows file system to perform the build.

If your altcoin source code is in C:\coin, you WILL NOT be able to compile it from this location... you'll need to copy it to somewhere within in the WSL Ubuntu file system first!

For instance, if your altcoin source code is in C:\coin, you can use the following to copy it to the "mycoin" directory in your home dir in WSL Ubuntu filesystem:
Code:
cp -r /mnt/c/coin ~/mycoin

Then instead of doing the following commands:
Code:
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin

You can just do:
Code:
cd ~/mycoin
And then continue following the rest of the instructions... EXACTLY as they are shown on that page... just copy/paste them, one line at a time.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Unfortunately, I admit that I'm unable to compile it with the ubuntu way. Hence, I'm changing to visual studio again. Although I still don't get why I get these errors. I have installed the depends.



All the log:
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>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
2>Done building project "libunivalue.vcxproj" -- FAILED.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
1>Done building project "libbitcoinconsensus.vcxproj" -- FAILED.
5>------ Build started: Project: libbitcoin_qt, Configuration: Debug Win32 ------
6>------ Build started: Project: bitcoin-cli, Configuration: Debug Win32 ------
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
3>Done building project "libsecp256k1.vcxproj" -- FAILED.
7>------ Build started: Project: testconsensus, Configuration: Debug Win32 ------
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
6>Done building project "bitcoin-cli.vcxproj" -- FAILED.
8>------ Build started: Project: bitcoin-tx, Configuration: Debug Win32 ------
5>Performing libbitcoin_qt moc code include generation task, output path .\QtGeneratedFiles\qt.
5>C:\Qt5.9.8_x64_static_vs2019\bin\moc.exe  "..\..\src\qt\bitcoinamountfield.cpp" -o .\QtGeneratedFiles\qt\bitcoinamountfield.moc.
4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
4>Done building project "libleveldb.vcxproj" -- FAILED.
9>------ Build started: Project: bitcoind, Configuration: Debug Win32 ------
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.
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:\bitcoin\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.
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
7>Done building project "testconsensus.vcxproj" -- FAILED.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
9>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
9>Done building project "bitcoind.vcxproj" -- FAILED.
8>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
8>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
8>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
8>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
8>Done building project "bitcoin-tx.vcxproj" -- FAILED.
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 ------
13>------ Build started: Project: test_bitcoin-qt, Configuration: Debug Win32 ------
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj' does not exist.
11>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
11>Done building project "bitcoin-wallet.vcxproj" -- FAILED.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libtest_util\libtest_util.vcxproj' does not exist.
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
10>Done building project "test_bitcoin.vcxproj" -- FAILED.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_cli\libbitcoin_cli.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_common\libbitcoin_common.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_crypto\libbitcoin_crypto.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_server\libbitcoin_server.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_util\libbitcoin_util.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_wallet\libbitcoin_wallet.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1823,5): warning : The referenced project '..\libbitcoin_zmq\libbitcoin_zmq.vcxproj' does not exist.
12>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
12>Done building project "bitcoin-qt.vcxproj" -- FAILED.
13>Performing test_bitcoin-qt moc generation task, output path .\QtGeneratedFiles\qt\moc.
13>The system cannot find the path specified.
13>C:\bitcoin\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.
========== Build: 0 succeeded, 13 failed, 0 up-to-date, 0 skipped ==========

I just click build and then build solution. README.md doesn't tell me to do it, but I consider it implied.

Why is compiling bitcoin core so hard? I'm trying 2 weeks now, and I'm really pissed off...
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I think I passed the previous error(s). Now I have another problem:



I try to install that library (with that way: https://github.com/bitcoin/bitcoin/issues/7970#issuecomment-372060419 ) but I fail:

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
@BitCryptex I captured my screen. When I do the:
Code:
make install DESTDIR=/mnt/c/bitcoin

I get those errors: https://youtu.be/EDpcUQCEaCo
legendary
Activity: 1876
Merit: 3132
Why /mnt/c/coin? Why not just C:/coin?

Look at the example from the installation step. The destination directory is "c:\workspace\bitcoin" and the DESTDIR is set to "/mnt/c/workspace/bitcoin".

Btw, it is still compiling, how much time will it take do you think?

I have no idea. It depends on your hardware. I don't have any reference numbers, sorry.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Ah ok. I just don't get how it searches and compiles in C:\coin

It doesn't. You are currently working in the "/home/okko/bitcoin/" directory. Look at the installation step which is next. That's where you have to specify the path to your folder on the C drive.

Code:
make install DESTDIR=/mnt/c/coin

Why /mnt/c/coin? Why not just C:/coin? What does mnt means? (I am new at ubuntu and linux generally)

Btw, it is still compiling, how much time will it take do you think?
legendary
Activity: 1876
Merit: 3132
Ah ok. I just don't get how it searches and compiles in C:\coin

It doesn't. You are currently working in the "/home/okko/bitcoin/" directory. Look at the installation step which is next. That's where you have to specify the path to your folder on the C drive.

Code:
make install DESTDIR=/mnt/c/coin
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I can type. Is it over?

No, new lines should be appearing all the time. Once you see "okko@LAPTOP-NC8MQ733" again, it will mean that the build has been finished.

Ah ok. I just don't get how it searches and compiles in C:\coin
I think that I haven't given any information to search on C:\coin. Can you explain me what's going on? I'm trying to create an altcoin as an experiment, and I just don't get it. Doesn't it clones the git? How can I not clone it, but successfully build it?
legendary
Activity: 1876
Merit: 3132
I can type. Is it over?

No, new lines should be appearing all the time. Once you see "okko@LAPTOP-NC8MQ733" again, it will mean that the build has been finished.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
I'm waiting for some minutes. Nothing seems to happen.

"make" started the compilation. You should see that your computer is under load in the task manager. Give it a few more minutes.



I can type. Is it over?
legendary
Activity: 1876
Merit: 3132
I'm waiting for some minutes. Nothing seems to happen.

"make" started the compilation. You should see that your computer is under load in the task manager. Give it a few more minutes.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
What exactly do I write? cd.. and then ./atogen.sh or both at the same line?

Execute them separately. They were put in the separate lines intentionally. You could write them in the same line by putting "&&" between them, but that's completely redundant.



I'm waiting for some minutes. Nothing seems to happen.
legendary
Activity: 1876
Merit: 3132
What exactly do I write? cd.. and then ./atogen.sh or both at the same line?

Execute them separately. They were put in the separate lines intentionally. You could write them in the same line by putting "&&" between them, but that's completely redundant.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
@ETFbitcoin, it seems that it now works:


About that:
Code:
cd ..
./autogen.sh # not required when building from tarball
What exactly do I write? cd.. and then ./atogen.sh or both at the same line?

Btw, thanks, for helping me guys  Wink
legendary
Activity: 1512
Merit: 7340
Farewell, Leo


Explain me please what am I doing wrong. @BitCryptex
legendary
Activity: 1876
Merit: 3132
What about that? I don't copy it, right? Because, when I did, it returned that:

I have just noticed that you have changed "$PATH" to "C:\coin". Don't modify anything. Leave it at "$PATH" and it should work.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Am I starting it right?

Yes, it seems to be fine. Proceed with the instructions and post once there are any specific errors with which we might be able to help.

Code:
sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" 
What about that? I don't copy it, right? Because, when I did, it returned that:



Also, in my "coin" folder there is the bitcoin 0.20.0 source code. Do I have to move it to C:\ ? Like that: C:\coin ?
legendary
Activity: 1876
Merit: 3132
Am I starting it right?

Yes, it seems to be fine. Proceed with the instructions and post once there are any specific errors with which we might be able to help.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
Thanks. Build notes say that I have to do this in order to build the source code:
Code:
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" # Disable WSL support for Win32 applications.
cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh # not required when building from tarball
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make
sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status" # Enable WSL support for Win32 applications.

Am I starting it right?
legendary
Activity: 1876
Merit: 3132
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 ?

It should be "g++-mingw-w64-x86-64" and not "g++mingw-w64-x86-64". You forgot to put "-" before "mingw".
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.

Jump to: