esp32 on mozzi 2.0

29 views
Skip to first unread message

Daniel Llermaly

unread,
Jul 17, 2024, 8:05:01 PM (10 days ago) Jul 17
to Mozzi-users
hello friends, good afternoon
I finally had time to try the mozzi 2.0.
I'm trying to test the sinewave example on an esp32 and I have this compilation error that repeats itself many times.

Is the library compatible or should I change something in the header?
greetings and thank you very much


In file included from /home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath.h:1386:0,
                 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/internal/../AudioOutput.h:60,
                 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/internal/config_checks_generic.h:199,
                 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/MozziGuts.h:31,
                 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/Mozzi.h:33,
                 from /tmp/arduino_modified_sketch_975341/Sinewave.ino:23:
/home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath_Autotests.h: In function 'void FixMathPrivate::static_autotests()':
/home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath_Autotests.h:23:35: error: expected ',' before ')' token
       static_assert(a < b && b < c)

tomco...@live.fr

unread,
Jul 19, 2024, 10:09:24 AM (8 days ago) Jul 19
to Mozzi-users
Hi,
This is a problem with FixMath, that Mozzi is using (and which is also managed by Mozzi's team). The bug was corrected in Github, but not published, the new version (v1.0.4) of FixMath which should appear in the Arduino IDE shortly will correct that.
Best,

Daniel Llermaly

unread,
Jul 19, 2024, 1:48:41 PM (8 days ago) Jul 19
to Mozzi-users
Tom, thank you very much for the response.
In the Arduino IDE, version 1.0.4 of fixmath was already available, I updated it and I still have an error when compiling the sinewave example for the esp32. Should I wait for that version of the library to be updated?

greetings and thank you very much
below the new error


In file included from /home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath.h:1386:0,
 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/internal/../AudioOutput.h:60,
 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/internal/config_checks_generic.h:199,
 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/MozziGuts.h:31,
 from /home/dll/snap/arduino/current/Arduino/libraries/Mozzi/Mozzi.h:33,
 from /home/dll/Electronic Projects/arduino-drum-machine-main/arduino-drum-machine_v10/arduino-drum-machine_v10.ino:1:

/home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath_Autotests.h: In function 'void FixMathPrivate::static_autotests()':
/home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath_Autotests.h:47:35: error: expected ',' before ')' token
 static_assert(b - a == c - b);
 ^
/home/dll/snap/arduino/current/Arduino/libraries/FixMath/src/FixMath_Autotests.h:47:35: error: expected string-literal before ')' token
exit status 1
Error compiling for board ESP32 Dev Module.

tomco...@live.fr

unread,
Jul 21, 2024, 9:41:28 AM (6 days ago) Jul 21
to Mozzi-users
My bad, a few got forgotten in the update. Will try to fix that very soon, should be good with 1.0.5.

Sorry for that.

tomco...@live.fr

unread,
Jul 21, 2024, 9:50:43 AM (6 days ago) Jul 21
to Mozzi-users
Just published it. Just be in the IDE soon.
Reply all
Reply to author
Forward
0 new messages