Closed L1ghtingBolt closed 2 years ago
In linux it gives:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
39 | #include <EGL/egl.h> // EGL library
| ^~~~~~~~~~~
compilation terminated.
In file included from platform/vita/context_egl_vita.cpp:31:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
39 | #include <EGL/egl.h> // EGL library
| ^~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/os_vita.vita.debug.32.o] Error 1
scons: *** [platform/vita/context_egl_vita.vita.debug.32.o] Error 1
In file included from platform/vita/os_vita.h:35,
from platform/vita/godot_vita.cpp:37:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
39 | #include <EGL/egl.h> // EGL library
| ^~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/godot_vita.vita.debug.32.o] Error 1
scons: building terminated because of errors.
It fixed after installing PVR_PSP2 Stubs Now gives this error:
scons: Reading SConscript files ...
Auto-detected 6 CPU cores available for build parallelism. Using 5 cores by default. You can override it with the -j argument.
[]
['taihen_stub', 'SceLibKernel_stub', 'SceKernelThreadMgr_stub', 'SceAppMgr_stub', 'SceIofilemgr_stub', 'SceSysmodule_stub', 'SceDisplay_stub', 'SceFios2_stub', 'SceCtrl_stub', 'SceMotion_stub', 'SceTouch_stub', 'SceAudio_stub', 'ScePower_stub', 'jpeg', 'png', 'freetype', 'opus', 'vorbis', 'ogg', 'z', 'zstd', 'pcre2-32', 'theora', '-llibgpu_es4_ext_stub.a', '-llibIMGEGL_stub.a', '-llibGLESv2_stub.a']
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> platform/vita/os_vita.cpp
[Initial build] Compiling ==> platform/vita/godot_vita.cpp
[Initial build] Compiling ==> platform/vita/context_egl_vita.cpp
[Initial build] Compiling ==> main/input_default.cpp
[Initial build] Compiling ==> main/main.cpp
In file included from platform/vita/context_egl_vita.cpp:31:
platform/vita/context_egl_vita.h:42:10: fatal error: gpu_es4/psp2_pvr_hint.h: No such file or directory
42 | #include <gpu_es4/psp2_pvr_hint.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/context_egl_vita.vita.opt.debug.32.o] Error 1
In file included from platform/vita/os_vita.h:35,
from platform/vita/os_vita.cpp:31:
platform/vita/context_egl_vita.h:42:10: fatal error: gpu_es4/psp2_pvr_hint.h: No such file or directory
42 | #include <gpu_es4/psp2_pvr_hint.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/os_vita.vita.opt.debug.32.o] Error 1
In file included from platform/vita/os_vita.h:35,
from platform/vita/godot_vita.cpp:37:
platform/vita/context_egl_vita.h:42:10: fatal error: gpu_es4/psp2_pvr_hint.h: No such file or directory
42 | #include <gpu_es4/psp2_pvr_hint.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/godot_vita.vita.opt.debug.32.o] Error 1
^Cscons: *** [main/main.vita.opt.debug.32.o] Build interrupted.
scons: *** [main/input_default.vita.opt.debug.32.o] Build interrupted.
scons: Build interrupted.
scons: building terminated because of errors.
scons: writing .sconsign file.
[Time elapsed: 00:00:09.515]
After adding some includes It fails at 100%
[100%] /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/bin/ld: platform/vita/context_egl_vita.vita.opt.debug.32.o: in function `ContextEGL_Vita::initialize()':
context_egl_vita.cpp:(.text+0x5c): undefined reference to `PVRSRVInitializeAppHint(_PVRSRV_PSP2_APPHINT_*)'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/bin/ld: context_egl_vita.cpp:(.text+0x68): undefined reference to `PVRSRVCreateVirtualAppHint(_PVRSRV_PSP2_APPHINT_*)'
collect2: error: ld returned 1 exit status
This isn't a project problem. This is a setup problem. You didn't actually fully install PVR_PSP2. You can install it in an easier manner from here
Godot version: 3.rc5 OS/device including version: Windows 11 Issue description:
Steps to reproduce: Cloning the project and running:
scons platform=vita
gives those errors. Not really sure why every path appears with "/I" in the beggining of it.