Header files not found in Makefile project
Completed
Hello.
I'm trying to get CLion to work with https://github.com/ipxe/ipxe , a Makefile
project. CLion is failing to find any of the project's own header files.
I've tried numerous things:
- Marking
src/
as “Project sources and headers” - Marking
src/
as “Library files” - Marking
src/include/
as “Project sources and headers” - Marking
src/include/
as “Library files” - A combination of the above items
- Making
src/
my project root and then retrying the above items - Loading each of the
Makefile
s
What's strange is that if I start a new project and point it at a repo clone, for the few seconds before the Makefile
is indexed, I can actually resolve headers.
I have the impression I'm making a very simple oversight here.
Please sign in to leave a comment.
Hello!
To begin with, please do
Tools | Makefile | Clean and Reload Makefile Project
, right-click in the Build tool window, and enable the "Show Successful Steps" option:After that, please do the following:
It looks like the project loading was completed without errors, but the source files visible in the upper right part of the screen don't have “blue square” badges which means they were not recognized as belonging to the project by CLion.
So far, I can't reproduce the issue on my side:
1. Files from the “crypto” subdirectory are recognized as belonging to the project:
2. Headers are not marked as not found in
crypto/rbg.c
:Please once again do
Tools | Makefile | Clean and Reload Makefile Project
, and then send the following materials to clion-support at jetbrains.com:Help | Collect Logs and Diagnostic Data
. Note that logs might contain private user information (like file paths and names).I closed the project, purged the
.idea
directories (I had one at the project root and another undersrc/
, then opened the project anew, then right-clickedsrc/Makefile
, selected “Load Makefile Project,” and checked “Clean project.”I see the little blue badge, but the headers are still unresolvable.
I'll email clion-support, thank you.