Audiolux icon indicating copy to clipboard operation
Audiolux copied to clipboard

Math.h no such file or directory (has to be lowercase math.h)

Open softhack007 opened this issue 2 years ago • 4 comments

I got compilation errors on linux based hosts, because math.h has to be spelled all lowercase.

libdeps/esp32_4MB_M_debug/Audiolux/curtain.cpp:4:18: fatal error: Math.h: No such file or directory

https://github.com/CymaSpace/Audiolux/blob/81056ab8f59cb4a801b541ba57a62786b4b93a73/spokes.cpp#L2-L4

https://github.com/CymaSpace/Audiolux/blob/81056ab8f59cb4a801b541ba57a62786b4b93a73/curtain.cpp#L2-L4

Edit: I think the same is true for Assert.h, as the file is assert.h.

softhack007 avatar Oct 12 '23 15:10 softhack007

Hi Frank, thank you for identifying this issue, the library is indeed untested on ESP32. It is known to work well on Teensy (with the Octoboard break-out) and more capable Arduino boards with sufficient SRAM. For most part we have transitioned our efforts to using WLED on ESP32, in particular the Sound Reactive and Moon Module branches. We will be incorporating some of the Audiolux principles in a merge request at a future date if we can rally some developer support around the need for more cymatics/science based sound visualization algorithms for WLED compatible devices. If there is interest in exploring this, feel free to find me on Discord (mylesdebastion) to discuss further!

Myles

Message ID: @.***>

-- Web http://www.cymaspace.org/ | Facebook http://www.facebook.com/cymaspace | Instagram http://www.instagram.com/cymaspace | Twitter http://www.twitter.com/cymaspace | Youtube http://www.youtube.com/user/CymaSpace/videos

CymaSpace avatar Oct 12 '23 18:10 CymaSpace

lowercase math.h doesn't work

error: no matching function for call to 'max(double, float&)'

netmindz avatar Oct 12 '23 18:10 netmindz

error: no matching function for call to 'max(double, float&)'

Might be a follow-up error on esp32 - the templates for max() and min() expect exactly the same type for both parameters.

softhack007 avatar Oct 12 '23 18:10 softhack007

Hi Frank, thank you for identifying this issue, the library is indeed untested on ESP32. It is known to work well on Teensy (with the Octoboard break-out) and more capable Arduino boards with sufficient SRAM. For most part we have transitioned our efforts to using WLED on ESP32, in particular the Sound Reactive and Moon Module branches. We will be incorporating some of the Audiolux principles in a merge request at a future date if we can rally some developer support around the need for more cymatics/science based sound visualization algorithms for WLED compatible devices. If there is interest in exploring this, feel free to find me on Discord (mylesdebastion) to discuss further! Myles

Hi Myles, thanks there is definitely interest in more effects for WLED (or WLEDMM :-) ) I'm currently short of time, but let's get into contact 👍

softhack007 avatar Oct 12 '23 18:10 softhack007