Update README.md

This commit is contained in:
Dimitris Panokostas 2017-03-31 15:23:30 +02:00 committed by GitHub
parent d1f5c51f45
commit 2c8c1d2b49

View file

@ -30,49 +30,19 @@ Stuff here will most probably break at some places. Don't bother reporting bugs!
- Optimizations for Pi 3 added - Optimizations for Pi 3 added
- New target platform: Pi 3 - New target platform: Pi 3
# Compiling from source # Compiling SDL2
To get full screen SDL2 support from the console on the Raspberry Pi, you will have to compile SDL2 from source. That is because the OpenGL driver is on higher priority than the OpenGL ES2 one on the Pi, and the OpenGL driver requires X11. If you don't mind that and you want to run the emulator under X11 only, then you can skip this step and install SDL2 from the package manager instead. Otherwise, you can just copy paste the following commands in your terminal. Luckily, the RetroPie project has a handy script that takes care of downloading, compiling and installing SDL2 for us. This currently only handles SDL2, so we still need SDL2_ttf and SDL2_image (see below).
First you will need to get all the necessary tools and requirements for SDL2: Run these to clone the RetroPie-Setup repo, then run the relevant script:
sudo apt-get update && sudo apt-get upgrade git clone https://github.com/RetroPie/RetroPie-Setup
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libtiff5-dev libwebp-dev automake libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev cd RetroPie-Setup
sudo ./retropie_packages.sh sdl2
Then download the SDL2 source tarball (currently on v2.0.5): Next, we need SDL2_image and SDL2_ttf:
cd ~ sudo apt-get install libsdl2-image-dev libsdl2-ttf-dev
wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz
tar zxvf SDL2-2.0.5.tar.gz
cd SDL2-2.0.5 && mkdir build && cd build
Next, configure SDL2 to disable OpenGL, in order to be able to open screens directly from the console using OpenGL ES2 instead:
../configure --disable-pulseaudio --disable-esd --disable-video-opengl
Compile and install SDL2:
make -j 4 && sudo make install
Next, we need SDL2_image (currently v2.0.1):
cd ~
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz
tar zxvf SDL2_image-2.0.1.tar.gz
cd SDL2_image-2.0.1 && mkdir build && cd build
../configure
make -j 4
sudo make install
Next, SDL2_ttf (currently v2.0.14):
cd ~
wget https://libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
tar zxvf SDL2_ttf-2.0.14.tar.gz
cd SDL2_ttf-2.0.14 && mkdir build && cd build
../configure
make -j 4
sudo make install
With SDL2 installed, you can proceed to install Amiberry as follows: With SDL2 installed, you can proceed to install Amiberry as follows:
Install the following packages: Install the following packages: