Running GBA emulator mgba under x86 architecture ubuntu18

0. Environment


i7 ubuntu18 virtual machine

1. Prepare source code


Go to https://github.com/mgba-emu/mgba/releases to download the source code
mgba-0.10.2.tar.gz

tar -zvxf mgba-0.10.2.tar.gz
cd mgba=0.10.2


2. Compile

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/xxjianvm/work/mgba-0.10.2/install ..
make -j8
make install

3. Question collection


error1: Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)

sudo apt install libsdl-dev

error2: qt5 not found

sudo apt install qt5*
sudo apt install qttools5-dev
sudo apt install libqt5multimedia* qtmultimedia5-*

error3:Could NOT find SDL2

sudo apt-get install -y libsdl2-2.0 && \
sudo apt-get install -y libsdl2-dev && \
sudo apt-get install -y libsdl2-mixer-dev && \
sudo apt-get install -y libsdl2-image-dev && \
sudo apt-get install -y libsdl2-ttf-dev && \
sudo apt-get install -y libsdl2-gfx-dev

4. Run the test

4.1 Without qt
 

./mgba feng_yin_zhi_jian.gba

4.2 With qt

./mgba-qt

Guess you like

Origin blog.csdn.net/qq_27158179/article/details/131712169