KDevelop - KDevTrollProject Problem

After updating kde to 3.5.6 and kdevelop to 3.4.0_1 ( around 15.03.2007 ) kdevelop failed to open qmake based projects. The error was “Error creating project management plugin KDevTrollProject”.

Update

On 23.03.2007 a fix has been committed to the kdevelop port so if you encounter this problem it’s better to update the ports tree and recompile kdevelop.

Finding why

It took me a few houers to find out that the problem was an undefined reference to a symbol in /usr/local/lib/libkdevqmakeparser.so. The symbol was QMake::Lexer. Grepping to kdevelop sources i found that the libkdevqmakeparser is build in buildtools/lib/parsers/qmake. There i found that qmake_lex.cpp was not compiled and linked to the library.

Quick Fix

Below are the command lines to build qmake_lex.cpp and relink libkdevqmakeparser.so

  1.  
  2. #cd /usr/ports/devel/kdevelop
  3. #make extract patch configure
  4. #cd work/kdevelop-3.4.0/buildtools/lib/parsers/qmake
  5. #fetch http://www.erata.net/wp-content/uploads/File/fix_lex.sh
  6. #cat fix_lex.sh  ( just to make sure i haven’t hidden anything in that file :) )
  7. #sh fix_lex.sh
  8. #cp .libs/libkdevqmakeparser.so.0 /usr/local/lib/
  9.  

Conclusion

I somehow have the impression that I’m the only one having this problem since i haven’t seen any reports on the mailing lists. It may be some bad combination of autotools/libtools. If I’m the only one having this problem then it’s not worth investing more time in a proper fix. If other users will report this problem then probably a patch to add the qmake_lex.cpp file to the Makefile with appropriate rules may be needed. My experience with autotools and handwritten Makefiles is close to zero (and i intend to keep it that way) but i guess the kde folks will have no problem fixing this once the problem i known.

If someone else experiences this problem please leave a comment or a post a message on the freebsd mailing list

Tags:, , , , ,

Related:

Topics: FreeBSD


  1. Alex Tsvelev RUSSIAN FEDERATION Windows XP Mozilla Firefox 2.0.0.3 March 23rd, 2007 at 5:45 pm

    I’ve got the same problem, will try to fix it now. Thanks.

  2. eti ROMANIA Windows XP Mozilla Firefox 2.0.0.3 March 24th, 2007 at 3:08 pm

    A fix has been committed to the kdevelop port. Upgrade to the latest version to fix the problem.

  3. DA UNITED STATES FreeBSD Konqueror 3.5 April 10th, 2007 at 3:45 pm

    I have this problem as well… Will try your fix.

Leave a Reply