Difference between revisions of "SDLUI2 on RPi 3B+"

From Jay's Cafe' Wiki
m
m
 
(9 intermediate revisions by the same user not shown)
Line 4: Line 4:
<div style="font-family:courier;word-wrap: break-word;">apt install byobu -y</div>
<div style="font-family:courier;word-wrap: break-word;">apt install byobu -y</div>
<div style="font-family:courier;word-wrap: break-word;">byobu-enable -y</div>
<div style="font-family:courier;word-wrap: break-word;">byobu-enable -y</div>
<div style="font-family:courier;word-wrap: break-word;">exit</div>
<div style="font-family:courier;word-wrap: break-word;">byobu</div>
<div style="font-family:courier;word-wrap: break-word;">byobu</div>
<div style="font-family:courier;word-wrap: break-word;">sudo -i</div>
'Prerequisites:
'Prerequisites:
<div style="font-family:courier;word-wrap: break-word;">sudo apt-get install libfreetype6-dev libgl1-mesa-dev libgles2-mesa-dev libgbm-dev libudev-dev libasound2-dev \<br>
<div style="font-family:courier;word-wrap: break-word;">sudo apt-get install libfreetype6-dev libgl1-mesa-dev libgles2-mesa-dev libgbm-dev libudev-dev libasound2-dev \<br>
Line 10: Line 12:
libice-dev libsm-dev libsndio-dev libwayland-bin libwayland-dev libxi-dev libxinerama-dev libxkbcommon-dev \<br>
libice-dev libsm-dev libsndio-dev libwayland-bin libwayland-dev libxi-dev libxinerama-dev libxkbcommon-dev \<br>
libxrandr-dev libxss-dev libxt-dev libxv-dev x11proto-randr-dev x11proto-scrnsaver-dev x11proto-video-dev \<br>
libxrandr-dev libxss-dev libxt-dev libxv-dev x11proto-randr-dev x11proto-scrnsaver-dev x11proto-video-dev \<br>
x11proto-xinerama-dev nodm byobu openbox -y  
x11proto-xinerama-dev nodm byobu openbox subversion automake autoconf cc65 xa65 flex bison dos2unix  -y  
</div>
</div>
<pre>
cd ~
wget https://www.libsdl.org/release/SDL2-2.0.14.tar.gz
tar zxvf SDL2-2.0.14.tar.gz
cd SDL2-2.0.14
./configure --disable-video-rpi --enable-video-kmsdrm
make -j $(nproc --all); sudo make install
cd ~
wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5.tar.gz
tar zxvf SDL2_image-2.0.5.tar.gz
cd SDL2_image-2.0.5 && mkdir build && cd build
../configure
make -j $(nproc --all)
make install
cd ~
wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz
tar zxvf SDL2_ttf-2.0.15.tar.gz
cd SDL2_ttf-2.0.15 && mkdir build && cd build
../configure
make -j $(nproc --all)
make install
</pre>
'Now on to VICE
<pre>
svn checkout https://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
cd vice-emu-code/vice/
./autogen.sh
cd build
../configure --enable-realdevice --enable-sdlui2 --enable-fastsid --enable-html-docs --disable-pdf-docs
make -j $(nproc --all)
make install
</pre>

Latest revision as of 18:22, 4 February 2021

'Install a few tools:

sudo -i
apt update && apt full-upgrade -y
apt install byobu -y
byobu-enable -y
exit
byobu
sudo -i

'Prerequisites:

sudo apt-get install libfreetype6-dev libgl1-mesa-dev libgles2-mesa-dev libgbm-dev libudev-dev libasound2-dev \

liblzma-dev git build-essential 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 nodm byobu openbox subversion automake autoconf cc65 xa65 flex bison dos2unix -y

cd ~

wget https://www.libsdl.org/release/SDL2-2.0.14.tar.gz

tar zxvf SDL2-2.0.14.tar.gz

cd SDL2-2.0.14

./configure --disable-video-rpi --enable-video-kmsdrm

make -j $(nproc --all); sudo make install

cd ~

wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5.tar.gz

tar zxvf SDL2_image-2.0.5.tar.gz

cd SDL2_image-2.0.5 && mkdir build && cd build

../configure

make -j $(nproc --all)

make install
cd ~

wget https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz

tar zxvf SDL2_ttf-2.0.15.tar.gz

cd SDL2_ttf-2.0.15 && mkdir build && cd build

../configure

make -j $(nproc --all)

make install

'Now on to VICE

svn checkout https://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
cd vice-emu-code/vice/
./autogen.sh
cd build
../configure --enable-realdevice --enable-sdlui2 --enable-fastsid --enable-html-docs --disable-pdf-docs
make -j $(nproc --all)
make install