Pages:
Author

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

HCP
legendary
Activity: 2086
Merit: 4361
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".
Pages:
Jump to: