memsom / PSPDNA

PSP DNA - a small DotNet runtime for Sony PSP
BSD 2-Clause "Simplified" License
23 stars 2 forks source link

Seeking Help with Compiling PSPDNA on Windows 10 Using minpsp SDK #4

Open MariuszOnik opened 1 week ago

MariuszOnik commented 1 week ago

Hi,

First of all, I want to say that I'm really excited about the idea of writing code for the PSP in C#, and I truly admire the work you've done with PSPDNA. It's an incredible project!

I'm a beginner programmer, and I'm currently learning the ropes. I'm trying to compile the PSPDNA project using the PSP SDK I downloaded from here, which is based on the minpsp project. However, I'm encountering the following error during the build process on my Windows 10 machine:

psp-gcc -I. -I/include -I. -IC:/pspsdk/psp/sdk/include -Os -I. -g -G3 -DPSP -D_PSP_FW_VERSION=500 -c -o native/dna.o native/dna.c In file included from native/dna.c:44: native/Compat.h:71:21: error: strings.h: No such file or directory native/dna.c: In function 'main': native/dna.c:114: warning: passing argument 1 of 'run' discards qualifiers from pointer target type native/dna.c:134: warning: passing argument 1 of 'run' discards qualifiers from pointer target type C:\pspsdk\bin\make.exe: *** [native/dna.o] Error 1

It seems like the strings.h file is missing when trying to compile native/dna.c. I’m not sure if there’s something specific I need to configure with the SDK or the project to resolve this issue.

Could you provide some guidance on how to fix this error and successfully compile the native code?

Thanks for your assistance!

MariuszOnik commented 1 week ago

I’ve checked, and the strings.h file is located in C:\pspsdk\psp\sdk\include\libc. I tried adding the libc directory to the INCDIR in the makefile like this:

INCDIR := $(INCDIR) $(PSPSDK)/include $(PSPSDK)/include/libc

However, this didn't solve the issue. The examples from the minpsp SDK compile just fine.