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 Makefiles

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.

0
4 comments

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:

  1. Send us a screenshot of the Build tool window.
  2. Click on the "Collecting project information" step in this window and send us the entire output (which will be shown in the right panel) as a text file.
0

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:

  • the entire output of the "Collecting project information" step as a text file;
  • the link to this forum post;
  • the resulting archive of Help | Collect Logs and Diagnostic Data. Note that logs might contain private user information (like file paths and names).
0

I closed the project, purged the .idea directories (I had one at the project root and another under src/, then opened the project anew, then right-clicked src/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.

0

Please sign in to leave a comment.