0. 环境
i7 ubuntu18
1. 准备源码
到https://github.com/mgba-emu/mgba/releases下载源码
mgba-0.10.2.tar.gz
tar -zvxf mgba-0.10.2.tar.gz
cd mgba=0.10.2
2. 编译
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/xxjianvm/work/mgba-0.10.2/install ..
make -j8
make install
3. 问题集锦
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. 运行测试
4.1 未带qt
./mgba feng_yin_zhi_jian.gba
4.2 带qt
./mgba-qt