code completion problem && some generic questions

Andreas Pakulat apaku at gmx.de
Thu Mar 9 01:06:13 UTC 2006


On 08.03.06 23:59:38, Bernd Schubert wrote:
> since kdevelop-3.3.0 using the code completion has a problem. Everytime it 
> tries to do the code completion, kdevelop gets stuck somewhere in the code 
> completition functions. 

This problem is known and IIRC fixed in SVN. I'm not sure wether there
was a bugs.kde.org entry, I can't seem to find it ATM. There was
definetly some discussion about this last year (search the last half of
the year, this list doesn't have that many entries).

> I would like to improve my C++ knowledge and so would like to fix this myself. 

If there was/is a bug report for this, the fix is there. Else its in one
of the mails regarind that topic. I'll see if I can find something...

> 1.) Even though I compiled with --debug=full gdb traces don't show any line 
> numbers. I'm usually programming in C and never had this problem before. 
> Anyone knows the reason?

I normally compile with --disable-finale --enable-debug, not the =full
option. IIRC there were some discussions on kde-core-devel regarding the
(not?) usefulness of =full. Unfortunately I don't remember it too well
(only cross read the posts there). It must have been some time this year
if I'm not mistaken (maybe dec last year).

> 2.) Even though compiled with --debug=full, -O2 is still used. Where can I 
> disable -O2 or set -O0. Is this related to Q1?

I think so, I'm not totally sure but I think gcc turns off debug
information if you tell him to optimize. This may be the cause of using
debug=full...

> kdevelop supports cmake builds, I wanted to try that. The CMakeLists.txt:23 
> of kdevelop-3.3.1 requests a subdirectory bdb, but since its not there the 
> cmake build fails.

I wasn't aware that kdevelop is buildable with cmake, I thought only
autotools+make, or unsermake is possible... 

Aah, there it is, a Changelog entry from Alexander Neundorf saying
something about partial support for cmake. bdb was the kdevelop-shipped
berkley-db, which is used for the code completion database. However I
think the kdevelop-maintained bdb-copy is removed not only from
svn-version but also from 3.3. So I guess the cmake-support is somewhat
unmaintained.

> In parts/filelist/CMakeLists.txt there's also a request for filelist_part.cpp 
> which is not in the sources at all - another cmake build problem.

Another hint that the cmake-build is not really supported. From looking
at the filelist dir I suspect that filelist_part.cpp now is projectviewpart.cpp.

> For now I have removed those entries and the build process is running now.

I'm not familiar with cmake at all, but I wonder where the
CMakeLists.txt come from? Are they generated from the Makefile.am's or
by some cmake-configure script that reads ConfigureChecks.cmake? Because
there are no lists here..

Andreas

-- 
Tonight's the night: Sleep in a eucalyptus tree.




More information about the KDevelop-devel mailing list