rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
117 stars 17 forks source link

Cannot build, '3dsx.specs': No such file or directory #131

Closed hen6003 closed 1 year ago

hen6003 commented 1 year ago

I cannot build the examples and get this error:

  = note: arm-none-eabi-gcc: fatal error: cannot read spec file '3dsx.specs': No such file or directory

presumably referring to this file

/opt/devkitpro/devkitARM/arm-none-eabi/lib/3dsx.specs

I can fix it by copying that file into the directory, but then I get more errors to do with libc, libm, and 3dsx_crt0.o.

Am I doing something wrong?

Meziu commented 1 year ago

Did you correctly install the dkP toolchain? It seems like you are missing most of the needed packages.

If you did install devkitARM and 3ds-dev correctly, I suggest you to check for your current arm-none-eabi-gcc, as I stated here.

hen6003 commented 1 year ago

I have been making stuff in C find, I do have arm-none-eabi-gcc here:

/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
hen6003 commented 1 year ago

Setting export PATH="/opt/devkitpro/devkitARM/bin/":$PATH fixed the issue, thanks for the help/pointers!