Thread Closed 
 
Thread Rating:
  • 14 Votes - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP iOS Port
02-23-2013, 04:47 AM (This post was last modified: 02-23-2013 04:51 AM by xsacha.)
Post: #91
RE: PPSSPP iOS Port
(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.
Find all posts by this user
02-23-2013, 04:52 AM (This post was last modified: 02-23-2013 04:55 AM by brujo55.)
Post: #92
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-23-2013, 05:31 AM (This post was last modified: 02-23-2013 06:15 AM by rock88.)
Post: #93
RE: PPSSPP iOS Port
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
}
Visit this user's website Find all posts by this user
02-23-2013, 10:05 AM (This post was last modified: 02-23-2013 11:28 AM by the avenger.)
Post: #94
RE: PPSSPP iOS Port
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?
Find all posts by this user
02-23-2013, 12:25 PM (This post was last modified: 02-23-2013 12:44 PM by rock88.)
Post: #95
RE: PPSSPP iOS Port
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 ..
Visit this user's website Find all posts by this user
02-23-2013, 01:26 PM (This post was last modified: 02-23-2013 01:26 PM by the avenger.)
Post: #96
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-23-2013, 01:39 PM
Post: #97
RE: PPSSPP iOS Port
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
Visit this user's website Find all posts by this user
02-23-2013, 01:48 PM
Post: #98
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-23-2013, 02:02 PM
Post: #99
RE: PPSSPP iOS Port
Link
But we better understanding cause of why you are having problem with building. I think you can write logs of error/attach screenshots.
Visit this user's website Find all posts by this user
02-23-2013, 02:07 PM (This post was last modified: 02-23-2013 02:27 PM by the avenger.)
Post: #100
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-23-2013, 02:46 PM
Post: #101
RE: PPSSPP iOS Port
(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.
Find all posts by this user
02-23-2013, 02:49 PM
Post: #102
RE: PPSSPP iOS Port
upload the deb please idont have internet on my device now.
Find all posts by this user
02-23-2013, 02:57 PM
Post: #103
RE: PPSSPP iOS Port
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.
Find all posts by this user
02-23-2013, 03:04 PM
Post: #104
RE: PPSSPP iOS Port
someone can share the deb from repo,i dont have internet on my device, please
Find all posts by this user
02-23-2013, 04:09 PM
Post: #105
RE: PPSSPP iOS Port
http://www.youtube.com/watch?v=cuMYc8zQC...tube_gdata
Great progress.
Pes 2013 used to show only black screen
Find all posts by this user
Thread Closed 


Forum Jump: