Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PCSX2 for Archlinux
#1
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


pcsx2 - 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;

pcsx2-git - 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

Excl ATTENTION: 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. Wink

1. Create a build directory at your home folder.
Code:
$ mkdir ~/build

2. Enter build folder
Code:
$ cd ~/build

3. Download pcsx2-git source tarball from AUR. This could be done, for example, with "yaourt -G" or "wget".
Code:
$ yaourt -G pcsx2-git
==> Download pcsx2-git sources
x pcsx2-git.install
x PKGBUILD

or
Code:
$ wget https://aur.archlinux.org/packages/pc/pcsx2-git/pcsx2-git.tar.gz
tar xvf pcsx2-git.tar.gz

4. 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:
    Code:
    $ 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

5. 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:
    Code:
    $ pacman -Q glew libaio libcanberra libjpeg-turbo nvidia-cg-toolkit portaudio soundtouch wxgtk2.8
  • For 64-Bit users:
    Code:
    $ 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:
Code:
$ yaourt -S lib32-soundtouch lib32-wxgtk2.8

6. After all dependencies above are installed, enter in pcsx2-git folder in your build directory
Code:
$ cd pcsx2-git

7. Compile PCSX2. This step might take several minutes be done.
Code:
$ makepkg
  • 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

8. Now you can install pcsx2-git, using "-U" to install package from file (root permission required).
Code:
$ ls
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.

Archlinux user and need help with PCSX2? Consider asking it in the Archlinux specific forum at http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux Tongue
Reply

Sponsored links

#2
nice jobs :d. A minor typoe, there are some redundancy on step 5.
Reply
#3
(09-06-2011, 12:11 PM)gregory Wrote: nice jobs :d. A minor typoe, there are some redundancy on step 5.

Step 5 edited, thanks!

Archlinux user and need help with PCSX2? Consider asking it in the Archlinux specific forum at http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux Tongue
Reply
#4
There's a few issues with the current builds available. As you've noted elsewhere, the official 0.9.8 release doesn't work very well. However, the pcsx2-svn package is (currently) installing a broken zzogl plugin that causes a segfault on loading a game (throws a BadMatch X error: serial 29 error_code 8 request_code 136 minor_code 5).

Of course, this may be related to my setup. When I run your patched version of 0.9.8, I get a similarly defective zzogl plugin, though in that case its because it can't load my direct renderer. I know for a fact direct rendering works because the output of glxinfo tells me that I do in fact have direct rendering, and because I've written opengl code that utilizes it. So it seems like that version of the plugin is loading the wrong gl libraries. In fact, the extension that it claims is missing (GLX_EXT_framebuffer_object) is definitely available.

For the record, my video card is an ATI/AMD 5850, and I'm using the catalyst drivers.

Let me know if you'd like any other information. I'm not sure if this a packaging issue (or current svn) issue, and I just need to wait for a fix or if I need to adjust my setup. I suspect that I need to expose the libgl binaries provided by catalyst to pcsx2, but because of the 64bit -> 32bit issues, I'm not sure how to proceed.

That said, I can run the games via the software renderer. I'm just wholly disappointed by the performance, and I'm hoping the opengl plugin is faster. My machine should be more than capable of handling this emulator, though I'd hate to have to install windows just to check.

System specs:
Phenom II x6
12gb ram
ATI 5850
Reply
#5
I'm a little out of time right now, but I have some thoughts on this subject:

1- Yes, your hardware is more than enough.

2- I suppose you have installed catalyst-utils. Do you have lib32-catalyst-utils as well? Make sure you don't have lib32-libgl or lib32-nvidia-utils installed.

3- Run `ldd /usr/lib32/pcsx2/libzzogl-?.?.?.so` and look for missing library.

4- Run `pcsx2` from the command line and put the output (including the aforementioned error) in a text file and attach to this thread. Maybe we can find more from that.

Verify the above topics and let me know,

Cheers

UPDATE: Just came across with the following phrase in ATI Catalyst Archwiki page:
Quote:For x86_64 users [catalyst] provides lib32-catalyst-utils package needed to run 32-bit opengl applications and wine games.

Archlinux user and need help with PCSX2? Consider asking it in the Archlinux specific forum at http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux Tongue
Reply
#6
I also have some trouble related to GL_EXT_framebuffer_object - I've got a NVidia GeForce 7600 GT, and when I run pcsx2, zzogl crashes with:

Code:
ZZogl: ERROR: Need GL_EXT_framebuffer_object for multiple render targets

I've already started a thread here: http://forums.pcsx2.net/Thread-ZZogl-ERR...er-targets, sorry.

edit: Also, apparently, pcsx2-svn doesn't build the binaries, just these files (this is at the end of output of `yaourt -S pcsx2-svn`):

Code:
-- Install configuration: "Debug"                                                                                                                                                
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/pcsx2/GameIndex.dbf
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/applications/pcsx2.desktop
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/pixmaps/pcsx2.xpm
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/doc/pcsx2/PCSX2_FAQ_0.9.8.pdf
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/doc/pcsx2/PCSX2_Readme_0.9.8.pdf
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/man/man1/pcsx2.man
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/cs_CZ/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/pl_PL/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/hu_HU/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/es_ES/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/tr_TR/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/it_IT/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/pt_BR/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/de_DE/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/zh_CN/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/ru_RU/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/zh_TW/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/ja_JP/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/sv_SE/LC_MESSAGES/pcsx2_Iconized.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/cs_CZ/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/pl_PL/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/hu_HU/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/es_ES/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/tr_TR/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/it_IT/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/pt_BR/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/de_DE/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/zh_CN/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/ru_RU/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/zh_TW/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/ja_JP/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/share/locale/sv_SE/LC_MESSAGES/pcsx2_Main.mo
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libCDVDiso.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libCDVDlinuz.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libCDVDnull.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libdev9null-0.5.0.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libFWnull-0.7.0.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libGSdx-0.1.16.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libGSnull.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libonepad-1.1.0.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libPADnull.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libSPU2null.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libUSBnull-0.7.0.so
-- Installing: /tmp/yaourt-tmp-theon/aur-pcsx2-svn/pkg/usr/lib/pcsx2/libzerospu2.so
Reply
#7
@Theon144: Ok, let's discuss your issue in this thread you started.


UPDATE: Fixed in 5096-1. Any problem, please let me know.

Archlinux user and need help with PCSX2? Consider asking it in the Archlinux specific forum at http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux Tongue
Reply
#8
I'm having an annoying trouble. I've installed pcsx2 via yaourt. Everything done, but, when I start a game, my X restarts. It's the same that happens on VLC when I use other render than opengl.

I think it's a issue with ati drivers. I'm using a hd5670 in crossfire. In the command line, nothing are shown of issues, but my X restarts. Just try start a game, restarts X
Reply
#9
(03-07-2012, 03:06 AM)ilkyest Wrote: I'm having an annoying trouble. I've installed pcsx2 via yaourt. Everything done, but, when I start a game, my X restarts. It's the same that happens on VLC when I use other render than opengl.

I think it's a issue with ati drivers. I'm using a hd5670 in crossfire. In the command line, nothing are shown of issues, but my X restarts. Just try start a game, restarts X

I suggest that you read log files: /var/log/messages, /var/log/boot, /var/log/Xorg.0.log and PCSX2 specific logs at $HOME/.config/PCSX2/logs/ (mainly 'emulog.txt')

Archlinux user and need help with PCSX2? Consider asking it in the Archlinux specific forum at http://forums.pcsx2.net/Thread-PCSX2-for-Archlinux Tongue
Reply
#10
I even have a problem with my new installed PCSX2:

Setup complete, but when I try to launch the iso, I get the following error-message:

Code:
(pcsx2:10984): Pango-CRITICAL **: pango_layout_set_width: assertion `layout != NULL' failed

(pcsx2:10984): Pango-CRITICAL **: pango_layout_get_extents: assertion `layout != NULL' failed

(pcsx2:10984): Pango-CRITICAL **: pango_layout_get_line_count: assertion `layout != NULL' failed
Floating point exception


Edit: Oh forgot my system specs Laugh

2500k
8GB Ram
GTX 560 ti
Do you have any clue, what`s going on here, or what I could try to fix it?

Oh I`m so sorry after a reboot it`s working fine Smile

Edit: Ok now I get other errors, but I think I could eliminate them
Reply




Users browsing this thread: 1 Guest(s)