<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Building_Amiberry_with_SDL2</id>
	<title>Building Amiberry with SDL2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Building_Amiberry_with_SDL2"/>
	<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Building_Amiberry_with_SDL2&amp;action=history"/>
	<updated>2026-04-08T12:26:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://wiki.jayscafe.net/index.php?title=Building_Amiberry_with_SDL2&amp;diff=30&amp;oldid=prev</id>
		<title>Jayctheriot: Created page with &quot;Compile SDL2 from source Dimitris Panokostas edited this page on Feb 11 · 12 revisions Pages 25 Getting Started      First Installation     Kickstart ROMs (BIOS)     Enabling...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Building_Amiberry_with_SDL2&amp;diff=30&amp;oldid=prev"/>
		<updated>2018-06-09T04:56:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Compile SDL2 from source Dimitris Panokostas edited this page on Feb 11 · 12 revisions Pages 25 Getting Started      First Installation     Kickstart ROMs (BIOS)     Enabling...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Compile SDL2 from source&lt;br /&gt;
Dimitris Panokostas edited this page on Feb 11 · 12 revisions&lt;br /&gt;
Pages 25&lt;br /&gt;
Getting Started&lt;br /&gt;
&lt;br /&gt;
    First Installation&lt;br /&gt;
    Kickstart ROMs (BIOS)&lt;br /&gt;
    Enabling IPF support (Optional)&lt;br /&gt;
    F.A.Q.&lt;br /&gt;
    Version History&lt;br /&gt;
&lt;br /&gt;
Compiling from source&lt;br /&gt;
&lt;br /&gt;
    Compile Development Branch&lt;br /&gt;
    Compile SDL2&lt;br /&gt;
    Compile for Tinker board&lt;br /&gt;
&lt;br /&gt;
Loading Amiga Programs&lt;br /&gt;
&lt;br /&gt;
    Loading from Disks (ADF)&lt;br /&gt;
    Using HardDrives (HDF and Folders)&lt;br /&gt;
    WHDLoad auto-booting&lt;br /&gt;
    WHDBooter with RetroPie&lt;br /&gt;
    WHDBooter F.A.Q.&lt;br /&gt;
&lt;br /&gt;
Inputs &amp;amp; Controls&lt;br /&gt;
&lt;br /&gt;
    Setting up Input Controllers&lt;br /&gt;
    Setting up Keyboard Controllers&lt;br /&gt;
    RetroArch Commands&lt;br /&gt;
    Customising Controls&lt;br /&gt;
&lt;br /&gt;
Clone this wiki locally&lt;br /&gt;
&lt;br /&gt;
If you want to run the SDL2 version on the Raspberry Pi, you currently need to compile SDL2 from source in order to get support for launching full screen applications from the console. The version bundled with Stretch is not compiled with support for the &amp;quot;kmsdrm&amp;quot; backend, so it only works under X11.&lt;br /&gt;
&lt;br /&gt;
Important note: It's recommended that you use the &amp;quot;fkms&amp;quot; video driver on the RPI, to be able to use both the &amp;quot;KMSDRM&amp;quot; backend and &amp;quot;Dispmanx&amp;quot; at the same time. If you're still using the Legacy driver, it's probably better to stick to the SDL1 + Dispmanx version. If you have the full KMS Driver activated instead, then you cannot use any Dispmanx target since that is disabled with that video driver automatically.&lt;br /&gt;
Follow these steps to download, compile and install SDL2 from source:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
(Minimal requirements)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libfreetype6-dev libgl1-mesa-dev libgles2-mesa-dev libgbm-dev libudev-dev libasound2-dev liblzma-dev git build-essential&lt;br /&gt;
&lt;br /&gt;
(...or for the full list of requirements, also add the below)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install gir1.2-ibus-1.0 libdbus-1-dev libegl1-mesa-dev libibus-1.0-5 libibus-1.0-dev libice-dev libsm-dev libsndio-dev libwayland-bin libwayland-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev x11proto-randr-dev x11proto-scrnsaver-dev x11proto-video-dev x11proto-xinerama-dev&lt;br /&gt;
&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
wget https://www.libsdl.org/release/SDL2-2.0.7.tar.gz&lt;br /&gt;
&lt;br /&gt;
tar zxvf SDL2-2.0.7.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd SDL2-2.0.7&lt;br /&gt;
&lt;br /&gt;
./configure --disable-video-rpi --enable-video-kmsdrm; make -j $(nproc --all); sudo make install&lt;br /&gt;
Next, we need SDL2_image:&lt;br /&gt;
&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
tar zxvf SDL2_image-2.0.2.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd SDL2_image-2.0.2 &amp;amp;&amp;amp; mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
&lt;br /&gt;
../configure&lt;br /&gt;
&lt;br /&gt;
make -j $(nproc --all)&lt;br /&gt;
&lt;br /&gt;
sudo make install&lt;br /&gt;
...and SDL2_ttf:&lt;br /&gt;
&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz&lt;br /&gt;
&lt;br /&gt;
tar zxvf SDL2_ttf-2.0.14.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd SDL2_ttf-2.0.14 &amp;amp;&amp;amp; mkdir build &amp;amp;&amp;amp; cd build&lt;br /&gt;
&lt;br /&gt;
../configure&lt;br /&gt;
&lt;br /&gt;
make -j $(nproc --all)&lt;br /&gt;
&lt;br /&gt;
sudo make install&lt;br /&gt;
&lt;br /&gt;
Amiga emulator for the Raspberry Pi and other ARM SoC&lt;br /&gt;
&lt;br /&gt;
Warning: this branch is where Development takes place. It may be unstable, crash, not work from time to time - If you're looking for the latest &amp;quot;stable&amp;quot; version, please use the master branch for now.&lt;br /&gt;
Compiling SDL2&lt;br /&gt;
&lt;br /&gt;
If you want to run the SDL2 version, you currently need to compile SDL2 from source on the Raspberry Pi, to get support for launching full screen applications from the console. The version bundled with Stretch is not compiled with support for the &amp;quot;rpi&amp;quot; driver, so it only works under X11.&lt;br /&gt;
&lt;br /&gt;
Follow these steps to download, compile and install SDL2 from source:&lt;br /&gt;
&lt;br /&gt;
https://github.com/midwan/amiberry/wiki/Compile-SDL2-from-source&lt;br /&gt;
&lt;br /&gt;
With SDL2 installed, you can proceed to install Amiberry as follows:&lt;br /&gt;
Pre-requisites&lt;br /&gt;
&lt;br /&gt;
Install the following packages:&lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install libxml2-dev libflac-dev libmpg123-dev libpng-dev libmpeg2-4-dev&lt;br /&gt;
&lt;br /&gt;
Compiling Amiberry&lt;br /&gt;
&lt;br /&gt;
Clone this repo:&lt;br /&gt;
&lt;br /&gt;
  cd ~&lt;br /&gt;
  git clone https://github.com/midwan/amiberry&lt;br /&gt;
  cd amiberry&lt;br /&gt;
&lt;br /&gt;
The default platform is currently &amp;quot;rpi3&amp;quot;, so for Raspberry Pi 3 (SDL1) you can just type:&lt;br /&gt;
&lt;br /&gt;
  make all&lt;br /&gt;
&lt;br /&gt;
For Raspberry Pi 2 (SDL1):&lt;br /&gt;
&lt;br /&gt;
  make all PLATFORM=rpi2&lt;br /&gt;
&lt;br /&gt;
For Raspberry Pi 1/Zero (SDL1):&lt;br /&gt;
&lt;br /&gt;
  make all PLATFORM=rpi1&lt;br /&gt;
&lt;br /&gt;
And for the SDL2 versions, you can use the following:&lt;br /&gt;
&lt;br /&gt;
  make all PLATFORM=rpi3-sdl2&lt;br /&gt;
&lt;br /&gt;
Or for Raspberry Pi 2 (SDL2):&lt;br /&gt;
&lt;br /&gt;
  make all PLATFORM=rpi2-sdl2&lt;br /&gt;
&lt;br /&gt;
Or for Raspberry Pi 1/Zero (SDL2):&lt;br /&gt;
&lt;br /&gt;
  make all PLATFORM=rpi1-sdl2&lt;br /&gt;
&lt;br /&gt;
You can check the Makefile for a full list of supported platforms!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enabling IPF support&lt;br /&gt;
Dimitris Panokostas edited this page on Feb 11 · 1 revision &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Amiberry provides support for IPF images since v2.13. In order to do this, Amiberry needs an external library (capsimg).&lt;br /&gt;
&lt;br /&gt;
Follow these steps to build that library:&lt;br /&gt;
&lt;br /&gt;
Go in the directory where you have cloned the amiberry sources, then type:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install autoconf (if you don't have it already)&lt;br /&gt;
&lt;br /&gt;
git submodule update --init (this will populate and update the capsimg submodule included)&lt;br /&gt;
&lt;br /&gt;
cd capsimg&lt;br /&gt;
&lt;br /&gt;
./bootstrap&lt;br /&gt;
&lt;br /&gt;
./configure&lt;br /&gt;
&lt;br /&gt;
make -j 4&lt;br /&gt;
&lt;br /&gt;
If all went well, you should have a library file compiled in the current directory:&lt;br /&gt;
&lt;br /&gt;
capsimg.so&lt;br /&gt;
&lt;br /&gt;
Copy or move the file above into the same directory your amiberry binary is located, so it can open it on startup.&lt;br /&gt;
&lt;br /&gt;
E.g. if you're running RetroPie: sudo cp capsimg.so /opt/retropie/emulators/amiberry/&lt;br /&gt;
&lt;br /&gt;
Start the emulator and try to load IPF images as disks (either from the Quickstart or the Floppy panels).&lt;/div&gt;</summary>
		<author><name>Jayctheriot</name></author>
	</entry>
</feed>