Closed Lucky4Luuk closed 2 years ago
It looks like you're overriding the flags that cargo psp
provides to cargo. By default, running cargo psp
will build core
, along with panic_unwind
, etc, fixing those errors.
Try running just cargo psp
instead without the flags.
I see. When I was not trying to build core myself, I got an error from a no_std library (glam) that core was missing, so I figured I had to enable it myself.
Out of curiosity, were you able to get a PSP project to build with glam as a dependency?
I did not manage to build it with glam, without glam everything was fine. I'll do some more testing tomorrow, otherwise I'll just pick a different math library :)
Other no_std libraries seem to work fine (I couldn't resist testing some more today), must be because glam is a little weird in no_std.
Nice! Yeah glam would probably need some extra work. I've messed with fontdue and hecs, oddio should work too but hasn't been tested.
In the README it mentions core support. Doing
cargo psp -Z build-std=core
fails, however, and so doescargo psp -Z build-std=core,alloc
(without alloc, I get a few more errors about alloc not being available, I imagine to use core I also have to enable the alloc crate). I'm using the latest version of the library, with theembedded-graphics
feature enabled.I get the following error:
Any idea what this means?