Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PCSX2 svn RPM building on fedora 19/20/21 64 bit (x86_64)
#1
Here's my discovery of building and installing pcsx2 i386/i686 on fedora 64 bit. I'm doing this on fedora 19 x86_64 bit.

first let's add the required rpmfusion repos
Code:
su
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

we need to install these packages for runtime and development
Code:
sudo yum -y install soundtouch*i686 alsa*devel*i686 libCg*i686 wxB*i686 wxG*i686 bzip*i686 zlib*i686 atkmm*i686 pango*i686 cairo*i686 sparse*i686 SDL.i686 SDL-devel.i686 glibc*devel*i686 libaio*i686 freetype*i686 gtk2-devel.i686 gdk*pix*devel.i686 glib2-devel.i686 atk-devel.i686 libSM-devel.i686 libICE-devel.i686 libX11-devel.i686 libXext-devel.i686 mesa-libGLU-devel.i686 mesa-libGL-devel.i686  mesa-libEGL-devel.i686 freeglut.i686 freeglut-devel.i686 mesa-libEGL.i686 portaudio*i686 glew*i686 Cg  turbojpeg-devel.i686 libjpeg-turbo-devel.i686 alsa-plugins-pulseaudio.i686 xorg-x11-xtrans-devel.noarch glew.x86_64 mesa-libOSMesa-devel.x86_64 mesa-libGLw-devel.x86_64 ImageMagick.x86_64 libjpeg-turbo-static.x86_64 libjpeg-turbo-devel.x86_64 libwmf-lite.x86_64 mesa-libOSMesa.x86_64 libXp-devel.x86_64 lesstif-devel.x86_64 mesa-libGLw.x86_64 OpenEXR-libs.x86_64 ilmbase.x86_64 lesstif.x86_64 libXp.x86_64 wxGTK-devel.x86_64 wxGlade.noarch wxPython.x86_64 rpm-cron.noarch rpm-apidocs.noarch rpm-compare-req.noarch rpmreaper.x86_64 rpmdepsize.x86_64 rpm-sign.x86_64 rpmfusion-nonfree-remix-kickstarts.noarch rpmconf.noarch rpmfusion-nonfree-package-config-smart.x86_64 rpm-devel.x86_64 rpmrebuild.noarch rpmorphan.noarch rpmfusion-packager.noarch rpmlint.noarch python-magic.noarch mock-rpmfusion-free.noarch mock.noarch createrepo.noarch python-deltarpm.x86_64 perl-Pod-Parser.noarch perl-Pod-Usage.noarch perl-Pod-Perldoc.noarch perl-podlators.noarch plague-client.noarch perl-parent.noarch rpmdevtools.noarch plague-common.noarch xemacs-filesystem.noarch rpm-build.x86_64 @development-tools svn git cmake gcc-c++

Here is the SRPM (src.rpm) for pcsx2
http://www.mediafire.com/download/0qf2hy...19.src.rpm

I build rpms as root user, so run these commands
Code:
su
rpm -ivh pcsx2-1.1.0-5.5761.fc19.src.rpm
cd /root/rpmbuild/SPECS
yum-builddep pcsx2.spec ; #installs dependencies
rpmbuild -ba --target=i686 pcsx2.spec
after rpmbuild completes, pcsx2-1.1.0-5.5761.fc19.i686.rpm we'll have rpm in
/root/rpmbuild/RPMS/i686/
now we can install the new rpm
Code:
rpm -e pcsx2 ; #remove previous pcsx2 rpm
rpm -ivh /root/rpmbuild/RPMS/i686/pcsx2-1.1.0-5.5761.*.i686.rpm
pcsx2 ; #launch pcsx2

The above is for new or first building and installation of pcsx2.

Now to update pcsx2 to latest svn version on a later date; the good news it that the src.rpm has complete svn checkout folder in the tar.bz2; so when we want to update our pcsx2 to latest version, we need to do this update the 1. extract the pcsx2-1.1.0.tar.bz2, 2. update pcsx2 svn in folder, 3. recompress pcsx2-1.1.0 to pcsx-1.1.0.tar.bz2, 4. update revision number in pcsx2.spec. 5. rebuild rpm. So, let's try updating

Code:
su
cd /root/rpmbuild/SOURCES
tar -hxf pcsx2-1.1.0.tar.bz2
cd pcsx2-1.1.0
REV=$(svn update |grep revision|sed 's/.* //g'|sed 's/\.//g') ; #getting the revision number
rm pcsx2-1.1.0.tar.bz2
tar -jcf pcsx2-1.1.0.tar.bz2 pcsx2-1.1.0
sed "s/%define snapshot_num.*/%define snapshot_num $REV/g" -i /root/rpmbuild/SPECS/pcsx2.spec
cd  /root/rpmbuild/SPECS
rpmbuild -ba --target=i686 pcsx2.spec

now we can install the updated rpm
Code:
rpm -e pcsx2 ; #remove previous pcsx2 rpm
rpm -ivh /root/rpmbuild/RPMS/i686/pcsx2-1.1.0-5.$REV.*.rpm
pcsx2 ; #launch pcsx2


Here's the binary rpm for fedora 19 - svn revision 5761
http://www.mediafire.com/download/yt5jpo...9.i686.rpm

UPDATE: To run the above binary using opensource drivers, install mesa-dri-drivers for i686 and x86_64, use zzogl plugins, but performance is not that great yet 38-44fps on tekken5 with zzogl
Code:
sudo yum -y localinstall pcsx2-1.1.0-5.5761.fc19.i686.rpm
sudo yum -y install mesa-dri-drivers.x86_64 mesa-dri-drivers.i686

with nvidia binary 331.20 tekken5 runs at 68+fps (turbo mode - press tab when the game is running)

nvidia users should install NVidia binary drivers from rpmfusion, for GSdx plugin to work and for very good performance,
Code:
yum install xorg-x11-drv-nvidia.x86_64 xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64

Many thanks to gregory for PCSX2 Linux development, and Gumbo, Giles Birchley, and Muhammad Shaban for src and binary rpms. Thank you!

UPDATE: added missing gcc-c++ to install list

I myself went through all the instruction again for QA on a fresh installed fedora 19 x86_64, system, now, the above procedure works on Fedora 19. Have fun!

My Specs:
CPU: AMD Phenom™ II X6 1090T Processor × 6
GPU: NVidia 650 ti boost 2GB
RAM: 8GB
HDD: 1TB Western Digital SATA
OS: Fedora 19/20/21

Don't forget to use "Async Mix" for "Synchronization Mode" for better performance, the "TimeStretched" causes slow down, SPU-2x Config.


Attached Files
.txt   pcsx2.spec.txt (Size: 8,97 KB / Downloads: 134)
Reply

Sponsored links





Users browsing this thread: 1 Guest(s)