How can I change JUCE_MODAL_LOOPS_PERMITTED=1 to use Tracktion Engine

I just updated JUCE to Version 6.1.2 and the Tracktion engine to Version 1.1.

I’m getting this build error:

#if ! JUCE_MODAL_LOOPS_PERMITTED
#error "You must define JUCE_MODAL_LOOPS_PERMITTED=1 to use Tracktion Engine"
#endif

(JUCE Modules/tracktion_engine/traction_engine.h)

I found a entry here and changed it but i didn’t help…

> 
> #if JUCE_ANDROID && ! defined (DOXYGEN)
>  #define JUCE_MODAL_LOOPS_PERMITTED 0
> #elif ! defined (JUCE_MODAL_LOOPS_PERMITTED)
>  /** Some operating environments don't provide a modal loop mechanism, so this flag can be
>      used to disable any functions that try to run a modal loop. */
>  #define JUCE_MODAL_LOOPS_PERMITTED 1
> #endif

(modules/juce_core/system/juce_PlatformDefs.h)

Can someone give me a hint, please?

Thanks!

How have you set up your project? Using the Projucer or CMake?
Basically you need to add a JUCE_MODAL_LOOPS_PERMITTED=1 in your preprocessor definitions.

1 Like

I’m using Projucer and found the right place in project settings. It successfully builds the code again.
Thanks!