|
|
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 10Install Windows Subsystem for UnixEnable developer mode and then check the Windows Subsystem for Unix option. More instructions: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10Install Ubuntu from the Windows StoreOpen the Windows store, search for Ubuntu, and then install it or a similar linux distribution. Choose a username and password when promptedInstall 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 10-30 minutes depending on how fast your computer is. Disabling Windows defender will speed up compiling if you are impatient.Compile RockboxFind 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 in a subfolder of: %userprofile%\AppData\Local\Packages In this folder will be a CanonicalGroupLimited folder containing your local Ubuntu file system. By default rockbox will have been checked out to rootfs\home\USERNAME\rockbox\ where USERNAME is the name you selected above. Note that while Windows can read these folders, editing files in Windows software may corrupt them, so do not write to the Ubuntu file system from Windows. More information is available here: https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/ -- MichaelGiacomelli - 08 Jul 2018Build SimulatorTo 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:
r7 - 02 Apr 2021 - 20:46:07 - UnknownUser
Copyright © by the contributing authors.
|