PDA

View Full Version : kde-qt problem



amit_pansuria
22nd November 2006, 11:54
helo i install qt-3.3.0 at /usr/local/qt on redhat 9
and i m using kdevelop-2.1
now i already set environment varible QTDIR and PATH to /usr/local/qt
now when i make small application in kdevelop and when i run configure its shows the library path and header path for qt
it shows me the path of qt-3.1 which is at /usr/lib/qt-3.1/lib instread of taking the path
/usr/local/qt/lib
so what to do so that kdevelop take library path of /usr/local/qt/lib
i already set linker option in kdevelo( project-option -linker)
additional : /usr/local/qt/lib/libqt.so
but still no effect
THx n Regards,
Amit

wysota
22nd November 2006, 20:31
Where did you set PATH and QTDIR? Do you have /usr/local/qt/lib in LD_LIBRARY_PATH or in /etc/ld.so.conf?

amit_pansuria
23rd November 2006, 05:01
helo i already set environment variables in /etc/.profile as shown below

QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man/doc:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
after writing this data in .profile
i write on terminal
#export QTDIR PATH MANPATH LD_LIBRARY_PATH
but my problem is not solved
Thx n Regards,
Amit

amit_pansuria
23rd November 2006, 07:05
helo i more things i ned to clear is that
when set environment variables
as shown belo
#export QTDIR=/usr/local/qt
#export PATH=/usr/local/qt/bin:$PATH
#export LD_LIBRARY_PATH =/usr/local/qt/lib:$LD_LIBRARY_PATH
now when i do the
echo $QTDIR
/usr/local/qt
echo$PATH
/usr/local/qt.bin:
echo $LD_LIBRARY_PATH
/usr/local/qt/lib:
but when i restart my pc and again show using echo commnad
then
echo $QTDIR
/usr/local/qt

echo $PATH
it shows the old path as /usr/sbin instread of /usr/local/qt/bin

echo $LD_LIBRARY_PATH
THNE it shows nothing
can u tell me after restarting pc while such things happen
Thx n Regards,
Amit

wysota
23rd November 2006, 09:35
/etc/.profile? Are you sure this is a correct file? I think it should either be /etc/profile or /etc/profile.d/qt or ~/.bash_profile (or simmilar).

amit_pansuria
23rd November 2006, 10:04
ya i mean
its /etc/profile
where is profile is file where i sets the path of all evironment variables
Thx n Regards,
Amit