Cmake and Kdevelop.

Marcelo Magno T. Sales mmtsales at gmail.com
Wed Jan 28 19:13:33 GMT 2009


Em Ter 27 Jan 2009, Andreas Pakulat escreveu:
> On 27.01.09 19:06:53, S. G. wrote:
> > I can't manage to put it to work.
> >
> >  - I've checked "Preprocess and parse included headers into a
> > database (experimental)"
> >
> >  - I've added as "Code completion database" the path containing the
> > folder Common
> >
> >  - I've added #include "Common/Compat.h" at the start of a cpp
> > file.
> >
> >  - I've run "Compile file".
> >
> > I get:
> >
> > 7:27: error: Common/Compat.h: No such file or directory
> >
> > Just in case, I've also tried to add as "Code completion database"
> > the whole path to Compat.h and just writting #include "Compat.h",
> > but I get the same error: 7:27: error: Compat.h: No such file or
> > directory
>
> But thats a compile error. Those options above are _only_ for the
> code-completion popup and code-navigation inside kdevelop. You need
> to adjust your buildsystem files to make external libs known. As
> you're using cmake, that would mean editing the CMakeLists.txt.
>
> Andreas

Hum, now I got it. I had the same wrong idea.

Thanks,

Marcelo





More information about the KDevelop mailing list