Bug 67576 - QT project templates don't specify $PATH or $QTDIR
Summary: QT project templates don't specify $PATH or $QTDIR
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: QMake (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-08 13:10 UTC by Viktor S. Grishchenko
Modified: 2006-11-20 22:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to workaround $QTDIR/$PATH issue (1.48 KB, patch)
2003-11-19 17:03 UTC, Viktor S. Grishchenko
Details
a new patch for HEAD (472 bytes, patch)
2003-11-24 13:34 UTC, Viktor S. Grishchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor S. Grishchenko 2003-11-08 13:10:44 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Makefile templates don't specify $PATH or $QTDIR, thus relying on environment.
It may cause problems, e.g. when default KDE paths don't contain path to qmake (/usr/lib/qt3/bin in my case).
Comment 1 Amilcar do Carmo Lucas 2003-11-09 15:54:28 UTC
Can you please specify your KDevelop version?
Comment 2 Alexander Dymo 2003-11-09 21:21:27 UTC
I believe we can nothing to do with that. I don't know a good way to determine QTDIR and PATH for a qmake based project.
Closing as "wontfix". Reopen if you feel I am wrong.
Comment 3 Viktor S. Grishchenko 2003-11-19 17:03:42 UTC
Created attachment 3287 [details]
patch to workaround $QTDIR/$PATH issue

IMHO, explicitly giving precedence to $QTDIR/bin is not a bad thing.
It may help in cases when $QTDIR is not on $PATH or multiple QT installations
are present.
Comment 4 Viktor S. Grishchenko 2003-11-19 17:04:08 UTC
A patch proposed.
Comment 5 Viktor S. Grishchenko 2003-11-24 13:34:21 UTC
Created attachment 3375 [details]
a new patch for HEAD

The same issue.
$QTDIR/bin/ must have precedence in $PATH
Comment 6 F Ld 2004-03-11 11:18:06 UTC
Hi all,

I have not tested the patches but seems to be same issue as bug 74465.

Kdevelop does not read KDEDIR and QTDIR environment variable when launched from kde menu ... but does consider those variables when lauched from konsole.

I have Qt installed in /opt/qt-3.2.0 and kde in /opt/kde-3.2.0, and the only good way to have kdevelop work properly with Kde and Qt projects is to run kdevelop from konsole (where KDEDIR and QTDIR are set).

Is it a kdevelop bug or a kde bug or ... maybe not a bug because how can we tell kdevelop or kde to read the user .bashrc file to get the variables ?

Hope this comment will help

Fabien
Comment 7 Andreas Pakulat 2006-11-20 22:17:05 UTC
This is changed in recent versions of KDevelop SVN. We now have an option to set the Qt directory