User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 3:26 am

You don't need to delete the old gpsp binary, no. Running "make" will automatically overwrite the old one.

It shouldn't matter that you made your gpsp_input.cfg in X.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 5:09 am

Ok, here is the log I get when I run a rom directly from the terminal:

Code: Select all

audio: freq 22050, size 4096
game config missing
That's all it says... Not sure if there should be more?
Anyway, here is the gpsp_input.cfg I created:

Code: Select all

joyIndex = 0
axis_up = -1
axis_down = +1
axis_left = -0
axis_right = +0
btn_a = 1
btn_b = 2
btn_l = 4
btn_r = 5
btn_start = 9
btn_select = 0
btn_quit = 8

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 2:52 pm

Odd, it would appear to be working. I just added some more debug output to help get a better picture of what's going on. Could you run "git pull https://www.github.com/Aloshi/gpsp.git", "make clean", and "make" again, then "./gpsp some/rom > log.txt" again and post the log when you get a chance?

(Sorry for the trouble!)

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 7:46 pm

When I pull that into my gpsp directory, I get an error in the terminal that says

Code: Select all

fatal: empty ident <[email protected](none)> not allowed

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 7:55 pm

All right... I ran "make clean" and "make" anyway... And they SEEMED to work. But when I launch a ROM from the command line, the log file I get is the exact same as before.

I think it might just be time to dump everything and start over.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 9:53 pm

Ok, so I started over and I'm running into all sorts of problems that I don't know how to solve.

So I download gpsp. I put the gba_bios.bin into the raspberrypi directory.

Then I set my directory as RetroPie/emulators/gpsp

I run "git pull https://www.github.com/Aloshi/gpsp.git"

Then I set my directory to RetroPie/emulators/gpsp/raspberrypi and run "make."

I get the following:

Code: Select all

make
gcc -DARM_ARCH -DRPI_BUILD -Wall -mfpu=vfp `sdl-config --cflags` -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux   -c -o input.o ../input.c
../input.c: In function ‘update_input’:
../input.c:844:1: error: expected expression before ‘<<’ token
../input.c:857:1: error: expected expression before ‘==’ token
../input.c:873:1: error: expected expression before ‘>>’ token
../input.c:873:9: error: invalid suffix "f1fb868c7093576c73894187173f14c78094de7" on integer constant
../input.c: At top level:
../input.c:918:2: error: #endif without #if
make: *** [input.o] Error 1
No idea what I'm doing. So then I ran "make clean" and "make" again. Eventually got those same errors. This is frustrating.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 10:27 pm

I got it! Basically, I went to github on my Mac, copied the contents of your file, created an "input.c" file and put it in the proper directory, overwriting the one that was in there.
When it was done, I ran "make" again, and it appeared to work. It didn't show any errors. So I put my gpsp_input.cfg in there.

Launched emulationstation, opened a GBA game, and VOILA! My controls work.

Thanks for the help and making this in general.
And likely reading through all the jibber-jabber in my last 3 or 4 posts.

If you can find a way to make it so that a button combination can have an action, that would be awesome. For example, make button 8 a hotkey so that when it's pressed, button 9 will run the exit command.

Of course, if you did figure that out, you'd then have to deal with another day of walking me through a bunch of my stupid mistakes... :lol:

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 11:18 pm

Ah, so glad you got it working! :)

I've laid the groundwork for "hotkey" support, so I think something along the lines of RetroArch's "enable hotkeys" button should be easy enough. I likely won't get to it for a while still, though.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sun Apr 28, 2013 11:44 pm

Thanks again for all your help.
I'm definitely looking forward to your next update.

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 1:54 pm

I've made new release of the gpSP for raspberry pi.
New features:
+ configuration of keyboard key by GUI
+ configuration of gamepad by GUI
+ added "hotkey" for GUI (SELECT + Right trigger )

Source code: https://github.com/DPRCZ/gpsp
Binary: https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 3:12 pm

Awesome, much better than my fork! Thank you. :)

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 5:34 pm

Excellent. Thanks. So select+R will now exit the emulator?

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 5:39 pm

JBaker1225 wrote:Excellent. Thanks. So select+R will now exit the emulator?
No, Hotkey goes to GUI menu and there you could choose exit.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 7:37 pm

Ok, great.

To update, do I just cd into my current GPSP directory and git pull https://github.com/DPRCZ/gpsp to update?

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 8:17 pm

JBaker1225 wrote:Ok, great.

To update, do I just cd into my current GPSP directory and git pull https://github.com/DPRCZ/gpsp to update?
Yes, but you can direcly download compiled binary from https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and just use compiled gpsp. It's faster way.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 8:52 pm

DPR wrote:
JBaker1225 wrote:Ok, great.

To update, do I just cd into my current GPSP directory and git pull https://github.com/DPRCZ/gpsp to update?
Yes, but you can direcly download compiled binary from https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and just use compiled gpsp. It's faster way.
Okay, thanks. Sorry to bug you again, but I downloaded the compiled binary, and I get a /gpsp directory that contains 4 files: game_config.txt, gba_bios.bin, gpsp and keys.txt.

Is that all I need?
I know in the previous version that I pulled from github, I had more directories within /gpsp, and the actually binary was located in /gpsp/raspberrypi.
I assume with this pre-compiled binary I just don't need that stuff anymore?

Thanks again, and like I said, sorry for continually bugging you with questions. I'm very new to this stuff and trying my best to get a handle on the RPi, and Linux, and emulation on the fly as best I can.

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 8:53 pm

DPR: sorry but I have tried both the binary and my own compiled version from git and there is no menu for configuring keyboard or gamepad keys. All I get is the BACK option in both menus, just like in the old version.

Has anybody been able to access these input configuration menus?

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 9:40 pm

JBaker1225 wrote:
DPR wrote:
JBaker1225 wrote:Ok, great.

To update, do I just cd into my current GPSP directory and git pull https://github.com/DPRCZ/gpsp to update?
Yes, but you can direcly download compiled binary from https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and just use compiled gpsp. It's faster way.
Okay, thanks. Sorry to bug you again, but I downloaded the compiled binary, and I get a /gpsp directory that contains 4 files: game_config.txt, gba_bios.bin, gpsp and keys.txt.

Is that all I need?
I know in the previous version that I pulled from github, I had more directories within /gpsp, and the actually binary was located in /gpsp/raspberrypi.
I assume with this pre-compiled binary I just don't need that stuff anymore?

Thanks again, and like I said, sorry for continually bugging you with questions. I'm very new to this stuff and trying my best to get a handle on the RPi, and Linux, and emulation on the fly as best I can.
Actualy you just need only gpsp, game_config.txt and gba_bios.bin. If you allready have file structure /gpsp/raspberrypi copy thouse file there. And on your directory /gpsp/raspberrypi run ./gpsp

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 9:52 pm

Vanfanel wrote:DPR: sorry but I have tried both the binary and my own compiled version from git and there is no menu for configuring keyboard or gamepad keys. All I get is the BACK option in both menus, just like in the old version.

Has anybody been able to access these input configuration menus?
Ok, just download https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and decompress this file to directory /home/pi/gpsp/ then do cd /home/pi/gpsp/ and on this path run ./gpsp

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Fri May 03, 2013 10:58 pm

This worked great. Thanks.

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sat May 04, 2013 8:49 am

DPR wrote:
Vanfanel wrote:DPR: sorry but I have tried both the binary and my own compiled version from git and there is no menu for configuring keyboard or gamepad keys. All I get is the BACK option in both menus, just like in the old version.

Has anybody been able to access these input configuration menus?
Ok, just download https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and decompress this file to directory /home/pi/gpsp/ then do cd /home/pi/gpsp/ and on this path run ./gpsp
@DPR: Thanks, but I know how to decompress and run a Linux program. The problem is different: the version you have uploaded does not have a gamepad configuration menu. Maybe you mixed up versions?

DPR
Posts: 21
Joined: Mon Mar 18, 2013 12:45 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sat May 04, 2013 10:43 am

@Vanfanel: I've checked both git and precompiled binary and both seem to be correct version.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sat May 04, 2013 3:05 pm

Vanfanel wrote:
DPR wrote:
Vanfanel wrote:DPR: sorry but I have tried both the binary and my own compiled version from git and there is no menu for configuring keyboard or gamepad keys. All I get is the BACK option in both menus, just like in the old version.

Has anybody been able to access these input configuration menus?
Ok, just download https://www.dropbox.com/s/2x9tz60v06h15u9/gpsp.tar.gz and decompress this file to directory /home/pi/gpsp/ then do cd /home/pi/gpsp/ and on this path run ./gpsp
@DPR: Thanks, but I know how to decompress and run a Linux program. The problem is different: the version you have uploaded does not have a gamepad configuration menu. Maybe you mixed up versions?
The pre-compiled version I downloaded has the game pad configuration.

Vanfanel
Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Sat May 04, 2013 4:33 pm

Sorry, DPR and JBaker!

I don't know what I did wrong, I swear I downloaded the latest binary and also tried compiling from sources and I couldn't see the gamepad config.
Then I just wiped out my /home/pi/gba directory completely, made a new one, copied gpsp again and now I have the gamepad menu.
Sorry, I'm ashamed :(

Klapper123
Posts: 1
Joined: Wed Jun 05, 2013 1:54 am

Re: [Tutorial] gpSP - Full Speed GBA Emulator with Sound and

Wed Jun 05, 2013 1:57 am

Hello Felix fantastic job on the emulator but i was wondering, how do i configure the controls of the keyboard? Thanks for the help in advance and great work! :D

Return to “Gaming”