Skip to content
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

CMake cannot find contents of JUCE/modules #756

Closed
RobertLakatosh opened this issue Feb 5, 2023 · 3 comments
Closed

CMake cannot find contents of JUCE/modules #756

RobertLakatosh opened this issue Feb 5, 2023 · 3 comments

Comments

@RobertLakatosh
Copy link

CMake Error at cmake/tools/CMakeLists.txt:39 (message):
Could not find juce_core, juce_data_structures, juce_events, juce_graphics
and juce_gui_basics when searching in the following directories:
$({JUCE_ROOT}/modules

I'm pretty stumped on this one, especially because I know all of the juce_modules are in my JUCE/modules folder. I don't know CMake very well, so it might be a simple error. I'm thinking the error occurred somewhere in the foreach loop in the above CMakeLists.txt, but I can't find much documentation on the syntax. Any thoughts?

@McMartin
Copy link
Owner

McMartin commented Feb 5, 2023

Hi @RobertLakatosh

Thanks for using FRUT and opening this issue!

Did you copy-paste the error message? If yes, it seems that there is an extraneous opening parenthesis character. Instead of $({JUCE_ROOT}/modules, it should be ${JUCE_ROOT}/modules.

If that's not the actual issue, could you please copy-paste the complete output of CMake, including the stack trace.

Thanks!

@RobertLakatosh
Copy link
Author

I fixed the syntax error with the extraneous opening parenthesis, but I am still getting the following error. Here is the entire output message from the CMake gui:

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
CMake Error at cmake/tools/CMakeLists.txt:40 (message):
Could not find juce_core, juce_data_structures, juce_events, juce_graphics
and juce_gui_basics when searching in the following directories:
../../JUCE/modules

Configuring incomplete, errors occurred!
See also "C:/Users/ksa10/Desktop/FRUT/Build/CMakeFiles/CMakeOutput.log".

@RobertLakatosh
Copy link
Author

The issue is resolved now. I had to use CMake through command line instead of the CMake gui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants