Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old December 5th, 2007   #1
barius
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 29
Kubuntu 7.10 Gutsy Gibbon
Compiling PCSX2 from SVN

This should work on Feisty, Gutsy and Hardy, just make sure to read the NOTE in step 1.
The following will download the full SVN source code, and compile the emulator + available plugins. You can simply select+middle-click the following blocks of code into a console to execute them (click Enter to complete each command in the console).

*Update - 2008-04-28
- If you have just upgraded from Gutsy/Feisty to Hardy you will find that PCSX2 will not run anymore. This is because libglew1.4-dev has been replaced with libglew1.5-dev. All you need to do is make sure libglew1.5-dev is installed and recompile (or just redo the 4 steps below).

*Update - 2008-01-09
- Added a 'Common Questions and Answers' section below.

*Update - 2007-12-14
- Added the library 'libsdl1.2-dev' to step (1) because the pkgconfig file 'sdl.pc' is now needed by the zeropad plugin v0.2.0.
- The recent addition of Zeropad v0.2.0 seems to have caused a strange bug during compilation. The problem seems to happen only if you've already downloaded a previous version of the SVN code. The error will look something like this:
Code:
...
mv -f .deps/libZeroPAD_a-zeropad.Tpo .deps/libZeroPAD_a-zeropad.Po
make: *** No rule to make target `linux.cpp', needed by `libZeroPAD_a-linux.o'.  Stop.
Error with building plugins
If you see this, the easiest fix is to delete the source code and start again from scratch. I.e. delete everything from the pcsx2 folder *except* for the bin folder (which contains your save-games, bios, etc) and follow this guide again from the start.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(1) Install the needed libraries.
NOTES: replace libglew1.5-dev with
Gutsy: libglew1.4-dev
Feisty: libglew-dev

Code:
sudo apt-get install subversion libsdl1.2-dev libjpeg62-dev build-essential \
libgtk2.0-dev libxxf86vm-dev x11proto-xf86vidmode-dev automake1.9 \
libbz2-dev libasound-dev nvidia-cg-toolkit libglu1-mesa-dev libglew1.5-dev;
(2) Create a folder for the source code:

Code:
cd ~/;
mkdir pcsx2;
svn co https://pcsx2.svn.sourceforge.net/svnroot/pcsx2 pcsx2
(3) Make sure permissions are right, then build it:

Code:
cd pcsx2;
chmod +x build.sh;
sh build.sh all
(4) Create a startup script. By default the compilation will create the pcsx2 executable in the ~/pcsx2/bin folder. The following script will put a start script named 'play.sh' in that folder. If you want to move the executable somewhere else, you need to move the whole bin folder, and modify this script appropriately.

Code:
cd bin;
echo \#\!'/bin/bash' > play.sh;echo 'cd ~/pcsx2/bin'>>play.sh;\
echo 'LD_LIBRARY_PATH="./" ./pcsx2' >> play.sh;
chmod +x play.sh
(5) Start 'er up either from the desktop file browser by clicking on play.sh, or from the commandline with
Code:
./play.sh
The first time it runs you will be asked to configure it. If you followed the steps above then the default locations will be ~/pcsx2/bin/plugins and ~/pcsx2/bin/bios.

You can update your installation by doing steps 2 and 3 over again at any time.

Notes for newbs:
  • PCSX2 requires a PS2 bios. To use the emulator legally you must dump the bios from a PS2 that you own. The PCSX2 forums contain links to bios dumping guides.
  • Only the OGL graphics plugins will work on Linux.
  • PCSX2 requires a *very* powerful machine to emulate 3D games at reasonable frame rates. See the PCSX2 faq on their forums for more details.
  • Many games do not yet run properly on the emulator. The PCSX2 team have provided a compatibility list so that you can look up the status of your game. Only those games listed as 'playable' can be run without major issues. The link to the list is below.

Compilation problems:
  • If you're having trouble compiling the plugins you may have better luck by installing a newer version of the CG Toolkit from the Nvidia Developer site. The version provided in the Ubuntu repositories is usually several months out of date, though I've never had a problem with it myself.
  • If you use AMD or Nvidia graphics cards you will need to install the non-free drivers.
  • If your CPU does not support SSE2 or higher you might as well give up now.
  • If your GPU (graphics card) does not support Pixel Shaders 2.0 or higher you are similarly out of luck.
  • Search both Google and the PCSX2 forums before asking questions about your hardware. Every question imaginable has already been asked, and the forum moderators will likely ignore you if you haven't made an obvious effort to find previous answers. Also see the FAQ as it answers many of these questions.

Personal Experience:
  • Compiz on Kubuntu severly impacts performance. Turn it off while playing (in console "kwin --replace &").
  • I bought a Logitech RumblePad2 controller not really knowing if it would work with Ubuntu/PCSX2. Thankfully, it works great with zero setup issues!

Common Questions and Answers:
  • Q: I get 30 fps but the game seems to move in s-l-o-w m-o-t-i-o-n!
    A: PCSX2 frame rate does not work the same way PC games do. 30fps in PCSX2 is *half* the normal speed of the game played on a real PS2, so it will feel very slow. Don't expect to get full speed in *any* game without some serious gaming hardware.
  • Q: I have a QuadCore CPU (4 cores), can PCSX2 be configured to use all 4 cores?
    A: No. PCSX2 is programmed to use only 2 cores.
  • Q: What's the best GS/CDVD/Whatever plugin to use?
    A: It varies. In general, the best plugins are the ones that work for you.
  • Q: Why does game <insert name here> keep crashing?
    Q: Why does game <insert name here> not run?
    Q: Is there a 'trick' to make game <insert name here> run better/faster?
    A: The compatibility list posted at www.pcsx2.net lists almost every game in existence and how well it is emulated at this time. If your game has a status other than 'playable' then give up now and wait for a new release, it is pointless to even ask the question on their forum. On the other hand, if the game is listed as 'playable' and you are having trouble with it you may find the answer on their forum.
  • Q: How do the developers prioritize improvements to games?
    A: They don't. PCSX2 is not designed to emulate individual games, it emulates the hardware of the PS2 as a whole. As the emulator is improved, emulation of all games will improve.

Links:

Last edited by barius; April 28th, 2008 at 10:49 PM.. Reason: Updated for Hardy
barius is offline   Reply With Quote
Old December 5th, 2007   #2
ehcualp
5 Cups of Ubuntu
 
Join Date: Oct 2007
Location: i really dont know...
Beans: 40
Ubuntu 7.10 Gutsy Gibbon
Re: Compiling PCSX2 from SVN

Mucho gracious! I cant wait to play my games! All i have to do now is get the bios from my ps2
ehcualp is offline   Reply With Quote
Old December 8th, 2007   #3
Bonster
A Carafe of Ubuntu
 
Join Date: Jun 2006
Location: UnderTheSea
Beans: 111
Re: Compiling PCSX2 from SVN

Can u upload your working PCSX2 file somewhere.
I try compiling with the guide still getting errors.
Bonster is online now   Reply With Quote
Old December 8th, 2007   #4
barius
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 29
Kubuntu 7.10 Gutsy Gibbon
Re: Compiling PCSX2 from SVN

No, it's too large to post here.
Make sure that you have all the packages from step 1 installed. Also, don't put your bios/plugins under too many folders since there are some path length limitations. If you still get errors when compiling then post your errors and what hardware you have in the PCSX2 forums. They are usually pretty helpful to Linux SVN users.
barius is offline   Reply With Quote
Old December 9th, 2007   #5
Bonster
A Carafe of Ubuntu
 
Join Date: Jun 2006
Location: UnderTheSea
Beans: 111
Re: Compiling PCSX2 from SVN

Well u can upload it to mediafire or megaupload or rapidshare. I would join the PCSX2 forum but seems like they banning everyone that trys to sign up. So I cant sign up so this is the only forum I can get help from.

I did manage to compile from the Official Source package. But it didnt have the plugins. And it was giving me all these GS errors and such.


However on the SVN always gives me errors. So I never manage to pass the point on compiling that.

make[2]: Entering directory `/home/bonster/Desktop/gtg/plugins/gs/zerogs/opengl'
make[2]: Nothing to be done for `install-exec-am'.
test -z "" || mkdir -p -- ""
/usr/bin/install -c 'libZeroGSoglr.so.0.96.2' '/libZeroGSoglr.so.0.96.2'
/usr/bin/install: cannot create regular file `/libZeroGSoglr.so.0.96.2': Permission denied
make[2]: *** [install-traplibPROGRAMS] Error 1
make[2]: Leaving directory `/home/bonster/Desktop/gtg/plugins/gs/zerogs/opengl'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/bonster/Desktop/gtg/plugins/gs/zerogs/opengl'
make: *** [install-recursive] Error 1
Bonster is online now   Reply With Quote
Old December 9th, 2007   #6
barius
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 29
Kubuntu 7.10 Gutsy Gibbon
Re: Compiling PCSX2 from SVN

The only reason anyone gets kicked from the PCSX2 forum is for talking about pirated games/bioses. The development team has a very strict no-piracy stance, for obvious reasons (..Sony legal dept.). If you want help, make sure you are using a legally obtained bios and games, it's that simple. It's not like a PS2 is crazy expensive anymore anyways, you'll have a lot more fun playing games on the real thing for a few years yet because the emulator still has a ways to go before it's as stable as the old PS1 emus.

As to your compiling problem, judging by the paths in the error report you did not follow the guide exactly. The error is quite clearly a permissions issue due to something you've done differently. Delete what you have, and follow the guide above by simply copy/pasting the commands into a terminal.
barius is offline   Reply With Quote
Old December 9th, 2007   #7
Phayder92889
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 33
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to Phayder92889 Send a message via MSN to Phayder92889 Send a message via Yahoo to Phayder92889
Re: Compiling PCSX2 from SVN

Gods amongst men reside within this forum.

Thanks!
Phayder92889 is offline   Reply With Quote
Old December 12th, 2007   #8
Bonster
A Carafe of Ubuntu
 
Join Date: Jun 2006
Location: UnderTheSea
Beans: 111
Re: Compiling PCSX2 from SVN

I didnt get kick from the PCSX2 forum. I was never even in it. They dont let me sign up. Keeps saying ban when I try to sign up. Maybe u can tell those guys to fix this. I emailed them like 1week ago but the problem still the same. Is not only me others experience this also.

Thanks BTW: I think it was the long path limit you said.

Last edited by Bonster; December 12th, 2007 at 02:48 AM..
Bonster is online now   Reply With Quote
Old December 12th, 2007   #9
go_beep_yourself
Dipped in Ubuntu
 
go_beep_yourself's Avatar
 
Join Date: Oct 2007
Location: wrong planet
Beans: 643
Ubuntu 9.04 Jaunty Jackalope
Send a message via ICQ to go_beep_yourself Send a message via AIM to go_beep_yourself Send a message via MSN to go_beep_yourself Send a message via Yahoo to go_beep_yourself Send a message via Skype™ to go_beep_yourself
Re: Compiling PCSX2 from SVN

Quote:
Originally Posted by barius View Post
[*]If your CPU does not support SSE2+ you might as well give up now.[/list]
Code:
chris@ubuntu:~/Desktop/pcsx2$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 43
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
stepping        : 1
cpu MHz         : 2200.222
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr 
sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy
bogomips        : 4403.13
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 43
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
stepping        : 1
cpu MHz         : 2200.222
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr 
sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy
bogomips        : 4400.72
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

chris@ubuntu:~/Desktop/pcsx2$
Is sse2 not the same as sse2+. Does anyones cpuinfo say sse2+ or just sse2? I've been able to compile pcsx2 before, but I never got it to run correctly
__________________
Linux HowTos and Free Support!
http://linuxinovations.blogspot.com/

Green means go, Yellow means faster, Red means don't stop.
go_beep_yourself is offline   Reply With Quote
Old December 12th, 2007   #10
barius
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 29
Kubuntu 7.10 Gutsy Gibbon
Re: Compiling PCSX2 from SVN

When I wrote SSE2+ what I meant was you need SSE2 *or better*. Your CPU is fine.
barius is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:28 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry