Skip to content

Setting up Your Windows 10 VM

Eric Promislow edited this page Apr 8, 2021 · 3 revisions

WSL2 should be installed and ready to run.

Prerequisites for building rd:

Visual Studio 2019 (preinstalled in the VM))

  • Run the Visual Studio Installer application
  • Choose to Modify Visual Studio: screenshot
  • Under Individual Components, find and install MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16): screenshot

Once it's installed, launch Visual Studio 2019 Community and download some more software, via

Tools | Get Tools and Features…

  • Clicking on the "Python development" box will give you a list of checkboxes so you can control which versions of python to install. We definitely need v2, but it shouldn't hurt to install v3.

  • Click on the "Desktop development with C++" box if you didn't do the "Modify" step when installing. Ensure you have checked `MSVC v* - VS 2019 C++ x64/x86 build tools.

  • Click on the "Node.js development" box.

Press the Modify button once everything's selected. Of course "Modify" makes sense, you're modifying your system!

Graphic libraries

GTK

  • cairo - GTK and libjpeg: You will need the cairo library which is bundled in GTK. Download the GTK 2 bundle for Win32 or Win64. Unzip the contents in C:\GTK.

  • GTK 2 (for canvas) — use a bundle like instructed on the wiki.

Unzip the contents in C:\GTK. You'll need to create that directory. You can double-click on the .zip file or run start gtk....zip from the command-line to use the builtin unzipper -- no need to download unzip.

  • libjpeg

Download this library from libjpeg-turbo. Click on libjpeg-turbo-2.0.6-vc64.exe to get to the sourceforge automatic-download page. Open this file, it will offer to install its contents in c:\libjpeg-turbo64 so you don't need to create that directory.

Running npm install

• Build RD with set GYP_DEFINES="GTK_Root=C:/Path/To/GTK2" jpeg_root="C:/Path/to/libjpeg". Under cmd.exe, set takes the rest of the line, no need to worry about quoting. • Manually run npm install [email protected] because nodejs/nan#892


With that, npm install will hopefully work. Not even trying to build yet.


## Git:

Go to https://git-scm.com/downloads and install

## Install `scoop` for a better package manager than `winget`. In PowerShell:

Set-ExecutionPolicy RemoteSigned -scope CurrentUser iwr -useb get.scoop.sh | iex scoop install nvm


Start a new PowerShell (speaking of, PowerShell ISE gives a better experience, but is slower to start up:

nvm install latest


I installed ActivePython 2 (not sure if python 3 is used but the node_modules
reference both `python` and `python2.7`, and who knows which version an unadorned python
is intended to reference?


Also, Jan's notes from https://github.com/jandubois/tinyk3s/releases/tag/v0.1 :

curl -sLO https://github.com/jandubois/tinyk3s/releases/download/v0.1/distro.tar curl -sLO https://dl.k8s.io/release/v1.20.0/bin/windows/amd64/kubectl.exe curl -sLO https://raw.githubusercontent.com/jandubois/tinyk3s/v0.1/get-k3s