Results 1 to 10 of 18
Hi,
I have installed QT 3.3.8, and I need to set the environment variable. Since it is an old version of QT it is not installed in the default directory ...
- 11-21-2007 #1Just Joined!
- Join Date
- Nov 2007
- Posts
- 10
Setting PATH for QT
Hi,
I have installed QT 3.3.8, and I need to set the environment variable. Since it is an old version of QT it is not installed in the default directory listed in the install text I find on Trolltech's pages. (Or at least I guess thats why)
A search for moc gives me three different dirs for the executable file: /etc/alternatives/moc, /usr/bin/moc, and /usr/share/qt3/bin/moc
A search for qmake gives me two dirs for the executable:
/etc/alternatives/qmake, and /usr/bin/qmake
What path do I use when I set the environment variable?
(The reason I use the 3.3.8 is that I am trying to set up an old Compaq Armada to run skylendar for my astrolog friend. Skylendar specifies QT 3.x, so I can not install the current version of QT.
I have installed Debian with KDE desktop)
Thanks
- 11-23-2007 #2Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
The website says that it's probably not necessary. How's it failing? Send the error message please...
- 11-24-2007 #3Just Joined!
- Join Date
- Nov 2007
- Posts
- 10
It doesn't give an error message. I've tried to put in the two alternatives that are common in both the searches (/usr/bin and /etc/alternatives), but I doesn't get either a positive or a negative response from doing this at all.
The only reason I want to put it there is because the install file says you have to do that, ftp://ftp.trolltech.com/qt/source/install
My biggest problem, really, is that it doesnt give any kind of response at all. I am, in other words not certain that QT is installed and working.
The only QT item I can find on the Start menu is QT Designer, under the Development tab, but as far as I know this was installed together with KDevelop, and there should be more QT stuf on the menu (?)
Typing $QTPATH gives no response either, it just returns the command prompt. (Which is part of the problem, ./configure in Skylendar ask for QTPATH...)
And thank you for taking the time and answer me. I really appreaciate it
- 11-25-2007 #4Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
Ah, well if you installed the Debian qt3 packages, then
should work. Debian puts files where they make sense, but it sets up a folder of symlinks for compatibility for apps that expect a QTDIR.Code:export QTDIR=/usr/share/qt3
Otherwise, if you installed using qt source just let me know and I can help you fix that up. But that you have /usr/share/qt3/bin/moc makes me think you installed the standard packages...
- 11-25-2007 #5Just Joined!
- Join Date
- Nov 2007
- Posts
- 10
I installed QT from the tar in the same dir as the install file in the link abowe. (./configure, make, make install) I guess this is installing using QT source (?)
I used the package manager to install KDevelop.
- 11-25-2007 #6Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
Okay, no problem. Open up your .bashrc (in your home directory) and add these lines to the bottom.
You can set QTDIR to where to downloaded qt to. `make install' will just install to the same folder unless you set QTDIR before compiling.Code:QTDIR=/usr/local/qt # where you downloaded and compiled qt PATH=$PATH:$QTDIR/bin MANPATH=$QTDIR/doc/man:$MANPATH LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export QTDIR PATH MANPATH LD_LIBRARY_PATH
Then run:
That should setup all the variables you need. Test it out with:Code:source ~/.bashrc
or this command should point to the moc you compiled:Code:echo $QTDIR
Code:which moc
- 11-26-2007 #7Just Joined!
- Join Date
- Nov 2007
- Posts
- 10
Just so that I don't mess things up: I downloaded into /temp/ and installed from there. The install file says:
To install the library, demos, examples, tools, and tutorials,
type:
su -c "make install"
and enter the root password. Qt is by default installed into
/usr/local/Trolltech/Qt-4.1.3 but this can be changed by using
the -prefix parameter.
But then, this is the install file for the current version of Qt. And leafing through the /usr/ dir I can't find anything that looks remotely similar to QT, so I doubt it was installed there.
Thanks again
- 11-26-2007 #8Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
oi. I thought you were installing qt3. Dude, you gotta be a little more specific.
So, is there anything under /usr/local/Trolltech/Qt-4.1.3 ?
So...
doesn't work?Code:export QTDIR=/usr/local/Trolltech/Qt-4.1.3
- 11-26-2007 #9Just Joined!
- Join Date
- Nov 2007
- Posts
- 10
Yes, I am installing QT3 (3.3.
. Because Skylendar specifies QT 3.x.
However, the install file that Trolltech has put in the dir where they keep all the older versions really is the installfile for the current version (QT 4.1.3)
My problems arose when the "make install" didn't install into the /usr/local/trolltech/QT-4.1.3.
It didn't make any /usr/local/trolltech/ dir at all.
In fact there is no dirs or files under /usr/local/ that has anything with QT or trolltech in their names.
The same goes for /usr/. When I go through the /usr/ dir manually there is no references to QT anywhere in any of the dirs, subdirs, or files there.
That being said, the installation went fine, with no error reports that I could see. And when I check with the Synaptic package manager it says that QT3 is installed. Which it didn't before I made the installation.
And ... sorry, when it comes to linux I am a total newbie. It is a bit embarrassing, I've been playing around with computers since the 80's, and I should most definetely have gone linux way back...
- 11-26-2007 #10Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
Ok, well you could get away with using the debian qt3 packages, but from where you're at you just need to move your /tmp/qt-whatever to /usr/local/qt3 and setup the environment variables like I wrote in my other post.
Don't leave it in tmp though... it'll get cleaned up eventually.


Reply With Quote
