PCSX ReARMed Issue!


26 posts   Page 1 of 2   1, 2
by Wirlez » Mon Jan 07, 2013 6:52 pm
Hey guys, I have been trying to get this working for hours and hours and I just can't find a solution! I am a beginner at this and I have searched around on Google everywhere for a answer.

I am trying to install a Playstation Emulator called "PCSX ReARMed". What I have understood is that you should first:

1. Download PCSX ReARMed from http://notaz.gp2x.de/pcsx_rearmed.php
2. Get it on your Raspberry Pi (using ssh or simply download it direcly from your raspberry pi)
3. Unzip it
4. Go into the folder you unzipped ("pcsx_rearmed")
5. type in "./pcsx"

But whenever i try to type in "./pcsx" it wont work. It says:

"./pcsx -bash: ./pcsx: No such file or directory"

I use version B and are running Rasbian Wheezy

Please help!
Posts: 5
Joined: Mon Jan 07, 2013 6:38 pm
by toxibunny » Tue Jan 08, 2013 12:21 am
what happens if you go into the directory and type 'dir'?
note: I may or may not know what I'm talking about...
Posts: 1047
Joined: Thu Aug 18, 2011 9:21 pm
by welshy » Tue Jan 08, 2013 9:25 am
Wirlez
It depends WHICH file you have! It sounds like you have downloaded a SOURCE package (That’s why it’s telling you "./pcsx -bash: ./pcsx: No such file or directory", i.e. there is NO EXECUTABLE PROGRAM) which means you have to COMPILE the program so there is an executable to run (pre-compiled are “Binaries” i.e. there will be a ready built program to run, a “cog/gear” icon within the folder). OR it’s a “Binary” for another system GP2X, Pandora etc which WON’T run on the RPi!
Posts: 1308
Joined: Mon Oct 29, 2012 2:07 pm
by 6677 » Tue Jan 08, 2013 7:48 pm
the only builds on that page are not for the pi
Posts: 382
Joined: Wed Mar 14, 2012 9:23 pm
by Wirlez » Wed Jan 09, 2013 6:47 pm
Welshy you seem to know the problem! Thanks for the answer! But! I still can't get it to work... I forgot to mention that I followed this guide on the internet: http://blog.sheasilverman.com/2012/09/better-playstation-emulation-on-the-raspberry-pi/

And there is nothing about "compiling". But this time i actually went in to the file manager on the raspberry pi and found the map. There is one cog icon named "pcsx" (which i assume is what I am supposed to start) and once i click that I'll get a window with "Choose An Application" in which i should choose what application that can run this "pcsx". But at the moment I have no idea what I am doing. I don't know what compiling is and if I have downloaded the right application to open this file. Could you please download the same zip file as I (Click the link) and see if you see any way of solving this problem? :)
Posts: 5
Joined: Mon Jan 07, 2013 6:38 pm
by juppiter89 » Wed Jan 09, 2013 7:31 pm
Hi Wirlez,
you should first download the source code
Code: Select all
git clone https://github.com/notaz/pcsx_rearmed

and make sure you have dependancies
Code: Select all
sudo apt-get install libpng-dev libsdl1.2-dev

then go into folder
Code: Select all
cd pcsx_rearmed

and you can compile (it takes so much time!)
Code: Select all
./configure --sound-drivers=sdl
make

Finally you should be able to run it
Code: Select all
./pcsx
Posts: 68
Joined: Fri Jan 04, 2013 10:50 pm
by Wirlez » Wed Jan 09, 2013 7:33 pm
I Got It Working!!

There was actually really simple, i just didn't know that part. When I was in the pcsx_rearmed directory in LXTerminal i simply typed in this command: "chmod +x pcsx"
And suddenly it worked. I am not really sure what I did but i guessed I could type this in. I was following another guide about RetroPie and they had a command like that. It stood the following:

"The script is executed with

cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh"

Since I knew I had to execute it I just tested it on pcsx. I wouln't have knew that i had to execute it without you Welshy so thanks :D
Posts: 5
Joined: Mon Jan 07, 2013 6:38 pm
by Wirlez » Wed Jan 09, 2013 7:48 pm
juppiter89 wrote:Hi Wirlez,
you should first download the source code
Code: Select all
git clone https://github.com/notaz/pcsx_rearmed

and make sure you have dependancies
Code: Select all
sudo apt-get install libpng-dev libsdl1.2-dev

then go into folder
Code: Select all
cd pcsx_rearmed

and you can compile (it takes so much time!)
Code: Select all
./configure --sound-drivers=sdl
make

Finally you should be able to run it
Code: Select all
./pcsx


Thanks! This will be useful for others who search around for the same problem :) I think I actually did that not so long time ago when I was trying to install RetroPie. Because when i type in the the codes and hit enter is says i already have the latest version ^^. I have stopped on another issue tho.. Seems like I can't run the game. "menu_load_config: failed to open: ./ .pcsx/cfg/CHRONOCROSS-SLUS01041.cfg (and some thing in the end says: watchdog: seen_dead 5, and after that: watchdog: lockup detected, aborting). But my guess it that there is something wrong with the cd image and not the program itself :) I'll just search around for any solution, I got help with my main problem so thanks for that :)
Posts: 5
Joined: Mon Jan 07, 2013 6:38 pm
by juppiter89 » Wed Jan 09, 2013 8:02 pm
I have a question too :)
I just compiled last pcsx version (r18); if I launch in from lxde it works like a charm, but if I launch it without X server, I just get a black screen with a frozen mouse cursor. Does anyone have the same trouble?
Posts: 68
Joined: Fri Jan 04, 2013 10:50 pm
by welshy » Wed Jan 09, 2013 8:42 pm
Wirlez
Could be the binary you are using isn’t working! (I have posted before problems associated with using OTHER PEOPLES Binaries). I do know if you don’t compile with SDL as sound drivers (leave the command, which goes to default or alsa) i.e
./configure --sound-drivers=sdl
The “watchdog" counts............ then closes the program (Usually a bad ISO dump gives a “Segmentation Fault” error). Try compiling the source code using juppiter89’s method above (It looks Correct to me!) and it ISN'T like AdvMAME (5 Hours+ Compile), it compiles in a few minutes!

One Last Thing
The chmod +x changes privileges for running the Program and you will have to do this EVERY TIME you run it! Another GOOD reason to compile yourself as there will be NO NEED to do this!

juppiter89
It’s NOT a Raspbian Image problem, so long as you have dispensed with the Pulse Audio Drivers. Works fine on my new Image (r15), could be that the new revision (r18) just DOESN’T WORK CORRECTLY on the RPi. Welcome to the WONDERFULL WORLD of EMULATION!!! That’s just sometimes how it is!

A quick look at the Changes Document Often Helps! -
new GLES output mode for ARM Linux/R-Pi
various libretro improvements
fixed several compatibility regressions
various other tweaks and fixes

ANY one of these could be the Issue (I'm betting it could be the "new GLES output mode"!?). Have a look at the Compiling/Help Documents, it may need new Graphics Drivers or a different compile command (I think Default Graphics Output is SDL). Now you can see why I keep insisting on a CHANGES DOC for the Raspbian Images!
Posts: 1308
Joined: Mon Oct 29, 2012 2:07 pm
by jlongstreet » Thu Jan 10, 2013 12:23 am
welshy wrote:One Last Thing
The chmod +x changes privileges for running the Program and you will have to do this EVERY TIME you run it! Another GOOD reason to compile yourself as there will be NO NEED to do this!


This is incorrect. chmod +x puts execute permissions on a file permanently.
Posts: 31
Joined: Wed Sep 05, 2012 2:59 am
by steev » Thu Jan 10, 2013 1:29 am
juppiter89 wrote:I have a question too :)
I just compiled last pcsx version (r18); if I launch in from lxde it works like a charm, but if I launch it without X server, I just get a black screen with a frozen mouse cursor. Does anyone have the same trouble?


Yeah I also had this problem with r18.
I found that the libretro version works fine without X though.

Build with:
./configure --platform=libretro
make
mv libretro.so libretro-pcsx.so

Then you can launch it with retroarch
retroarch -L libretro-pcsx.so /path/to/iso
Posts: 57
Joined: Fri Jan 27, 2012 5:08 pm
by Wirlez » Thu Jan 10, 2013 2:18 pm
How do I make it full screen and is there possible to use a gamepad?

I went in to rasp-config and configured so that I wouldn't start Wheezy on boot so I could directly start Pcsx_Rearmed. (by typing in the commando "./pcsx") It worked just fine with sound and all but the picture is to small and I want it bigger! Is there possible so change the resolution on the screen so it can fit with the game I am playing in the emulator? And if so, how do I change it?

When I was playing I suddenly remembered that I had a old gamepad from logitech and I was hoping to make it work on the raspberry pi! The gamepad is: http://www.logitech.com/sv-se/support/264?osid=14&bit=64
If it's possibly how can I fix it?

It would be awesome if you guys knew the answer :D !
Posts: 5
Joined: Mon Jan 07, 2013 6:38 pm
by munchluxe63 » Fri Jan 18, 2013 8:51 am
You can run pcsx_rearmed without X without having to compile it differently:

xinit /home/pi/pcsx_rearmed/pcsx $* -- :0

It will open on display 0, but you can change the display by changing that last number. Make sure you CD into your pcsx directory before running to load all your settings/bios.
Posts: 2
Joined: Fri Jan 18, 2013 8:48 am
by steev » Thu Jan 31, 2013 12:01 am
juppiter89 wrote:I have a question too :)
I just compiled last pcsx version (r18); if I launch in from lxde it works like a charm, but if I launch it without X server, I just get a black screen with a frozen mouse cursor. Does anyone have the same trouble?


notaz has fixed the issue
https://github.com/notaz/pcsx_rearmed/issues/8

pcsx_rearmed works again without X and the games run full screen.
Plus I am getting very good speeds compared to the libretro port.
Posts: 57
Joined: Fri Jan 27, 2012 5:08 pm
by techs1200 » Thu Jan 31, 2013 4:39 am
how are the frame rates? try to run metal gear solid to stress test it...
Posts: 28
Joined: Thu Jan 24, 2013 7:45 pm
by steev » Thu Jan 31, 2013 7:12 am
It depends on the game

A lot of the less demanding 2D games I tried ran extremely well, like 50-60 FPS.
Those were:
Megaman 8
Herc's Adventures
Tetris Plus
Metal Slug X

And some 3D games:
Megaman Legends - ~30 FPS during gameplay for the short time I played
Road Rash 3D - 10-15 FPS during gameplay, playable with frameskip
Resident Evil 2 - 25-30 FPS
Metal Gear Solid - Anywhere from 10-22 FPS during gameplay, for the short time I played

My R-Pi is overclocked to 800 MHz
Posts: 57
Joined: Fri Jan 27, 2012 5:08 pm
by ulysess » Thu Jan 31, 2013 11:45 am
Cool! Can you share with us the binaries you compiled? pleaaase :D

steev wrote:It depends on the game

A lot of the less demanding 2D games I tried ran extremely well, like 50-60 FPS.
Those were:
Megaman 8
Herc's Adventures
Tetris Plus
Metal Slug X

And some 3D games:
Megaman Legends - ~30 FPS during gameplay for the short time I played
Road Rash 3D - 10-15 FPS during gameplay, playable with frameskip
Resident Evil 2 - 25-30 FPS
Metal Gear Solid - Anywhere from 10-22 FPS during gameplay, for the short time I played

My R-Pi is overclocked to 800 MHz
Mis apuntes de...Raspberry Pi: http://misapuntesde.com
Google Docs RPi: http://goo.gl/Iwhbq
Posts: 228
Joined: Thu Aug 02, 2012 6:35 am
Location: Spain
by steev » Thu Jan 31, 2013 12:59 pm
Sure:
https://docs.google.com/file/d/0B-PSbqQ ... BMRFE/edit
Sources are included

It was compiled under Arch Linux ARM, I haven't tested the binary on Raspbian.
Posts: 57
Joined: Fri Jan 27, 2012 5:08 pm
by ulysess » Thu Jan 31, 2013 6:59 pm
On Debian, missing library: libpng15.so.15 :(
Mis apuntes de...Raspberry Pi: http://misapuntesde.com
Google Docs RPi: http://goo.gl/Iwhbq
Posts: 228
Joined: Thu Aug 02, 2012 6:35 am
Location: Spain
by techs1200 » Thu Jan 31, 2013 10:38 pm
ulysess wrote:On Debian, missing library: libpng15.so.15 :(


try this:

Code: Select all
sudo apt-get install libpng
Posts: 28
Joined: Thu Jan 24, 2013 7:45 pm
by ulysess » Fri Feb 01, 2013 10:25 am
It doesn't work. I've tried to link another library called libpng12.0, without success :(

I'll try to compile it by myself.

So do you recommend libreto?

techs1200 wrote:try this:

Code: Select all
sudo apt-get install libpng
Mis apuntes de...Raspberry Pi: http://misapuntesde.com
Google Docs RPi: http://goo.gl/Iwhbq
Posts: 228
Joined: Thu Aug 02, 2012 6:35 am
Location: Spain
by StooPot » Mon Apr 08, 2013 1:52 am
Spent forever trying to get this to work then stumbled across a solution when looking for something else.

'man247' at this thread http://www.raspberrypi.org/phpBB3/viewtopic.php?t=13349&p=305984 said the following:

"I tried compiling the latest source and get a fatal error "vchost_config.h no such file or directory". Moving
/opt/vc/include/interface/vmcs_host/linux/vchost_config.h
into
/opt/vc/include/interface/vcos/pthreads/vchost_config.h
compiles without error."

Apparently copying header files isn't the most elegant solution.

I am new to linux since getting my pi but I found out some of the variable names that can be used when compiling for the pi. This may or may not improve overall performance.

Extract, then...
Code: Select all

CFLAGS=' -mtune=arm1176jzf-s -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard' ./configure --sound-drivers=sdl

make
Posts: 6
Joined: Sun Apr 07, 2013 11:17 pm
by StooPot » Mon Apr 08, 2013 10:37 am
There is also an installation guide here which includes a location for downloading a file that can be used as a BIOS file for the emulator. This allows certain games to run properly e.g. Metal Slug

http://pastebin.com/raw.php?i=8HeL4DeM

Use Screen Over SSH And For Root
--------------

apt-get install screen
sudo screen

Link GLES_CM
------------

sudo ln -fs /opt/vc/lib/libGLESv1_CM.so /usr/lib/libGLES_CM.so

Compile PCSX-ReARMed
------------

git clone git://notaz.gp2x.de/~notaz/pcsx_rearmed.git

cd pcsx_rearmed

./configure --sound-drivers=sdl

make

Download BIOS File
------------

cd bios
wget http://psxone.freeroms.com/psx_roms/ba/bios.zip
unzip bios.zip
find . -type f ! -name "*.bin" -delete
Posts: 6
Joined: Sun Apr 07, 2013 11:17 pm
by dr_d_gee » Mon Apr 08, 2013 1:46 pm
Worth pointing out that the -I flag (capital I) to the compiler can be used to add an additional directory for include files, similarly -L can be used to add additional library directories for the linker.
Posts: 79
Joined: Fri Jan 04, 2013 1:30 pm