I’m getting a compilation error for the majority of the .mm files in my JUCE projects. I’m currently working on two and they both fail to build because of this error.
Could anyone provide any guidance?
JuceLibraryCode/include_juce_video.mm:9:10: 'juce_video/juce_video.mm' file not found
JuceLibraryCode/include_juce_opengl.mm:9:10: 'juce_opengl/juce_opengl.mm' file not found
JuceLibraryCode/include_juce_gui_extra.mm:9:10: 'juce_gui_extra/juce_gui_extra.mm' file not found
Have you upgraded to Xcode 10? There is an issue where it can’t deal with paths containing the ~ character which could be what you’re seeing. There’s a fix on the develop branch, so you’ll need to recompile the Projucer with it and re-save the project.
Please let me know if I can supply anything that would make this easier from your perspective… I am simply getting errors like the above for various modules that are a part of JUCE.
If new projects are working correctly then the issue must be with the search paths for the modules being different - compare the two project files and see how the modules are added and the search paths that are being used.
Go to Modules. Pick a module. Select the correct path to JUCE/modules.
Then, click on the configuration gear. Select the module with the correct path. Use Set paths for all modules…