0. 环境
i7 ubuntu22
1. 获取源码
浏览器打开https://github.com/TASEmulators/desmume/releases,下载源码压缩包。
解压
tar -zvxf desmume-release_0_9_13.tar.gz
cd desmume-release_0_9_13
2. 源码编译
2.1 build GTK+2 or SDL2 frontend with autotools
配置
cd desmume/src/frontend/posix
./autogen.sh
./configure
缺少libpcap
sudo apt-get install libpcap-dev
编译
make -j8
2.2 meson
配置
cd src/frontend/posix
meson build --buildtype=release
缺少gtk+-3.0
sudo apt-get install libgtk-3-dev
sudo apt-get install build-essential pkg-config devhelp glade libglade2-dev
pkg-config --modversion gtk+-3.0
编译
ninja -C build
3. 运行测试
请自行准备游戏ROM。
cd build/gtk
./desmume