Use of undeclared identifier 'setupDefaultMeterColours'

I’m trying to build a JUCE application on Mac. When I open in XCode and Build, I get a series of errors related to the identifier “foley” being undefined. What could the problem be? As far as I can tell, this is in headers provided by JUCE - unmodified.

Any ideas what I have to change to get things compiling?

Thanks,

  • da

/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:125:12: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:131:9: Use of undeclared identifier ‘setupDefaultMeterColours’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:133:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:134:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:135:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:136:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:137:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:138:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:139:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:140:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:141:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:142:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:143:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:144:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:145:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:146:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:147:19: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppUtils.h:643:5: Use of undeclared identifier ‘foleys’
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:149:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:149:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppUtils.h:35:33: Expanded from macro ‘Meter’
Parse Issue Group
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppLookAndFeel.h:125:20: Expected class name
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/PluginProcessor.cpp:9:
/Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:10: In file included from /Users/darndt/Projects/Volume/Dev/WS/Juce-plugins/VolumeWsComm/Source/AppInc.h:147:

It’s kinda hard to tell from here but it seems like you might have a semicolon or bracket missing to me.

To me it looks like the project you want to work on includes ff_meters by @Daniel. Did you make sure that this external module is present wherever your project looks for it?

That is the wrong way to go.

Modules are compiled without being added to the File section in Projucer. Just like you didn’t have to add the juce source files, and they are still compiled.

When you add a module and save the project, there is a stub automatically generated in your project, one header and one implementation per module. You can see them in JuceLibraryCode, but tbh. there is not much to see, just a single line including the module sources.

TL;DR: add the module, for 3rd party I prefer to use “Add from specific location”. Make sure to save the project in Projucer and reopen it in your IDE.

If you tell us which project you are trying to build I might be able to help out, since I wrote ff_meters