This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Configure/Language support/Include import problems

Tags: None
(comma "," separated)
sym39
Registered Member
Posts
5
Karma
0
OS
Hi,

I am trying to configure include import for a project with custom makefiles (autotools).
To avoid mixing objects files (.o) and sources files, I have configured the project in a build subdirectory - here is the layout:

Code: Select all
project_root/build/Makefile
project_root/build/src/Makefile
project_root/build/src/source_path1/Makefile
[...]
project_root/src/toto.hh
project_root/src/toto.cc
project_root/src/source_path1/misc.hh
[...]


toto.cc:
Code: Select all
#include "toto.hh"
[...]


With this layout, kdevelop is unable to locate the toto.hh file.
I tried to manually add the path in the Configuree/Language support/Include import problems but even if kdevelop reparses the files, the custom include paths are not taken into account.

I am using kdevelop 5.2.1 on ubuntu, same problem is with kdevelop 5.2.3 app image. Previously I was using kdevelop 4.7 on ubuntu 16.04 without any problem for the same project.

Another problem I see is that the Configure/Language support/Include import problems dialog does not open when I click on "Add Custom Include Path" in the problem tabs, I need to use the file menu Project/Open configuration/Configure/Language support/Include import problems to see the popup (annoying, but less important for me as long as it does not work, I mention it in case it is related)

One workaround I have found is to configure the autotools directly in the source instead of inside a subfolder, but this is not a good solution for me.

Is there another way to make kdevelop use custom includes? I tried creating a ".kdev_include_paths" inside the build directory (mentionned in another post), but it does not work (not sure where it should be located and how to fill it)

Thanks in advance,
Sylvain

NB: I see a similar post (https://forum.kde.org/viewtopic.php?f=218&t=152015) on this subject without solution.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]