RealAlexZ / MultiMeter

A comprehensive set of AU/VST real-time audio analysis tools in one window implemented with JUCE 6.
GNU General Public License v3.0
28 stars 1 forks source link

Linux - Errors when building #1

Open crshrprt opened 9 months ago

crshrprt commented 9 months ago

Thank you for this interesting plugin.

When trying to build the plugin on Linux, Debian Sid, I got some errors:

../../Source/PluginEditor.cpp:1681:18: error: ‘log10f’ is not a member of ‘std’; did you mean ‘log1pf’?
 1681 |             std::log10f(
      |                  ^~~~~~
      |                  log1pf
../../Source/PluginEditor.cpp:1690:18: error: ‘log10f’ is not a member of ‘std’; did you mean ‘log1pf’?
 1690 |             std::log10f(
      |                  ^~~~~~
      |                  log1pf
../../Source/PluginEditor.cpp:1704:18: error: ‘log10f’ is not a member of ‘std’; did you mean ‘log1pf’?
 1704 |             std::log10f(
      |                  ^~~~~~
      |                  log1pf
RealAlexZ commented 9 months ago

Hi,

Thank you so much for pointing out this issue! This is a fairly surprising issue to me, because my source code compiles on both MacOS and Windows. I checked c++ reference and std::log10f is a part of their library. I will try to see if there is a library that I am missing and reach back to you!

Sincerely, Alex

RealAlexZ commented 9 months ago

Is there any chance that you could try including cmath in pluginProcessor.h and see if it compiles? Thanks in advance!

crshrprt commented 9 months ago

I tried to add #include <cmath> in all the files but I get the same errors.

crshrprt commented 9 months ago

I was able to compile it using gcc/g++ 14 but when I open the plugin's GUI it crashes the DAW.

I tested it in Ardour 8.2, BespokeSynth nightly build and Carla 2.5.8.

RealAlexZ commented 9 months ago

Hi, thank you very much for confirming that it builds using GCC/G++! One issue that persists now is that the GUI crashes when it analyzes audio channels, and I think that it works fine with MIDI ones. Is there any chance that you could test it with MIDI data?

So sorry for all the bugs in my code, and thank you very much for pointing out the issues in the plugin!

crshrprt commented 9 months ago

It crashes also when the plugin is loaded on a MIDI track.