fgsfdsfgs / sm64-port

PS2, PS3, OG Xbox and DOS ports of sm64-port.
https://discord.gg/7bcNTPK
249 stars 39 forks source link

BUG... Cant compile. Error #95

Closed wolfmanvid01 closed 3 months ago

wolfmanvid01 commented 4 months ago

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(); | ^~~~~~~~

fgsfdsfgs commented 4 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?

wolfmanvid01 commented 4 months ago

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

wolfmanvid01 commented 4 months ago

UPDATE:

it needed: #include in ./src/pc/pc_main.c. to solve the previous bug

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 }

fgsfdsfgs commented 4 months ago

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.

wolfmanvid01 commented 4 months ago

It worked.

But theres another thing to add before it can compile, and it is #include in src/pc/controller/controller_ps2.c

I tested it and works PERFECT now. Thanks for everything

fgsfdsfgs commented 3 months ago

These changes are now in the repo.