how to differentiate two versions of qt
hi friends,
i am currently working on qt4.4.3 and today i download the qt4.5 source and compile it.. i need to export the path i will do in bashrc .. but the problem is how can i differentiate these two bin/ files if designer means this qt4.4.3 will be replaced by qt4.5 .. how can i overcome ... which things i need to rename and export ... if i change /bin/moc to moc_4.5 will it give any problem aaa . ? please help me ... |
Quote:
|
Quote:
no it created a new path /usr/local/Trolltech/qt4.5.0 /usr/local/Trolltech/qt4.4.3 is my prev path in .bash_profile file i include PATH=$PATH:$HOME/bin:/usr/local/Trolltech/Qt-4.4.3/bin export the PATH now how to add this new path in different name is my question .. please help ... |
If you want the qt default to be version 4.5 edit the PATH and use:
Code:
PATH=/usr/local/Trolltech/qt4.5.0/bin:$PATH:$HOME/bin If you want to have also the previous qt commands available, you can create another .bash_profile (name it .bash_profile-4.4.3) customized for the qt4.4.3. When you want to use qt4.4.3, run before anything else: Code:
source .bash_profile-4.4.3 |
Perhaps less elegant than barhory's solution, this is how I handle two versions of qt:
I have qt 3.3.8, for xconfig, and qt 4.4.0 on a separate partition on my machine. I have the QTDIR environment variable set to '/usr/local/qt' and then in that directory I have a soft link to the version of qt that I want to use: Code:
norm /usr/local: l Code:
norm /usr/local: rm qt |
Quote:
i try this method .. changing the PATH in .bash_profile is working fine ... its changing the bin value .. only when i logout .. i copied the .bash_profile to .bash_profile-4.4.3 doing Code:
source .bash_profile-4.4.3 |
My fault. I meant that in your .bash_profile (the one you want to use as default) you should use the path to qt4.5, but in the example I've used the path to qt4.4.3 (already corrected in the previous post). So the correct PATH is:
Code:
PATH=/usr/local/Trolltech/qt4.5.0/bin:$PATH:$HOME/bin Code:
PATH=/usr/local/Trolltech/qt4.4.3/bin:$PATH:$HOME/bin Regards |
All times are GMT -5. The time now is 01:44 PM. |