I figured that this should aid in getting a successful build going under Windows.
Steps to create a Windows based development platform for the Beyonwiz firmware.
Ensure that Windows 10 is updated to version 2004 or higher.
(optional)
Install "Windows Terminal" from the "Microsoft Store". I find that this is a nice integration of Powershell, cmd, and any Linux distributions you happen to install.
Install WSL2 using the guide provided by Microsoft here.
Make sure that you have Virtualisation turned on in your PC's BIOS, as the new WSL2 requires virtualisation to operate.
Install Ubuntu 20.04 from the "Microsoft Store". (Do a search for "Linux")
Don't forget to click on the Windows notification to configure the Ubuntu 22.04 installation and set up your user account.
Launch the Ubuntu-20.04 environment, preferably from "Windows Terminal", or simply run "wsl".
Update the Ubuntu installation by running these commands from the linux prompt:
Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
Code: Select all
sudo apt-get install build-essential swig gettext pylint
Code: Select all
cd ~
Code: Select all
nano .bashrc
Download the Beyonwiz V2 build toolchain using the following command:
Code: Select all
wget https://peteru.net/beyonwizv2-x86_64-cortexa15hf-neon-vfpv4-toolchain-19.3.20190315.sh
Code: Select all
chmod +x beyonwizv2-x86_64-cortexa15hf-neon-vfpv4-toolchain-19.3.20190315.sh
sudo ./beyonwizv2-x86_64-cortexa15hf-neon-vfpv4-toolchain-19.3.20190315.sh
Code: Select all
git clone https://bitbucket.org/beyonwiz/easy-ui-4.git
Code: Select all
cd easy-ui-4
Code: Select all
source /opt/beyonwiz/beyonwizv2/19.3/environment-setup-cortexa15hf-neon-vfpv4-oe-linux-gnueabi
Code: Select all
autoreconf -i
mkdir build
cd build
../configure-bw v2
make
Now, if you want to install a full graphical development environment, it couldn't be easier! (much to my surprise:))
Start from step 2 in this guide to install Visual Studio Code under Windows 10.
At step 3, VS Code will actually automatically prompt you to install the WSL Remote plugin, since it can detect your WSL2 installation.
Then follow the rest of the guide.
Make sure you are in your easy-ui-4 directory within WSL, and type code ., and that's it. VS code will install the components it needs in WSL and then launch VS Code under Windows. It will recognise the git cloned repository and show all the files in place.
(Now my actual ability to drive VS Code is non-existant, so I don't know how to actually drive any of the features from here! ).