Bug 117387 - could not create language plugin for C
Summary: could not create language plugin for C
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 117388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-30 22:13 UTC by Milan Svoboda
Modified: 2005-12-01 22:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Svoboda 2005-11-30 22:13:34 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Slackware Packages
OS:                Linux

This error message is shown when trying to create or open c/c++ project.

BTW:
This is the most useless error message I have ever seen. It says exactly nothing you can use to try solve the problem...
Comment 1 Milan Svoboda 2005-11-30 22:17:59 UTC
Sorry, web browser did the wrong job, full bug report is 117388.
Comment 2 Sascha Cunz 2005-11-30 22:18:02 UTC
*** Bug 117388 has been marked as a duplicate of this bug. ***
Comment 3 Sascha Cunz 2005-11-30 22:27:10 UTC
Hi Milan,
something's wrong with your setup. If the packages you installed came directly from distro / packagers (I actually don't know slackware), then you should contact them.

Basicly, kdevelop doesn't find it's plugins. This is almost always due to KDEDIR / KDEDIRS not setup correctly and/or a missing call of kbuildsycocoa. Try to find out, where the environment variables KDEDIR and KDEDIRS point to. Set them correctly in a console, run the kbuildsyscoca program, then kdevelop (both from the console).

Finding the correct path to set KDEDIR to or include in KDEDIRS: It's the one that contains a subtree "lib/kde3" where a file named "libkdevcppsupport.so" should be. If that directory is your kde-installation directory, then KDEDIR has to point there. Otherwise, this path has to be included in KDEDIRS. KDEDIRS is an environmentvariable that looks the same as the PATH environment variable.

Comment 4 Milan Svoboda 2005-11-30 23:00:41 UTC
[bugs.kde.org quoted mail]

I have already sent an email to him. (packages were downloaded from 
ftp.kde.org, yes I know your policy about binary packages...)

> Basicly, kdevelop doesn't find it's plugins. This is almost always due to
> KDEDIR / KDEDIRS not setup correctly and/or a missing call of
> kbuildsycocoa. Try to find out, where the environment variables KDEDIR and
> KDEDIRS point to. Set them correctly in a console, run the kbuildsyscoca
> program, then kdevelop (both from the console).
>


KDEDIR and KDEDIRS are set correctly (/opt/kde), I rebuilt database: 
kbuildsycoca --noincremental.

Still doesn't work :-(

> Finding the correct path to set KDEDIR to or include in KDEDIRS: It's the
> one that contains a subtree "lib/kde3" where a file named
> "libkdevcppsupport.so" should be. If that directory is your
> kde-installation directory, then KDEDIR has to point there. Otherwise, this
> path has to be included in KDEDIRS. KDEDIRS is an environmentvariable that
> looks the same as the PATH environment variable.


Thanks for fast reply...

Milan
Comment 5 Milan Svoboda 2005-11-30 23:01:39 UTC
BTW: Kdevelop shows no message in the console window....
Comment 6 Amilcar do Carmo Lucas 2005-12-01 11:23:49 UTC
This is on the FAQ:
http://www.kdevelop.org/mediawiki/index.php/FAQ#I_get_an_error_message_.22couldn.27t_create_a_language_plugin.22._What_is_wrong.3F

Besides that, AFAIK there is already a BR asking for a better error message.
Comment 7 Milan Svoboda 2005-12-01 19:52:27 UTC
Dne čtvrtek 01 prosinec 2005 11:23 Amilcar do Carmo Lucas napsal(a):
[bugs.kde.org quoted mail]

I read this FAQ, but it don't help.

> Besides that, AFAIK there is already a BR asking for a better error
> message.

Comment 8 Milan Svoboda 2005-12-01 20:18:31 UTC
I tried to compile kdevelop from sources, configure passed allright, but 
compilation failed on:

if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H 
-I. -I. -I../.. -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include    
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts 
-Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute 
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
-DQT_NO_TRANSLATION  -MT catalog.lo -MD -MP -MF ".deps/catalog.Tpo" -c -o 
catalog.lo catalog.cpp; \
then mv -f ".deps/catalog.Tpo" ".deps/catalog.Plo"; else rm -f 
".deps/catalog.Tpo"; exit 1; fi
catalog.cpp:36:2: #error "BDB Version 4 required."
catalog.cpp: In member function `void Catalog::addIndex(const QCString&)':
catalog.cpp:205: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:205: error: too many arguments to function
catalog.cpp: In member function `virtual void Catalog::open(const QString&)':
catalog.cpp:273: error: invalid conversion from `int' to `DBTYPE'
catalog.cpp:273: error: too many arguments to function
catalog.cpp: In member function `QValueList<Tag> Catalog::query(const
   QValueList<QPair<QCString, QVariant> >&)':
catalog.cpp:434: warning: comparison between signed and unsigned integer
   expressions
make[3]: *** [catalog.lo] Error 1
make[3]: Leaving directory `/home/milan/kde/kdevelop-3.3.0/lib/catalog'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/milan/kde/kdevelop-3.3.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/milan/kde/kdevelop-3.3.0'
make: *** [all] Error 2

This shows that I need BDB Version 4, what is it? The configure script should 
report that I have not this, shouldn't it?

Milan
Comment 9 Milan Svoboda 2005-12-01 20:21:19 UTC
Well,

I still don't know what's DBD, but if it is this, I have it installed (even 
with includes and libs).

│ PACKAGE NAME:     db4-4.2.52-i486-2                                                        
│ COMPRESSED PACKAGE SIZE:     881 K                                                         
│ UNCOMPRESSED PACKAGE SIZE:     2290 K                                                      
│ PACKAGE LOCATION: /var/log/mount/slackware/l/db4-4.2.52-i486-2.tgz                         
│ PACKAGE DESCRIPTION:                                                                       
│ db4: db4 (Berkeley database library version 4)                                             
│ db4:                                                                                       
│ db4: The Berkeley Database (Berkeley DB) library provides embedded database                
│ db4: support for both traditional and client/server applications.                          
│ db4:                                                                                       
│ db4: This package should be installed if compatibility is needed with                      
│ db4: databases created with the Berkeley DB version 4.                      
Comment 10 Milan Svoboda 2005-12-01 22:11:19 UTC
I recompiled kdevelop and it is working....

This is packager error, I'm sorry...
Comment 11 Sascha Cunz 2005-12-01 22:26:48 UTC
So i finally doubt anybody has anything against closing this one as invalid.