|
|
Building a cross compiler on Windows 10Compiling Rockbox on Windows 10 is a lot easier using the new linux subsystem than using a VM or cygwin.Setup Ubuntu environment in Windows 10/11Install Windows Subsystem for UnixBring up a command line and type: wsl --install This will automatically install Ubuntu. Reboot your computer to complete the WSL install. On reboot the Ubuntu console should start and prompt you to make a username and password. More info: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10Install build dependenciesFrom the Ubuntu console, type: sudo apt-get update sudo apt-get install git build-essential texinfo bison libtool autoconf flex zip libtool-bin libgmp3-devCheckout the rockbox sourcegit clone git://git.rockbox.org/rockbox This will create a local checkout of rockbox on your Windows hard drive. We'll access it later to get binaries.Build the cross compilerAfter the above command, navigate to the rockbox folder you just checked out (cd rockbox). Then type: cd rockbox sudo tools/rockboxdev.sh Type the password you selected and then choose which compilers you want (probably ARM). MIPS does not currently build under Windows. This will run for 2-10 minutes depending on how fast your computer is. Disabling Windows defender will speed up compiling if you are impatient.Find Rockbox folderAt this point you have the dev tools setup and you can compile rockbox like on any other platform. However, once built, your binaries will appear under: \\wsl.localhost\Ubuntu\home -- MichaelGiacomelli - 25 Jul 2024Build Simulator for WindowsTo build the simulator as stand-alone Windows application, you have to install MinGW (windows cross compiler), and compile the SDL library from source. (Note: Installing the SDL 1.2 developement library from your distro should work, but will not allow statical linking, i.e. you always need the SDL.dll file aside your simulator.exe.)Step-by-step instructions:
32 bit build (Strongly recommended)
64 bit build
Both
r8 - 26 Jul 2024 - 01:59:19 - MichaelGiacomelli
Copyright © by the contributing authors.
|