-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BinaryData.h might be included from two different folders, causing errors #573
Comments
I initially thought this was an issue with my own project, but apparently JUCE's example projects also demonstrate this behavior. All that's needed to reproduce the duplicate definitions error is to first build with the Xcode project exported by the Projucer as usual, then try building with cmake (via FRUT). |
I don't understand how building with the Xcode project exported by Projucer would have any impact on what the CMake-based build system does. Are you using the |
I can reproduce the issue when building the
What is happening in details:
Projucer actually adds the I guess I should make a PR on JUCE to replace all existing |
I opened a pull request on JUCE to propose to always include If these changes get merged into JUCE, I will make a pull request on FRUT to:
|
I had a
JuceLibraryCode
folder withBinaryData.h
under my root project folder from a previous non-FRUT build, and after building with FRUT also underbuild/JuceLibraryCode
.The two files both got included in some source files, causing variable redefinition errors.
Perhaps add a step to the README suggesting to remove JuceLibraryCode from non-FRUT builds to make sure this doesn't happen?
Or, try to handle it via include paths, but I guess this could prove tricky for all projects (e.g. in my project I had
../../
as an include path, which is what Xcode needs to find some include folders under the project's root folder (without explicitly specifying../../
every time in theinclude
).The text was updated successfully, but these errors were encountered: