0. Environment
i5 ubuntu22 (when installing the system, choose to automatically go online to download third-party driver software, mainly the graphics card driver opengl)
1. apt installation dependencies
1.1 SDL2
sudo apt install libsdl2-dev
1.2 OpenSSL (optional)
sudo apt install libssl-dev
1.3 Qt 6.2+
sudo apt install qt6-base-dev qt6-base-private-dev qt6-multimedia-dev
sudo apt install qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools
sudo apt install libgl-dev
1.4 PORTAUDIO
sudo apt install libasound-dev
1.5 XORG
sudo apt install xorg-dev libx11-dev libxext-dev
1.6 JACK Audio Connection Kit
sudo apt install jackd
1.7 PipeWire
sudo apt install libpipewire-0.3-dev
1.8 FFMPEG 4.0+
sudo apt install ffmpeg libswscale-dev libavformat-dev libavcodec-dev libavdevice-dev
1.9 sndio
sudo apt install libsndio-dev
(Skip) 1.10 Gnome esound
(Need to compile and install https://download.gnome.org/sources/esound)
wget https://download.gnome.org/sources/esound/0.2/esound-0.2.41.tar.gz
tar -zvxf esound-0.2 .41.tar.gz
1.11 GCC 10.0+.
sudo apt install build-essential
1.12 CMake 3.20+
sudo apt install cmake
1.13 Integration 1.1-1.12:
sudo apt install aptitude
sudo aptitude install libsdl2-dev libssl-dev
sudo apt install qt6-base-dev qt6-base-private-dev qt6-multimedia-dev libasound-dev xorg-dev libx11-dev libxext-dev jackd libpipewire-0.3-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libavdevice-dev libsndio-dev build-essential cmake
2. Compile
2.1 Get source code
sudo apt install git
git clone --recursive https://github.com/citra-emu/citra
cd citra
git submodule update --init --recursive
2.2 Compilation
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
2.3 Running tests
cd bin/Release
# SDL
cd build/bin/
./citra
# Qt
cd build/bin/
./citra-qt
# Dedicated room
cd build/bin/
./citra-room
3. Question:
3.1 Segmentation fault (core dumped) occurs when installing vmware-tools
First delete the existing VMware
cd vmware-tools-distrib/bin (that is, go to the root directory of your installation file)
Then run
sudo ./vmware-uninstall-tools.pl (run the vmware-uninstall-tools.pl file to remove existing VMware)
Finally open the terminal and enter
sudo apt-get install open-vm-tools open-vm-tools-desktop
3.2 安装SDL2出现 E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
sudo apt install aptitude
sudo aptitude install libsdl2-dev libssl-dev
3.3 git clone --recursive error
cd citra
git submodule update --init --recursive
git submodule update --recursive
3.4 Required program `glslangValidator` not found.
mkdir tmp && cd tmp
wget https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-linux-Release.zip
unzip glslang-master-linux-Release.zip
sudo mv bin/* /usr/local/bin/
sudo mv lib/* /usr/local/lib/
sudo mv include/* /usr/local/include/
3.5 fdk-aac/aacdecoder_lib.h: No such file or directory
wget https://downloads.sourceforge.net/opencore-amr/fdk-aac-2.0.1.tar.gz
tar -zxvf fdk-aac-2.0.1.tar.gz
cd fdk-aac-2.0.1/
autoreconf -fiv
sudo ./configure --prefix=/usr --disable-shared
3.5.1 autoreconf
sudo apt install autoreconf
3.5.2 Can't exec "libtoolize
sudo apt install aptitude
sudo aptitude install libtool
3.5.3 automake-1.15 command not found
sudo ln -s /usr/bin/automake-1.16 /usr/bin/automake-1.15
编译
sudo make -j4
sudo make install
3.6 Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Virtual machine graphics card driver support is incomplete. Need to switch from opengl to software.
4. Compress backup
tar -zcvf citra_git_src_20230715.tar.gz citra/
5. Run the test
5.1 Under the virtual machine
Using SOFTWARE mode, it is basically unplayable, 2 FPS.
5.2 i5 ubuntu22 physical machine
The OPENGL method works.