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 - xsacha - 02-23-2013 04:47 AM

(02-23-2013 03:23 AM)rock88 Wrote:  Most likely today I'll upload a fixed Cmake file and the project will be built correctly.
I also have an idea why does not work Buffered Rendering - in iOS after rendering in FBO need to binding default frame buffer. And this can only be done from the obj-c side.

I saw some code that does this, bind to the view (with obj-C). But I've also seen iOS code that doesn't do this and apparently works :\

You can try this but it shouldn't require obj-C.

Try:
GLint defaultFBO;
glGetIntegerv(GL_FRAMEBUFFER_BINDING_OES, &defaultFBO);

(02-23-2013 03:41 AM)brujo55 Wrote:  guys someone can fix the persistent screen flickering on some games like oscure the aftermatch,naruto,dragon ball z evolution,etc.
That isn't a bug. Can't be fixed.
The reason you get flickering is because you have no buffered rendering.


RE: PPSSPP iOS Port - brujo55 - 02-23-2013 04:52 AM

(02-23-2013 04:47 AM)xsacha Wrote:  
(02-23-2013 03:23 AM)rock88 Wrote:  Most likely today I'll upload a fixed Cmake file and the project will be built correctly.
I also have an idea why does not work Buffered Rendering - in iOS after rendering in FBO need to binding default frame buffer. And this can only be done from the obj-c side.

I saw some code that does this, bind to the view (with obj-C). But I've also seen iOS code that doesn't do this and apparently works :\

(02-23-2013 03:41 AM)brujo55 Wrote:  guys someone can fix the persistent screen flickering on some games like oscure the aftermatch,naruto,dragon ball z evolution,etc.
That isn't a bug. Can't be fixed.
The reason you get flickering is because you have no buffered rendering.

could you make a build [deb or ipa] using your code please?.
i can test some games.thx


RE: PPSSPP iOS Port - rock88 - 02-23-2013 05:31 AM

I have just updated the repository, now the project is correct building. I also wanted to make a "Pull Request" to hrydgard/ppsspp, but I have 20 commits and some of them are very old, so I do not know how correctly make it..

(02-23-2013 04:47 AM)xsacha Wrote:  GLint defaultFBO;
glGetIntegerv(GL_FRAMEBUFFER_BINDING_OES, &defaultFBO);
Code:
glBindFramebuffer(GL_FRAMEBUFFER, defaultFBO);
This code is for some reason not binding default framebuffer..

Code:
/*
Binds the context and drawable. This needs to be called when the currently bound framebuffer
has been changed during the draw method.
*/
- (void)bindDrawable;
It's method of GLKView, i think we need use this with glBindFramebuffer(GL_FRAMEBUFFER, defaultFBO).

Here is a simple example of using FBO in iOS, it uses this method.
https://github.com/glman74/simpleFBO

...

I fixed FBO rendering, really needed call this method Big Grin
Last change in my git, also needs replace function fbo_unbind() in native/gfx_es2/fbo.cpp on this -
Code:
#ifdef IOS
extern void bindDefaultFBO();
#endif
void fbo_unbind() {
    glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
#ifdef IOS
    bindDefaultFBO();
#endif
}



RE: PPSSPP iOS Port - the avenger - 02-23-2013 10:05 AM

great i will build it as soon as i can get cmake to work with me,is there any irc or such to help the proccess,it would be even better for someone to run it and upload the end result
edit:i tried to use cmake,what i did was first make build-ios directory inside ppsspp folder,cd to the build-ios and run the following command
cmake -DCMAKE_TOOLCHAIN_FILE=/ppsspp/ios/ios.toolchain.cmake -GXcode
and i got the following error
CMake Error: The source directory "/ppsspp/build-ios" does not appear to contain CMakeLists.txt

so i put the cmakelists.txt from the ppsspp folder in the build-ios and ran the same command then this came
-- Toolchain using default iOS SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
-- Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
CMake Error at CMakeLists.txt:949 (file):
file INSTALL cannot find "/ppsspp/build-ios/android/assets/ui_atlas.zim".


CMake Error at CMakeLists.txt:995 (file):
file INSTALL cannot find "/ppsspp/build-ios/ios/icon/Icon-72.png".


-- Configuring incomplete, errors occurred!
any help?


RE: PPSSPP iOS Port - rock88 - 02-23-2013 12:25 PM

the avenger,
You don't need move CMakeLists.txt, you just not print two dots, try this -
Code:
cmake -DCMAKE_TOOLCHAIN_FILE=../ios/ios.toolchain.cmake -GXcode ..



RE: PPSSPP iOS Port - the avenger - 02-23-2013 01:26 PM

(02-23-2013 12:25 PM)rock88 Wrote:  the avenger,
You don't need move CMakeLists.txt, you just not print two dots, try this -
Code:
cmake -DCMAKE_TOOLCHAIN_FILE=../ios/ios.toolchain.cmake -GXcode ..
i didn't understand what you said but i copied the code you put and it gave a new log

Code:
-- Toolchain using default iOS SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
-- Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR)
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing:  Threads_FOUND)
-- Installing: /ppsspp/build-ios/assets/ui_atlas.zim
-- Installing: /ppsspp/build-ios/assets/ppge_atlas.zim
-- Installing: /ppsspp/build-ios/assets/Icon-72.png
-- Installing: /ppsspp/build-ios/assets/[email protected]
-- Installing: /ppsspp/build-ios/assets/Icon.png
-- Installing: /ppsspp/build-ios/assets/[email protected]
-- Configuring done
CMake Error at CMakeLists.txt:299 (add_library):
  Cannot find source file:

    native/ext/cityhash/city.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /ppsspp/build-ios
Amers-Mac-Pro:build-ios amerrefai$ cmake -DCMAKE_TOOLCHAIN_FILE=../ios/ios.toolchain.cmake -GXcode ..
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
-- Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR)
-- Could NOT find Threads (missing:  Threads_FOUND)
-- Up-to-date: /ppsspp/build-ios/assets/ui_atlas.zim
-- Up-to-date: /ppsspp/build-ios/assets/ppge_atlas.zim
-- Up-to-date: /ppsspp/build-ios/assets/Icon-72.png
-- Up-to-date: /ppsspp/build-ios/assets/[email protected]
-- Up-to-date: /ppsspp/build-ios/assets/Icon.png
-- Up-to-date: /ppsspp/build-ios/assets/[email protected]
-- Configuring done
CMake Error at CMakeLists.txt:299 (add_library):
  Cannot find source file:

    native/ext/cityhash/city.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_TOOLCHAIN_FILE


-- Build files have been written to: /ppsspp/build-ios

and still no project file


RE: PPSSPP iOS Port - rock88 - 02-23-2013 01:39 PM

Sorry, my english is bad =(
Quote:Cannot find source file:
native/ext/cityhash/city.cpp
It seems you forgot to put in a folder "native" this native part


RE: PPSSPP iOS Port - the avenger - 02-23-2013 01:48 PM

(02-23-2013 01:39 PM)rock88 Wrote:  Sorry, my english is bad =(
Quote:Cannot find source file:
native/ext/cityhash/city.cpp
It seems you forgot to put in a folder "native" this native part
nevermind that i fixed the problem i got the project but the problem is that my method doesn't work with it so new plan,do you have it built on your phone,if yes then just copy the ppsspp.app upload somewhere and i will upload it on cydia


RE: PPSSPP iOS Port - rock88 - 02-23-2013 02:02 PM

Link
But we better understanding cause of why you are having problem with building. I think you can write logs of error/attach screenshots.


RE: PPSSPP iOS Port - the avenger - 02-23-2013 02:07 PM

(02-23-2013 02:02 PM)rock88 Wrote:  Link
But we better understanding cause of why you are having problem with building. I think you can write logs of error/attach screenshots.
i use a program for make that's called jailcoder that basically allows you to install the project on any device as if you were on a dev account but it doesn't seem to work with this project for some reason otherwise it works
edit:also you don't need to bother making an ipa out of it all i need is the .app to upload on cydia,also buffered rendering is working now perfectly
also you might want to research a bit about iosopendev sdk cause that might fix the dynarec problem

also it's been updated on the repo,now to get my hands on some type-0


RE: PPSSPP iOS Port - livisor - 02-23-2013 02:46 PM

(02-23-2013 02:36 PM)brujo55 Wrote:  
(02-23-2013 02:07 PM)the avenger Wrote:  
(02-23-2013 02:02 PM)rock88 Wrote:  Link
But we better understanding cause of why you are having problem with building. I think you can write logs of error/attach screenshots.
i use a program for make that's called jailcoder that basically allows you to install the project on any device as if you were on a dev account but it doesn't seem to work with this project for some reason otherwise it works
edit:also you don't need to bother making an ipa out of it all i need is the .app to upload on cydia,also buffered rendering is working now perfectly
also you might want to research a bit about iosopendev sdk cause that might fix the dynarec problem

also it's been updated on the repo,now to get my hands on some type-0
could you shared the deb here please,

I can confirm that buffered rendering now works on my ipod touch 4g.Also the newly added button that shows debug info is greatly apreciatted.Hopefully you can also get jit to work sometime soon.


RE: PPSSPP iOS Port - brujo55 - 02-23-2013 02:49 PM

upload the deb please idont have internet on my device now.


RE: PPSSPP iOS Port - scorpio16v - 02-23-2013 02:57 PM

Sound is still broken, jit (as expected) not working, fs seems to work, frame counter too.
Buffered rendering works. Stretch to screen doesn't work.
Nice progress.


RE: PPSSPP iOS Port - brujo55 - 02-23-2013 03:04 PM

someone can share the deb from repo,i dont have internet on my device, please


RE: PPSSPP iOS Port - kirillsptsn - 02-23-2013 04:09 PM

http://www.youtube.com/watch?v=cuMYc8zQCLc&feature=youtube_gdata
Great progress.
Pes 2013 used to show only black screen