-
Notifications
You must be signed in to change notification settings - Fork 10
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
Debug build is not working, usage of JUCE's CMake API seems incorrect #175
Labels
bug
Something isn't working
Comments
This seems to be breaking the build in I get a linker error again, and the build commands show that
|
Draft
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Doing a basic debug build causes a linker error:
JUCE explains why this appears:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build completes without error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Compare these invocations from the same build in my project:
First one is building a file in this library, the second is building the generated Main.cpp file for my project. There are many extra JUCE compile flags on the second invocation, and we can also see the
_DEBUG
, which is directly responsible for the failing linker.There are a few topics on the JUCE forum discussing similar use cases: https://forum.juce.com/t/how-to-create-a-static-library-that-use-juce-in-official-cmake/50080/3. Generally the advice seems to be that the same JUCE flags are required everywhere where a JUCE header gets included.
As far as I understand, the current build setup in this library has a chance to produce errors (linker, compiler or possibly UB) depending on the JUCE flags set by the user project. To fix this, there needs to be a way for the user project to supply the correct JUCE flags to this library. Possibly instead of linking directly to the JUCE modules in
juce-end-to-end/source/cpp/CMakeLists.txt
Lines 24 to 43 in 51c5200
The text was updated successfully, but these errors were encountered: