Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PCSX2 for Fedora
YAPB (Yet Another PCSX2 Build). Compiled on Sept 20th 2016, build 1.5+git.b00ae97. This time I was able to compile it properly after mucking around with the SPEC file for a hour or so. By 'properly' I mean without a 32bit VM. My SPEC file is ugly as hell but worked. I would appreciate it is someone with way more SPEC file experience can look at it and suggest some edits to make it a little more pretty. Or at least compliant maybe?

Anyway, Here is build 1.5+git.b00ae97 for Fedora 24. I tested it on my system and it worked but your mileage may vary. Make sure you unzip it before installation.


.zip   pcsx2-1.5+git.b00ae97-1.fc24.x86_64.rpm.zip (Size: 3,4 MB / Downloads: 57)

and here is my janky SPEC file. Again, make sure you unzip it.


.zip   pcsx2.spec.zip (Size: 1,18 KB / Downloads: 31)

Code:
%define _major_version 1.5
%define _buildno b00ae97
%define debug_package %{nil}

Name:           pcsx2
Version:        %{_major_version}+git.%{_buildno}
Release:        1%{?dist}
Summary:        A Sony Playstation 2 Emulator
License:        GPLv3
Group:          Applications/Emulators
Url:            http://www.pcsx2.net/
Source0:        %{name}-%{_major_version}-%{_buildno}.tar.gz
#BuildArch:      i686

#BuildRequires: alsa-lib-devel.i686
#BuildRequires: bzip2-libs.i686
#BuildRequires: libjpeg-turbo-devel.i686
#BuildRequires: libGLEW.i686
#BuildRequires: glew-devel.i686
#BuildRequires: portaudio-devel.i686
#BuildRequires: SDL-devel.i686
#BuildRequires: libao-devel.i686
#BuildRequires: wxGTK3-devel.i686
#BuildRequires: soundtouch-devel.i686
#BuildRequires: sparsehash-devel.i686
#BuildRequires: libCg.i686
#BuildRequires: xz-devel.i686
#BuildRequires: zlib-devel.i686
#BuildRequires: lib-png.i686
#BuildRequires: mesa-libGL-devel.i686
#BuildRequires: libaio-devel.i686
#BuildRequires: glib2-devel.i686
#BuildRequires: libX11-devel.i686

%description
PCSX2 is an open source Playstation 2 emulator. It's purpose is to mimic the the PS2 hardware, using a combination MIPS CPU Interpreters, Recompilers and a Virtual Machine which manages hardware states and PS2 system memory. It requires a dump of a real Playstation 2 BIOS, which is not included.

%prep
%setup -q -n %{name}-%{_major_version}-%{_buildno}

%build
mkdir build
cd build
cmake CMakeLists.txt -DCMAKE_BUILD_PO=FALSE -DCMAKE_TOOLCHAIN_FILE="cmake/linux-compiler-i386-multilib.cmake" -DPACKAGE_MODE=TRUE -DCMAKE_INSTALL_PREFIX="/usr" -DPLUGIN_DIR="/usr/lib/pcsx2" -DGAMEINDEX_DIR="/usr/share/pcsx2" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_LIBRARIES="/usr/lib" -DwxWidgets_INCLUDE_DIRS="/usr/include" -DwxWidgets_CONFIG_EXECUTABLE="/usr/bin/wx-config-3.0" -DwxWidgets_wxrc_EXECUTABLE="/usr/bin/wxrc-3.0" -DGTK3_API=TRUE -DWX28_API=FALSE -DSDL_API=TRUE -DSDL2_API=FALSE -DCMAKE_BUILD_STRIP=TRUE ..
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
cd build
make install DESTDIR=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%attr(0755,root,root) /usr/bin/*
/usr/share/*
/usr/lib/*

%changelog
* Tue Sep 20 2016 Jeremy Wininger <jdwininger@gmail.com> - 1.5+git.b00ae97-1
- Updated to latest git version

* Thu Sep 15 2016 Jeremy Wininger <jdwininger@gmail.com> - 1.5+git.1a1d6ab-1
- Updated to latest git version

* Sat Jan 02 2016 Jeremy Wininger <jdwininger@gmail.com> - 1.3.1+git.6e34f18-1
- Updated to latest git version
Reply

Sponsored links

There doesn't seem to be a lot of interest in PCSX2 for Fedora but I went ahead and setup a dnf repository in it's honor. This should make getting it easier for anyone who does want to give it a swing. I'll try to keep the rpm inline with the git sources every so often. I can also build one at request if there is a new commit I haven't packaged. I'm subscribed to this thread so I'll get an email if anyone does.

The repository is housed on it's own hosting. I was going to host on COPR but they have some rules against emulators which require a BIOS to function. This clearly rules out PCSX2. 

If you want to enable the repository just issue the following command in a terminal. You'll also need to have the RPMFusion repository (http://rpmfusion.org) enabled as I use a couple of their packages to compile PCSX2. These rpm packages are also GPG signed.

Code:
sudo dnf config-manager --add-repo http://emurpms.net/repo/repodata/emurpms.repo

After the repository is added to dnf enter this command to install it. It should pull in PCSX2 and it's dependencies.

Code:
sudo dnf install pcsx2

Right now I am building Packages for Fedora 24. When Fedora 25 is released in November I will drop support for 24 and move on to 25. I hope this helps other Fedora users get to try and have fun with git builds of PCSX2.
Reply
I updated the fedora 24 repository with the latest git build as of OCT 01 2016 (d8e0b9f). Since I'm not a master of the fedora repository yet you'll want to uninstall pcsx2 and reinstall it. I haven't quite figured out how to have dnf see my builds as an update to the older package.

To remove pcsx2 use the following command in a terminal. Dnf will ask you to provide your password.
Code:
sudo dnf remove pcsx2


To install pcsx2 use the following command in a terminal. Again dnf will ask you to provide your password.
Code:
sudo dnf install pcsx2

Thanks and enjoy.
Reply
Thank you so much. I was able to play after installing also "mesa-dri-drivers.i686". Thanks.
Reply
My repository is borked at the moment, so here is a new Fedora 25 rpm from today's git pull. It's build 1.5+git 1716 from 12.19.2016. Just uncompress the archive and install via the method of your choice.


.xz   pcsx2-1.5+git.1716-1.fc25.i686.tar.xz (Size: 3,45 MB / Downloads: 26)

Enjoy!
Reply
Here is a new Fedora 25 rpm from today's git pull. It's build 1.5.0+git 1832 from 1.23.2017. Just decompress the archive and install via dnf. I had trouble installing from the Software app. Installing via 'sudo dnf install pcsx2-1.5.0+git.1832-1.fc25.i686.rpm' in a terminal works fine though.


.xz   pcsx2-1.5.0+git.1832-1.fc25.i686.tar.xz (Size: 3,46 MB / Downloads: 46)

Enjoy!
Reply
(01-24-2017, 03:15 AM)slavezeo Wrote: Here is a new Fedora 25 rpm from today's git pull. It's build 1.5.0+git 1832 from 1.23.2017. Just decompress the archive and install via dnf. I had trouble installing from the Software app. Installing via 'sudo dnf install pcsx2-1.5.0+git.1832-1.fc25.i686.rpm' in a terminal works fine though.



Enjoy!
Could you help please?

I'm having trouble with GS plugin. I also tried libzzogl-0.4.0, but it said not a valid dynamic library. 
-----------------------------------------------------------------------------------
glxinfo | grep NVIDIA

server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
OpenGL core profile version string: 4.5.0 NVIDIA 375.66
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL version string: 4.5.0 NVIDIA 375.66
OpenGL shading language version string: 4.50 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 375.66
--------------------------------------------------------------------------------------
PCSX2 logs

Loading plugins...
    Binding   GS: /usr/lib/pcsx2/libGSdx-1.0.0.so
    <.....removed other bindings...>
Plugins loaded successfully.

(GameDB) 9693 games on record (loaded in 338ms)
HLE Notice: ELF does not have a path.

Initializing plugins...
    Init GS
   <...removed other inits...>
Plugins initialized successfully.

Opening plugins...
    Opening GS
Current Renderer: OpenGL (Hardware mode)
Failed to create the opengl context. Check your drivers support openGL 3.3. Hint: opensource drivers don't
Closing plugins...
    Closing GS
Plugins closed successfully.
Shutting down plugins...
(pxActionEvent) GS plugin failed to open!(thread:MTGS)(thread:EE Core)
Plugins shutdown successfully.

I can also post output of rpm -qa | grep mesa
Reply
iammik, I honestly have no idea what's causing your problem. It looks like you're using the nVidia binary driver which is good. Otherwise I'm not sure. I'll compile up a fresh git build in the morning and we can see if that helps. Stay tuned, I'll post the new rpm when it's finished compiling.

Also, have you tried the older linux build in the download section? Just to see if it works. If it does then at least we know it's not something on your end.
Reply
(05-18-2017, 09:55 AM)slavezeo Wrote: iammik, I honestly have no idea what's causing your problem. It looks like you're using the nVidia binary driver which is good. Otherwise I'm not sure. I'll compile up a fresh git build in the morning and we can see if that helps. Stay tuned, I'll post the new rpm when it's finished compiling.

Also, have you tried the older linux build in the download section? Just to see if it works. If it does then at least we know it's not something on your end.

I have tried version 1.0.0 (segfaults) 1.4.0 (missing wxBase library and my 64 bit one doesn't work, seems like it's a 32-bit PCSX2). 

Do you also use Nvidia?  64-bit?  Are you also using GSdx (GCC 6.1.1, SSE2) 1.0.0 [libGSdx-1.0.0]?

output rpm -qa | grep mesa
mesa-libxatracker-17.0.5-2.fc25.x86_64
mesa-libOpenCL-17.0.5-2.fc25.i686
mesa-libwayland-egl-17.0.5-2.fc25.x86_64
mesa-libwayland-egl-devel-17.0.5-2.fc25.x86_64
mesa-libEGL-devel-17.0.5-2.fc25.x86_64
mesa-libGLES-17.0.5-2.fc25.x86_64
mesa-libgbm-17.0.5-2.fc25.i686
mesa-libGL-17.0.5-2.fc25.x86_64
mesa-dri-drivers-17.0.5-2.fc25.x86_64
mesa-libGLU-9.0.0-10.fc24.i686
mesa-libglapi-17.0.5-2.fc25.x86_64
mesa-libGLES-devel-17.0.5-2.fc25.x86_64
mesa-libGL-devel-17.0.5-2.fc25.x86_64
mesa-libGLU-9.0.0-10.fc24.x86_64
mesa-libOSMesa-17.0.5-2.fc25.i686
mesa-libglapi-17.0.5-2.fc25.i686
mesa-filesystem-17.0.5-2.fc25.x86_64
mesa-debuginfo-13.0.4-3.fc25.x86_64
mesa-libOpenCL-17.0.5-2.fc25.x86_64
mesa-libEGL-17.0.5-2.fc25.i686
mesa-dri-drivers-17.0.5-2.fc25.i686
mesa-libgbm-17.0.5-2.fc25.x86_64
mesa-demos-debuginfo-8.2.0-2.fc21.x86_64
mesa-libGLU-devel-9.0.0-10.fc24.x86_64
mesa-libOSMesa-17.0.5-2.fc25.x86_64
mesa-filesystem-17.0.5-2.fc25.i686
mesa-libEGL-17.0.5-2.fc25.x86_64
mesa-demos-8.3.0-6.fc25.x86_64
mesa-libGL-17.0.5-2.fc25.i686

Thanks for the help
Reply
Iammik, if you're using the nVidia driver from RPMFUSION or negativo17.org the mesa stuff shouldn't really matter. I may be completely wrong, but I think that's the way it works. All builds of PCSX2 should be 32bit. It doesn't work as a 64bit binary as far as I've known.  Although it will run on a 64bit version of linux as long as you have the 32bit libraries installed.

If memory serves correctly I use the GSdx video plugin. It's always worked properly for me for as long as I can remember using it.

I'm currently using Ubuntu Gnome as fedora 25 and 26alpha will not start their installers on my new system (AMD Ryzen, B350 chipset and AMD RX480). My memory of Fedora specifics nVidia stuff might be a little off. I'm working on compiling this new RPM in a virtual machine. I'll post it as soon as it's finished.

Any other question feel free to ask.
Reply




Users browsing this thread: 1 Guest(s)