Qt-interest Archive, May 2008
EZ Question: Switching Between moc and moc
Message 1 in thread
I recently installed qt-4.4.0 on Slackware 12.0 which comes with qt-3.3.8. I
cannot remove qt-3.3.8 without doing major damage to the system. The 3.3.8
version of moc is installed in /usr/bin and the 4.4.0 version is installed
in /usr/lib/qt/bin. Both directories are in my PATH variable. When I type in
moc -v at the command line, the 4.4.0 version runs and all the make scripts
attempt to use this newer version, but I also need to be able to use the
older version to compile older programs. Is there an easy way to switch
between the two versions?
--
[ signature omitted ]
Message 2 in thread
Hi
>I recently installed qt-4.4.0 on Slackware 12.0 which comes with
qt-3.3.8. I
>cannot remove qt-3.3.8 without doing major damage to the system. The
3.3.8
>version of moc is installed in /usr/bin and the 4.4.0 version is
installed
>in /usr/lib/qt/bin. Both directories are in my PATH variable. When I
type in
>moc -v at the command line, the 4.4.0 version runs and all the make
scripts
>attempt to use this newer version, but I also need to be able to use
the
>older version to compile older programs. Is there an easy way to switch
>between the two versions?
An easy way would be to set your PATH manually to just use the version
you want (ie override your PATH)
Something like:
set QTDIR=/usr/blahblah
set PATH=$QTDIR/bin;/usr/bin; <and whatever else you will need>
set LD_LIBRARY_PATH=$QTDIR/lib;$LD_LIBRARY_PATH
Put it in a script and its not too much hassle.
Cheers
Marc
--
[ signature omitted ]
Message 3 in thread
On May 15, 2008, at 5:16 PM, Bobby Dill wrote:
> I recently installed qt-4.4.0 on Slackware 12.0 which comes with
> qt-3.3.8. I
> cannot remove qt-3.3.8 without doing major damage to the system. The
> 3.3.8
> version of moc is installed in /usr/bin and the 4.4.0 version is
> installed
> in /usr/lib/qt/bin. Both directories are in my PATH variable. When I
> type in
> moc -v at the command line, the 4.4.0 version runs and all the make
> scripts
> attempt to use this newer version, but I also need to be able to use
> the
> older version to compile older programs. Is there an easy way to
> switch
> between the two versions?
I would think you could just put a symbolic link to the older version
somewhere in your path with a different name, something like moc3. To
be safe, you might do the same with the newer version, symlink it to
something like moc4. Then, when you want to run the new version you
run mac4 -v, but when you want to run the old version, you type moc3 -
v instead.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]