Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile prx_simple - unknown type name 'SceDisplayFrameBuf' #61

Open
dortamiguel opened this issue Oct 29, 2020 · 8 comments
Open

Comments

@dortamiguel
Copy link

When I try to compile the prx_simple I get the following error

$ make                                                                                                                 [17:11:59]
Scanning dependencies of target plugin
[ 25%] Building C object prx_simple/CMakeFiles/plugin.dir/main.c.obj
/Users/miguel/src/quick_control_access/prx_simple/main.c: In function 'module_start':
/Users/miguel/src/quick_control_access/prx_simple/main.c:30:19: error: unknown type name 'SceDisplayFrameBuf'
   30 |  struct{int mutex;SceDisplayFrameBuf*fbuf;}*in = args;
      |                   ^~~~~~~~~~~~~~~~~~
/Users/miguel/src/quick_control_access/prx_simple/main.c:31:2: error: 'psvDebugScreenMutex' undeclared (first use in this function); did you mean 'psvDebugScreenPuts'?
   31 |  psvDebugScreenMutex = in->mutex;
      |  ^~~~~~~~~~~~~~~~~~~
      |  psvDebugScreenPuts
/Users/miguel/src/quick_control_access/prx_simple/main.c:31:2: note: each undeclared identifier is reported only once for each function it appears in
/Users/miguel/src/quick_control_access/prx_simple/main.c:32:2: error: 'psvDebugScreenFrameBuf' undeclared (first use in this function); did you mean 'psvDebugScreenPrintf'?
   32 |  psvDebugScreenFrameBuf = *in->fbuf;
      |  ^~~~~~~~~~~~~~~~~~~~~~
      |  psvDebugScreenPrintf
make[2]: *** [prx_simple/CMakeFiles/plugin.dir/main.c.obj] Error 1
make[1]: *** [prx_simple/CMakeFiles/plugin.dir/all] Error 2
make: *** [all] Error 2

Is it possible to fix this?

@Princess-of-Sleeping
Copy link
Contributor

#include <psp2/display.h>

@dortamiguel
Copy link
Author

Thank you! That gets rid of SceDisplayFrameBuf error, but I still see the ones for psvDebugScreenMutex and psvDebugScreenFrameBuf

@Princess-of-Sleeping
Copy link
Contributor

It seems that the program required for prx_sample is not enough

@bythos14
Copy link
Contributor

The sample is outdated, it broke when debugScreen got reimplemented.

@dortamiguel
Copy link
Author

So how I can help to fix this? I'm trying to look other repos and code to see if I can find a solution

@yne
Copy link
Contributor

yne commented Oct 30, 2020

@dortamiguel
Copy link
Author

I tried that but it seems like it has compile issues with latest vitasdk

@jvulcan
Copy link

jvulcan commented Mar 25, 2022

having the same issue here with psvDebugScreenMutex and psvDebugScreenFrameBuf,
you got something new?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants