Hi Archlinux users!
This thread is for you! Here you can get information, support, patches, scripts, feedbacks etc. and provide as well!
PCSX2 packages available for Archlinux
- Provides latest official stable release of PCSX2 in Archlinux official repositories, currently in version 1.2.1; package provided in binary built by archlinux Trusted Users
- Provides latest development revision from GIT repository. This package auto-updates its version every time you install it, without any further edit in the package. Useful for those who want to be up-to-date with PCSX2 Dev Team changes in source code
NOTE: The use of AUR Helper is recommended
, mainly for Arch64 users because some dependencies and the pcsx2-git package itself are available in the Archlinux User Repository (AUR)
How to build pcsx2-git locally
The procedure might be slightly out-of-date. Please view the PKGBUILD
of pcsx2-git to see latest changes.
This topic will show how you can have all pcsx2-git sources set in your computer for a local build, without having to download it from PCSX2's Github repository all over again each time you want to rebuild it. (e.g. in case of a failure in build)
Please notice that all this procedure of building packages does not need to be done as root and should not
! All this topic will be done in user's home folder.
For each step below, I'll give the description of the action and then I'll show at least one example of command. In some steps I'll use the AUR Helper yaourt
, but you can always use the default package manager Pacman - except for downloading AUR packages.
Create a build directory at your home folder.
Enter build folder
Download pcsx2-git source tarball from AUR. This could be done, for example, with "yaourt -G" or "wget".
$ yaourt -G pcsx2-git
==> Download pcsx2-git sources
$ wget https://aur.archlinux.org/packages/pc/pcsx2-git/pcsx2-git.tar.gz
tar xvf pcsx2-git.tar.gz
Now, if this your first build/installation of pcsx2-git, you need to have some devel packages installed, to be able to compile packages.
- For 32-bit users:
$ pacman -S base-devel
- For 64-bit users, do as mentioned in Archwiki Arch64 page:
- have [multilib] repository enabled in /etc/pacman.conf
- gcc-multilib and its dependencies installed
PCSX2 dependencies must be installed before trying to build. Verify if you have all dependencies installed with "pacman -Q" (or yaourt -Q)
- Hint: Depedencies for pcsx2-git are listed in depends=() array in its PKGBUILD file.
- For 32-Bit users:
$ pacman -Q glew libaio libcanberra libjpeg-turbo nvidia-cg-toolkit portaudio soundtouch wxgtk2.8
- For 64-Bit users:
$ pacman -Q lib32-glew lib32-libaio lib32-libcanberra lib32-libjpeg-turbo lib32-nvidia-cg-toolkit lib32-portaudio lib32-soundtouch lib32-wxgtk2.8
If you don't have all of them installed, you must install now (root permission required). You can do this using the option "-S" - I advise to use an AUR Helper (e.g.: yaourt) for this task, as many packages might be from AUR. So, let's say you want to install lib32-wxgtk and lib32-soundtouch:
$ yaourt -S lib32-soundtouch lib32-wxgtk2.8
After all dependencies above are installed, enter in pcsx2-git folder in your build directory
Compile PCSX2. This step might take several minutes be done.
- Hint: you can add "-L" to "makepkg" create a log file, just in case you have error during the compilation.
- Hint 2: if you built once, but want to rebuild, you can use "-f" to force rebuilding and overwrite a compiled package.
- Hint 3: use "-s" for installing dependencies right before building the package
Now you can install pcsx2-git, using "-U" to install package from file (root permission required).
pcsx2-git-1.2.2.r5131.70d1719-1-x86_64.pkg.tar.xz pkg/ src/ pcsx2-git.install PKGBUILD
$ yaourt -U pcsx2-git-1.2.2.r5131.70d1719-1-x86_64.pkg.tar.xz
Now you can run 'pcsx2' to test your local build.