Bug 74465 - class store generators use wrong directories for KDE and QT
Summary: class store generators use wrong directories for KDE and QT
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 3.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Amilcar do Carmo Lucas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 15:51 UTC by Eike Welk
Modified: 2004-07-11 20:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Welk 2004-02-07 15:51:58 UTC
Version:           3.0.0 (using KDE 3.2 BRANCH >= 20040204, compiled sources)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

KDELibs PCS Importer and QT PCS Importer look at the wrong directories.
I have to use the custom importer instead.

The situation:
I have two versions of QT and KDE installed (3.1.1 and 3.2), and I have two user accounts with different KDEDIR, QTDIR and LD_LIBRARY_PATH. Although these variables are set correctly, the specialized PCS importers pick up the wrong directories in the account that uses KDE 3.2.

This also means everyting works perfectly for the KDevelop binary which is compiled with KDE 3.1.1.

Bye,
Eike.
Comment 1 F Ld 2004-03-11 11:07:24 UTC
Same problem on my LFS where KDE and QT are installed in non standard directories (/opt/kde-3.2.0 and /opt/qt-3.3.0).

The only solution is to start kdevelop from konsole or to specify --with-qt-dir and --prefix in the project options.

Fabien
Comment 2 Amilcar do Carmo Lucas 2004-06-25 21:44:38 UTC
This is a KDE bug and not a KDevelop bug.
Comment 3 Christian Loose 2004-07-09 09:51:55 UTC
Could please provide more details why this is a KDE and not a KDevelop bug. 

What methods do you use in KDevelop to retrieve the directory? KStandardDirs? It would be also interesting in what source file the corresponding code is.

Christian
Comment 4 Waldo Bastian 2004-07-09 11:53:14 UTC
Saying that "the specialized PCS importers pick up the wrong directories" is a KDE bug is not really workable... for starters I have no idea what PCS importers are or where I can find the code for them.
Comment 5 Amilcar do Carmo Lucas 2004-07-10 15:42:25 UTC
The reason I say it's a KDE bug is because I use KDEDIRS in my bashrc file in order to have a couple of HEAD applications installed in my local account using the stable global KDE provided by the distro.

Everithing works if I launch these applications from the konsole or if I lunch them via alt-F2.

Whenever I lunch them from the kmenu somehow the old (stable) applications get called instead of the newer HEAD ones despite the fact that the new ones appear first in the $PATH and in $KDEDIRS.

So It's a KDE bug to sometimes ignore the $KDEDIRS.

Regarding the PCS code, it is on kdevelop/languages/cpp/pcsimporter
Comment 6 Waldo Bastian 2004-07-10 16:39:31 UTC
That's probably then because kdeinit gets launched from startkde and if it hasn't parsed .bashrc at that point it will not have $KDEDIRS set and none of the applications launched via kdeinit will have it set either.

Set $KDEDIRS in xinitrc and you won't have this problem.
Comment 7 Eike Welk 2004-07-10 22:45:36 UTC
I added something about Waldo's comment #6 to the Wiki. Could someone knowledgeable have a look at http://wiki.kde.org/tiki-index.php?page=KDE+CVS+Step+by+Step#id785959 and see if it's OK?
Comment 8 Waldo Bastian 2004-07-11 20:36:58 UTC
Look's ok.