I did this test on a pure Linux system, but on another pc I managed to install kos / create cross-compilers on WSL:
Code: Select all
- Install Windows Subsystem for Linux:
First 2 steps of https://www.windowscentral.com/install-windows-subsystem-linux-windows-10:
* Enabling Windows Subsystem for Linux using Settings
Start Menu -> "Settings"->"Apps"->"Related settings"->"Programs and Features"->
"Turn Windows features on or off"-> check the "Windows Subsystem for Linux" option->
OK -> restart now
* Installing Linux distros using Microsoft Store:
download Ubuntu 20.04 LTS (466 MB) from Microsoft Store (https://aka.ms/wslstore)
launch it from the store screen-it will say it's installing
specify a username & password
- from the WSL command line:
- sudo mkdir /opt/toolchains
- cd /opt/toolchains
- sudo mkdir dc
- sudo chmod 757 dc
- sudo apt-get update
- sudo apt install make
- sudo apt install gcc
- sudo apt install g++
- sudo apt install texinfo
- sudo apt-get install libjpeg-dev
- sudo apt-get install libpng-dev
- sudo apt-get install libelf-dev
- sudo apt-get install wget ca-certificates
(then the rest is a regular kos install, like the one I describer here: https://dcemulation.org/phpBB/viewtopic.php?t=105596