shorepine / amy

AMY - A high-performance fixed-point Music synthesizer librarY for microcontrollers
https://shorepine.github.io/amy/
MIT License
222 stars 14 forks source link

Build failure of RP2040 example #250

Open znmeb opened 18 hours ago

znmeb commented 18 hours ago

I'm trying to build the Pico SDK example and the cmake step works, but the make step gets compile errors:

/home/znmeb/amy/src/amy-example-rp2040.c: In function 'main':
/home/znmeb/amy/src/amy-example-rp2040.c:172:5: error: too few arguments to function 'example_voice_chord'
  172 |     example_voice_chord(0); // juno patch 0
      |     ^~~~~~~~~~~~~~~~~~~
In file included from /home/znmeb/amy/src/amy-example-rp2040.c:21:
/home/znmeb/amy/src/examples.h:19:6: note: declared here
   19 | void example_voice_chord(uint32_t start, uint16_t patch);
      |      ^~~~~~~~~~~~~~~~~~~
/home/znmeb/amy/src/amy-example-rp2040.c:176:13: error: too few arguments to function 'example_voice_chord'
  176 |             example_voice_chord(130); // dx7 patch 2
      |             ^~~~~~~~~~~~~~~~~~~
/home/znmeb/amy/src/examples.h:19:6: note: declared here
   19 | void example_voice_chord(uint32_t start, uint16_t patch);
      |      ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/amy_example.dir/build.make:76: CMakeFiles/amy_example.dir/amy-example-rp2040.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:2079: CMakeFiles/amy_example.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Here's the whole logfiles from cmake and make. This is on Ubuntu 24.04 with the SDK 2.0.0 (the one that works for RP2350 boards). By the way, I have some Pico 2s and I can test on those if you want.

znmeb commented 18 hours ago

logfiles.zip

These are the logfiles.