Building RetroArch: Difference between revisions
I finished updating the making information. |
mNo edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
This page contains instructions of building [[RetroArch]] from source. Most average users should use prebuilt binaries instead. | This page contains instructions of building [[RetroArch]] from source. Most average users should use prebuilt binaries instead. | ||
=Building on Windows= | ==Building on Windows== | ||
The recommended toolchain for building RetroArch on Windows is MinGW-w64 running inside the MSYS2 environment. Installers for MSYS2 can be found at [https://msys2.github.io/ msys2.github.io]. Other toolchains like TDM-GCC or Visual Studio can work, but this guide will only cover MSYS2. | The recommended toolchain for building RetroArch on Windows is MinGW-w64 running inside the MSYS2 environment. Installers for MSYS2 can be found at [https://msys2.github.io/ msys2.github.io]. Other toolchains like TDM-GCC or Visual Studio can work, but this guide will only cover MSYS2. | ||
| Line 24: | Line 24: | ||
The following commands will install everything you need to build RetroArch in your MSYS2 environment. | The following commands will install everything you need to build RetroArch in your MSYS2 environment. | ||
*For 32 bit builds run: | *For 32-bit builds run: | ||
pacman -S --noconfirm --needed git make mingw-w64-i686-toolchain mingw-w64-i686-pkg-config mingw-w64-i686-SDL2 mingw-w64-i686-libxml2 mingw-w64-i686-freetype mingw-w64-i686 python3 mingw-w64-i686-ffmpeg | pacman -S --noconfirm --needed git make mingw-w64-i686-toolchain mingw-w64-i686-pkg-config mingw-w64-i686-SDL2 mingw-w64-i686-libxml2 mingw-w64-i686-freetype mingw-w64-i686 python3 mingw-w64-i686-ffmpeg | ||
*For 64 bit builds: | *For 64-bit builds: | ||
pacman -S --noconfirm --needed git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2 mingw-w64-x86_64-freetype mingw-w64-x86_64-python3 mingw-w64-x86_64-ffmpeg | pacman -S --noconfirm --needed git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2 mingw-w64-x86_64-freetype mingw-w64-x86_64-python3 mingw-w64-x86_64-ffmpeg | ||
| Line 42: | Line 42: | ||
pacman -U --noconfirm mingw-w64-x86_64-nvidia-cg-toolkit-3.1-2-any.pkg.tar.xz | pacman -U --noconfirm mingw-w64-x86_64-nvidia-cg-toolkit-3.1-2-any.pkg.tar.xz | ||
After installing the packages, close the MSYS2 shell and open either MinGW-w64 Win64 Shell for 64 bit builds or MinGW-w64 Win32 Shell if you want to build for 32 bit systems. Both should be available in your Start Menu. | After installing the packages, close the MSYS2 shell and open either MinGW-w64 Win64 Shell for 64-bit builds or MinGW-w64 Win32 Shell if you want to build for 32-bit systems. Both should be available in your Start Menu. | ||
==Cloning RetroArch and libretro repositories== | ==Cloning RetroArch and libretro repositories== | ||