#How can I set additional include paths for NCPatcher?
1 messages · Page 1 of 1 (latest)
wdym with standard includes
Such as <stdio.h>
so the standard library
Yeah
well first of all i don't think you want to use the OSX SDK on the nds just sayin 💀
it should be included by gcc, something that you wouldn't have to do yourself
send error
Same as Windows
yeah pretty much
Here's my .json
{
"$arm_flags": "-masm-syntax-unified -mno-unaligned-access -mfloat-abi=soft -mabi=aapcs",
"$c_flags": "-Os -fomit-frame-pointer -ffast-math -fno-builtin -nostdlib -nodefaultlibs -nostartfiles -DSDK_GCC -DSDK_FINALROM",
"$cpp_flags": "-fno-rtti -fno-exceptions -std=c++20",
"$asm_flags": "-Os -x assembler-with-cpp -fomit-frame-pointer",
"$ld_flags": "-lgcc -lc -lstdc++ --use-blx",
"backup": "backup",
"filesystem": "NSNDY",
"toolchain": "arm-none-eabi-",
"arm7": {},
"arm9": {
"target": "arm9.json",
"build": "build"
},
"pre-build": [],
"post-build": [],
"thread-count": 0
}
only the get executable path function is different for mac in ncp lmao
you shouldn't change anything in the config to get it working
so you got the arm-none-eabi-gcc for mac or what
Yeah
nono
these avoid linking against the standard static library
however the includes should be always there
For sanity
why do you need those includes? I will try to sell to you that you don't need them so that I don't need to help
I can’t include nsmb.h without it
oh
See here
they are required everywhere throughout sdk/nns
you cannot avoid them
gcc should have a way to print the include paths
-v flag
add -v to the c flags
and run compilation
I am pretty sure that in the past I saw ndy compile on mac didn't I?
or maybe without those headers
I'm on ARM mac now, might be different
this is scary
can you check at what point that path becomes nonexistent?
trace it back
Seems like there's no lib folder in /opt/homebrew/Cellar/arm-none-eabi-gcc/13.2.0/
Wait hold on
📉
either there is something wrong with your installation
or gcc did not ship with the libraries
in both cases concerning
This path exists:
/opt/homebrew/Cellar/arm-none-eabi-gcc/13.2.0/lib/gcc/arm-none-eabi/13.2.0/
This part does not:
../../../../arm-none-eabi/include/c++/13.2.0
Let me try an alternative way of installing it
Ok, that fixed it
It seems brew just didn’t install all of the gcc things
So I just got the version from the website
Then added to path as usual

does it work?
runs?
Lmao ikr
now you can put hiw to set up ncpatcher on mac on the wiki
Real
Last time we did this we had used the arm website I'm pretty sure


