Advertisement
CryptoLifestyler

Untitled

Jan 27th, 2020
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. Installing Ubuntu on Windows
  2. Cloning the Source Code
  3. Installing Dependencies
  4.  
  5.  
  6. Transcript
  7.  
  8. 00:10 In this part of the video, I will be showing you how to install Ubuntu on your Windows machine. This is essential for cross-compiling our Windows QT. We will then be cloning our source code from GitHub and installing dependencies.
  9.  
  10. 00:28 Let's begin. It is recommended that you have a clean install of Windows, or tidy it up by removing programs that might slow it down. You should also make sure there are no unwanted programs running in the background.
  11.  
  12. 00:47 The first thing we are going to do is click on the Windows icon. Then go to the Microsoft Store. Then in the search bar at the top, type ''Ubuntu''.
  13.  
  14. 01:07 We are going to choose the first one. Click install and wait. Once it has finished, exit. Do not launch it yet. Then back to your Windows icon and type a search for ''Powershell''. Right click and run as administrator.
  15.  
  16. 01:38 Now, in the Powershell terminal, we need to add one command that will allow us to use Ubuntu.
  17.  
  18. Copy and paste the line from the Pastebin provided.
  19.  
  20. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  21.  
  22. 01:58 Then hit enter. It takes a little while for this to process, so be patient. When it is done, you may have to restart. If it gives you the option to restart, type yes. As I have already done this configuration before, I do not need a restart.
  23.  
  24. 02:23 Once you have restarted Windows, you can then search for Ubuntu. You must open as administrator. When you do, it will start installing. This will take around 3-5 minutes. Once installed, you are prompted for a username. This can be anything you want. Then provide a password. Repeat the password to confirm.
  25.  
  26. 03:00 And that's it. You have now managed to get Ubuntu on your Windows machine.
  27.  
  28. 03:07 Next we will be cloning our coin from our recently made repository, and installing the required dependencies.
  29.  
  30. 03:16 Type ''ls'' to be sure there are no files in your Ubuntu machine. Then we are going to type ''git clone'' space. Then add the path to your repo. If you don't know the path to clone your coins source code, you can copy it from the repo. It can be found after clicking the button named ''Clone or download''.
  31.  
  32. 03:40 Once you have the path, press enter. It will then clone the source code to your terminal. We can check it has worked by typing ''ls'' again. Now we can see our source code is there.
  33.  
  34. 03:53 Enter the VisionX folder. We do this using ''cd'' the same as our Ubuntu virtual machine. Here you can see we have the whole source code. Now navigate back to the Home directory using ''cd''.
  35.  
  36. 04:07 Clear your terminal. We are now going to copy and paste the command from our Pastebin. This will make a copy of our coin to our Windows Desktop. Press Enter and wait. You can now see it has created a copy on our Desktop. We know now that the Ubuntu terminal and Windows are collaborating.
  37.  
  38. 04:32 Next we are going to copy and paste the first of our dependencies. Be sure to copy them from the Pastebin in order. I will fast forward this part of the video as it's just copy and paste. And waiting...
  39.  
  40. 04:50 When that is done, we are going to go to our docs and look at the file named ''build-windows.md''. Here we should find some information about building requirements. However, it looks to be outdated. So we are going to go to the same document in the Bitcoin GitHub.
  41.  
  42. 05:19 We are going to make our first build a 64 bit. So we need to copy the first command ''sudo apt update''. Paste it into the terminal and hit enter.
  43.  
  44. 05:33 Then return for the next command ''sudo apt upgrade''. Type ''y'' when prompted. This will take a long time, so whilst that is running, let's update our build-windows.md document. We are going to copy the Bitcoin contents and replace ours in the file.
  45.  
  46. 05:58 Go back to the Bitcoin document named build-windows.md.
  47.  
  48. EDIT: Click on Raw and highlight all, and copy. Do not click on the pencil icon. This is not the right way to do it.
  49.  
  50. 06:20 Then return to our document in our repository. Click on the pencil icon. Highlight all and paste over it. (We can use the pencil icon for our own repository to edit, not Bitcoins) Scroll down and type in the description, ''Update to follow Bitcoin Windows build''. This will people to see why the document was updated. You should always detail your changes. Then click on ''Commit changes''.
  51.  
  52. 06:50 As you can see, we have now updated the file. So the next time we need to make a Windows QT, we can look at our own docs as reference.
  53.  
  54. 07:01 Now return to the terminal. It is not yet finished. You've probably noticed by now, being a developer means spending a lot of time sitting in front of your computer. Normally waiting on installations or compiling. Not fun to watch, so I am going to speed up this part of the video.
  55.  
  56. 07:27 Now that is done, paste the next command. This will install the Libtool autotools. I already have this installed, so it didn't need to install. You will likely need to wait a while as it installs. We have already cloned our coin from GitHub, so we can skip that stage.
  57.  
  58. 07:47 Next we need to install the Mingw cross-compilation tool for the 64 bit Windows. Copy this command and return to the terminal. This part normally takes a very long time. However, I already have this installed too. Be prepared to wait for a long time when you install this. (Hours, don't give up!)
  59.  
  60. 08:14 Next, set the default compiler option to posix with the next command. Choose option 1. Now we need to make sure our paths are correct. Use this command. It will make sure the source path is somewhere in the default mount file system.
  61.  
  62. 08:48 Next, clear your terminal. It's often good to clear your terminal to remove all the clutter. It helps you to focus on what you are doing. Now we are going into our VisionX folder. And like before, we are going to change our permissions.
  63.  
  64. 09:14 These are located in the Depends folder and the Share folder. We also have a Configure file and autogen.sh to change. Follow the steps using the commands in the Pastebin. I will speed this up as it should be familiar to you by now.
  65.  
  66. 09:32 Okay, with that done, we are ready to start cross-compiling our Windows QT. Remember, this will take a long, long time. It's best you go rest whilst this is compiling. To start cross-compiling, we are going to access the depends folder. And paste in the next command.
  67.  
  68. 10:07 Now, here we can see one example of what often goes wrong. It has failed due to not being able to access a server. If this happens, resubmit the command. It will work the next time. Again, this will take so long. I will speed up to the end.
  69.  
  70. 10:39 Now that has finally finished, we are going to go back one level. By typing ''cd ..''. Then paste in ''./autogen.sh''.
  71.  
  72. 10:53 Next add the command line to configure. With that done, we need to give the command ''make''. This will make our Windows 64 bit QT. We have now successfully cross-compiled our Windows QT.
  73.  
  74. 11:16 We just need to get the Windows QT onto our Desktop. Copy and paste the final command to do this. Edit the command with your correct path to the Desktop. My computer name is Admin. So replace that with your computer name.
  75.  
  76. 11:32 Hit Enter, and you will see the new file appear on your Desktop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement