forums.PPSSPP.org
PPSSPP iOS Port - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Builds, releases and ports (/forumdisplay.php?fid=4)
+---- Forum: iOS port (/forumdisplay.php?fid=26)
+---- Thread: PPSSPP iOS Port (/showthread.php?tid=200)



RE: PPSSPP iOS Port - [Unknown] - 03-16-2013 08:05 PM

(03-16-2013 02:41 PM)rock88 Wrote:  I had to use "magic number" -
Code:
#define SAMPLE_SIZE 44100/6
I do not understand why there should be exactly that number. Because of this, on different generations of devices audio output can work in different ways..
I'll try to fix it and try to use two buffers and alSourceUnqueueBuffers/alSourceQueueBuffers for streaming sound output.
IOS: added audio output

Hmm. I messed with it a bit. After adding a delay, this seemed less necessary. Probably doing the buffers would work better, I'm not sure.

I made some adjustments since it was sucking down cpu cycles:
https://github.com/hrydgard/ppsspp/pull/1006

(03-16-2013 02:41 PM)rock88 Wrote:  Buttons sometimes remain pressed when touch up, I'll fix it later.

I noticed this too, and I think some people not on iOS have reported it. But it could be iOS specific. Seems to happen when you touch the screen with multiple fingers at once. See also:

https://github.com/hrydgard/ppsspp/issues/989

(03-16-2013 07:10 PM)the avenger Wrote:  did i mention i hate linker errors,after copying rock88's audio implementation to the main project i am getting this linker error,should be ready with audio after resolving this
edit:silly me,forgot to include the error

Are you using the latest cmake? This looks similar to the errors I was getting before where I had to clean/build every time I changed anything.

Anyway, you can try cleaning which may also help.

-[Unknown]


RE: PPSSPP iOS Port - the avenger - 03-16-2013 08:10 PM

(03-16-2013 08:01 PM)elmon Wrote:  
(03-16-2013 07:30 PM)the avenger Wrote:  
(03-16-2013 07:26 PM)elmon Wrote:  @the avenger, v0.7c will be available soon?Smile Btw, I'd like to try to compile it by myself, are there any difficulties in it?
yes as soon as i can get around this error
as for compiling not really,compiling is the easy part,trying to get around code signing(to avoid paying 99$ to apple) is the not-so-easy part

Can i just build it for tests and then upload to iphone? i mean without signing?
[Huh, maybe i should try to build something with xcode or read some guides]
might wanna read something about that as it needs to by signed with something but not necessarily a dev certificate


RE: PPSSPP iOS Port - elmon - 03-16-2013 09:04 PM

(03-16-2013 08:10 PM)the avenger Wrote:  might wanna read something about that as it needs to by signed with something but not necessarily a dev certificate
Well, ran around building ios app (for testing) for an hour without a successSmile After understanding that i should create some separate project for every folder in repo i became a bit sad.


RE: PPSSPP iOS Port - the avenger - 03-16-2013 09:06 PM

(03-16-2013 08:05 PM)[Unknown] Wrote:  
(03-16-2013 02:41 PM)rock88 Wrote:  I had to use "magic number" -
Code:
#define SAMPLE_SIZE 44100/6
I do not understand why there should be exactly that number. Because of this, on different generations of devices audio output can work in different ways..
I'll try to fix it and try to use two buffers and alSourceUnqueueBuffers/alSourceQueueBuffers for streaming sound output.
IOS: added audio output

Hmm. I messed with it a bit. After adding a delay, this seemed less necessary. Probably doing the buffers would work better, I'm not sure.

I made some adjustments since it was sucking down cpu cycles:
https://github.com/hrydgard/ppsspp/pull/1006

(03-16-2013 02:41 PM)rock88 Wrote:  Buttons sometimes remain pressed when touch up, I'll fix it later.

I noticed this too, and I think some people not on iOS have reported it. But it could be iOS specific. Seems to happen when you touch the screen with multiple fingers at once. See also:

https://github.com/hrydgard/ppsspp/issues/989

(03-16-2013 07:10 PM)the avenger Wrote:  did i mention i hate linker errors,after copying rock88's audio implementation to the main project i am getting this linker error,should be ready with audio after resolving this
edit:silly me,forgot to include the error

Are you using the latest cmake? This looks similar to the errors I was getting before where I had to clean/build every time I changed anything.

Anyway, you can try cleaning which may also help.

-[Unknown]
silly me,always forgetting to re-run cmake,anyway i got it to build with sound and i am going to mess around a bit with it before i upload it on cydia
EDIT:the thing's a beast,it goes according to the framerate with barely any chopiness(in my case that was25-30 fps) and it barely takes any any of the speed,there also seems to be an overall increase in speed


RE: PPSSPP iOS Port - BubblegumBalloon - 03-16-2013 09:38 PM

Could you post that build to cydia? Smile

Somebody needs to make intructions on how to build ppsspp for iOS, then I could just build it myself. Whenever I try to use cmake I get errors.


RE: PPSSPP iOS Port - the avenger - 03-16-2013 09:40 PM

(03-16-2013 09:38 PM)BubblegumBalloon Wrote:  Could you post that build to cydia? Smile

Somebody needs to make intructions on how to build ppsspp for iOS, then I could just build it myself. Whenever I try to use cmake I get errors.
just did,and there are instructions on how to build it,assuming that you have a mac with xcode or atleast a vm running mac,and a provisioning certificate from apple(there are alternatives but their not that easy)


RE: PPSSPP iOS Port - elmon - 03-16-2013 09:48 PM

cmake isn't a problem - i can't include folders from /native so as path for them in project will be same as written in files. Sad [gone on stackoverflow]


RE: PPSSPP iOS Port - BubblegumBalloon - 03-16-2013 09:48 PM

(03-16-2013 09:40 PM)the avenger Wrote:  
(03-16-2013 09:38 PM)BubblegumBalloon Wrote:  Could you post that build to cydia? Smile

Somebody needs to make intructions on how to build ppsspp for iOS, then I could just build it myself. Whenever I try to use cmake I get errors.
just did,and there are instructions on how to build it,assuming that you have a mac with xcode or atleast a vm running mac,and a provisioning certificate from apple(there are alternatives but their not that easy)

Thanks! Where can I find the instructions? And I have a Mac with xcode but no certificate from apple. :/

EDIT: For whatever reason I keep getting size mismatch when downloading the new version.


RE: PPSSPP iOS Port - the avenger - 03-16-2013 10:00 PM

(03-16-2013 09:48 PM)BubblegumBalloon Wrote:  
(03-16-2013 09:40 PM)the avenger Wrote:  
(03-16-2013 09:38 PM)BubblegumBalloon Wrote:  Could you post that build to cydia? Smile

Somebody needs to make intructions on how to build ppsspp for iOS, then I could just build it myself. Whenever I try to use cmake I get errors.
just did,and there are instructions on how to build it,assuming that you have a mac with xcode or atleast a vm running mac,and a provisioning certificate from apple(there are alternatives but their not that easy)

Thanks! Where can I find the instructions? And I have a Mac with xcode but no certificate from apple. :/
on the github itself how to use cmake,if your confused,make a folder in the ppsspp folder called build-ios cd to it and type the following line in terminal after installing cmake
Code:
cmake -GXcode -DCMAKE_TOOLCHAIN_FILE=/path/to/ppsspp/folder/ios/ios.toolchain.cmake /path/to/ppsspp/folder
just replace /path/to/ppsspp/folder/ with you put the ppsspp folder
that should make a an xcodeproject in the build-ios folder,now follow this to bypass the certificate try this for personal use,if you want to release it you will need another method
http://www.securitylearn.net/2012/12/26/build-ipa-file-using-xcode-without-provisioning-profile/


RE: PPSSPP iOS Port - Dribblejam - 03-16-2013 10:02 PM

Sometimes completely closing Cydia and restarting fixes the size mismatch error.


RE: PPSSPP iOS Port - BubblegumBalloon - 03-16-2013 10:02 PM

deleting and re-adding the repo fixed it for me

EDIT: Thanks for the instructions theavenger!


RE: PPSSPP iOS Port - biijive - 03-16-2013 10:04 PM

You can try JailCoder, http://jailcoder.tk/ or https://www.facebook.com/jailcoder , JailCoder will patch xCode, so you don't need an Apple Developer Certificate.


RE: PPSSPP iOS Port - the avenger - 03-16-2013 10:18 PM

(03-16-2013 10:04 PM)biijive Wrote:  You can try JailCoder, http://jailcoder.tk/ or https://www.facebook.com/jailcoder , JailCoder will patch xCode, so you don't need an Apple Developer Certificate.
that was the first method i use but jailcoder needs to patch xcode and the project and doesn't work with cmake generated projects for some reason


RE: PPSSPP iOS Port - elmon - 03-16-2013 10:22 PM

(03-16-2013 10:00 PM)the avenger Wrote:  on the github itself how to use cmake,if your confused,make a folder in the ppsspp folder called build-ios cd to it and type the following line in terminal after installing cmake
Code:
cmake -GXcode -DCMAKE_TOOLCHAIN_FILE=/path/to/ppsspp/folder/ios/ios.toolchain.cmake /path/to/ppsspp/folder
just replace /path/to/ppsspp/folder/ with you put the ppsspp folder
that should make a an xcodeproject in the build-ios folder,now follow this to bypass the certificate try this for personal use,if you want to release it you will need another method
http://www.securitylearn.net/2012/12/26/build-ipa-file-using-xcode-without-provisioning-profile/
That made a xcode project for macos for meSmile kinda strange...

Nevermind, i made some strange stuff before that and got a thatSmile

P.s. .../ppsspp/native/math/math_util.cpp:39:26: Unknown register name 'r0' in asm [ "fmxr fpscr, r0" : : : "r0"); ]


RE: PPSSPP iOS Port - [Unknown] - 03-16-2013 10:50 PM

(03-16-2013 10:22 PM)elmon Wrote:  P.s. .../ppsspp/native/math/math_util.cpp:39:26: Unknown register name 'r0' in asm [ "fmxr fpscr, r0" : : : "r0"); ]

Make sure you're targeting an actual iOS device. The simulator will not work.

Also if you ever get an error involving native, make sure to git submodule update.

-[Unknown]