Error compiling HISE plugin
-
Hello forum,
i managed to build the HISE standalone app of the latest dev-branch but get en error message when trying to compile the HISE plugin (AMD 64 / Linux Mint 20.3).
it says:../../../../../HISE-develop/hi_backend/../hi_modules/../hi_scripting/scripting/api/ScriptingApiContent.h:2221:8: error: declaration of ‘using ScreenshotListener = struct hise::ScreenshotListener’ changes meaning of ‘ScreenshotListener’ [-fpermissive] 2221 | using ScreenshotListener = ScreenshotListener; | ^~~~~~~~~~~~~~~~~~ In file included from ../../../../../HISE-develop/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:122, from ../../../../../HISE-develop/hi_backend/../hi_modules/hi_modules.h:57, from ../../../../../HISE-develop/hi_backend/hi_backend.h:55, from ../../Source/../JuceLibraryCode/JuceHeader.h:17, from ../../Source/PluginProcessor.h:14, from ../../Source/PluginProcessor.cpp:13: ../../../../../HISE-develop/hi_backend/../hi_modules/../hi_scripting/scripting/api/ScriptingGraphics.h:37:8: note: ‘ScreenshotListener’ declared here as ‘struct hise::ScreenshotListener’ 37 | struct ScreenshotListener | ^~~~~~~~~~~~~~~~~~ make: *** [Makefile:248: build/intermediate/Release/PluginProcessor_a059e380.o] Fehler 1
Any ideas on how to avoid that?
-
Add the
-fpermissive
flag or use my fork (development branch) which definitely compiles on Linux Mint. https://github.com/davidhealey/HISE/tree/developmentAlso use gcc/c++ 8, 9, 10, or 11 because HISE won't compile with 12.
-
@d-healey said in Error compiling HISE plugin:
Add the
-fpermissive
flagGreat, that worked fine! :) Thank you so much!
-
@toxonic It was in the error message you posted ;)