SonicMastr / godot-vita

Godot Engine Vita Port based off of Stary2001 and EIREXE Contributions utilizing PVR_PSP2
https://godotengine.org
MIT License
251 stars 19 forks source link

Error building template #14

Closed L1ghtingBolt closed 2 years ago

L1ghtingBolt commented 2 years ago

Godot version: 3.rc5 OS/device including version: Windows 11 Issue description:

arm-vita-eabi-g++:arm-vita-eabi-g++:  error: error: /TP: No such file or directory
/I.: No such file or directory
arm-vita-eabi-g++:arm-vita-eabi-g++:  error: error: /Iplatform\vita: No such file or directory
/nologo: No such file or directory
arm-vita-eabi-g++: error: /DDEBUG_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /DDEV_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /DNO_EDITOR_SPLASH: No such file or directory
scons: *** [platform\vita\godot_vita.vita.debug.32.obj] Error 1
arm-vita-eabi-g++: error: /DMINIZIP_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /Ithirdparty\freetype\include: No such file or directory
arm-vita-eabi-g++: error: scons: *** [platform\vita\joypad_vita.vita.debug.32.obj] Error 1
/Ithirdparty\libpng: No such file or directory
arm-vita-eabi-g++: error: /Ithirdparty\zlib: No such file or directory
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\share\gcc-arm-vita-eabi\samples\common: Invalid argument
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\arm-vita-eabi\include\freetype2: Invalid argument
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\arm-vita-eabi\include: Invalid argument
arm-vita-eabi-g++: error: /I.: No such file or directory
arm-vita-eabi-g++: error: /Iplatform\vita: No such file or directory
scons: *** [platform\vita\audio_driver_vita.vita.debug.32.obj] Error 1

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.

L1ghtingBolt commented 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
SonicMastr commented 2 years ago

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