Makefile project cannot resolve include dirs CLion 2020.2

Completed

I imported an existing Makefile project into CLion 2020.2. The compilation works as expected from the CLion 2020.2.

When I'm editing some src files, I'm seeing a lot of error messages: `file not found` to headers file.

As a results symbols are not resolved:.

 

What could be the problem?

Lior

0
6 comments

Hi Lior!

How have you opened the project? Here is an instruction for working with Makefile projects in CLion - https://www.jetbrains.com/help/clion/makefiles-support.html. Have you done the same actions?

0

Hi Anna,

 

Thank you for your comment.

I followed those steps and the build process works as expected from the CLion.
The red marks are still exists.

 

Lior

0

Lior, please send the idea.log file (`Help | Show Log in ...`) to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names). 

0

Anna, I sent the log to the requested address. In reply I got this message:

Your request (#2798824) has been received and is being reviewed by our support staff.

0

Yes, I see it, thanks. We will investigate the situation.

0

Posting the answer here too:

The problem with Bitcoin project is that it uses libtool (and also ccache), making CLion unable (so far) to recognize compiler invocations. See https://youtrack.jetbrains.com/issue/CPP-19549 for more details. We have it in CLion 2020.3 roadmap: https://blog.jetbrains.com/clion/2020/08/clion-2020-3-roadmap/

Additionally, the project uses Automake macros, so even if you configure it with --disable-ccache, CLion will recognize nothing.

0

Please sign in to leave a comment.