Closed wolfmanvid01 closed 5 months ago
Either the PS2 SDK has some new breaking changes again or you're using the wrong version. Are you using Docker to build this or are you building manually?
i tried with docker, with compiling the sdk, and with the binaries of the sdk. And in two different machines. I found out that the SDK got updates 4 days ago
UPDATE:
it needed:
#include
But now i got another error:
src/pc/gfx/gfx_pc.c:391:34: error: passing argument 1 of 'gfx_rapi->upload_texture_ext' from incompatible pointer type [-Wincompatible-pointer-types] 391 | gfx_rapi->upload_texture_ext(_rgba16buf, width, height, G_IM_FMT_RGBA, G_IM_SIZ_16b, NULL);
where "rgba16_buf" got a compilator notification of:
uint16_t {aka short unsigned int }
Ah, this is a certified GCC14 moment. For now replace gfx_rapi->upload_texture_ext(rgba16_buf
with gfx_rapi->upload_texture_ext((uint8_t *)rgba16_buf
.
It worked.
But theres another thing to add before it can compile, and it is
#include
I tested it and works PERFECT now. Thanks for everything
These changes are now in the repo.
src/pc/pc_main.c: In function 'init_drivers': src/pc/pc_main.c:157:9: error: implicit declaration of function 'init_ps2_filesystem_driver' [-Wimplicit-function-declaration] 157 | init_ps2_filesystem_driver(); | ^
~~~~~src/pc/pc_main.c: In function 'deinit_drivers': src/pc/pc_main.c:162:9: error: implicit declaration of function 'deinit_ps2_filesystem_driver' [-Wimplicit-function-declaration] 162 | deinit_ps2_filesystem_driver(); | ^~~~~~~~