Qt installation: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Qt'''
To install for the first time:
To install for the first time:


  ssh as root
yum install gstreamer-plugins-base-devel (at least on RHEL6, otherwise error in ./configure, not sure fatal or not ...)
 
  ssh as 'boiarino', then do 'su' (to have right environment for Qt which assumed to be set already in $CLAS/.setup etc)
 
mkdir /apps/Trolltech
  cd /usr/local/src
  cd /usr/local/src
  cp /usr/downloads/qt-everywhere-opensource-src-4.8.4.tar.gz .
  cp /usr/downloads/qt-everywhere-opensource-src-4.8.4.tar.gz .
Line 10: Line 16:
  ./configure -prefix /apps/Trolltech/Qt-4.8.4
  ./configure -prefix /apps/Trolltech/Qt-4.8.4
     answer 'o'
     answer 'o'
     ansver 'yes'
     answer 'yes'
  make
  make
  make install
  make install
Line 19: Line 25:


  make confclean
  make confclean
  ./configure
  ./configure ....
  ...
  ...


Line 25: Line 31:


  setenv PATH /apps/Trolltech/Qt/bin:$PATH
  setenv PATH /apps/Trolltech/Qt/bin:$PATH
'''Qt Creator'''
cd /apps/Trolltech
cp /usr/downloads/qt-creator-2.7.1-src.tar.gz .
gunzip qt-creator-2.7.1-src.tar.gz
tar xvf qt-creator-2.7.1-src.tar
rm qt-creator-2.7.1-src.tar
cd qt-creator-2.7.1-src
qmake -r
make
'''QWT'''
cd /apps/Trolltech
cp /usr/downloads/qwt-6.1.0.tar.gz .
gunzip qwt-6.1.0.tar.gz
tar xvf qwt-6.1.0.tar
rm qwt-6.1.0.tar
cd qwt-6.1.0
qmake qwt.pro
make
##make install (installs everything below the directories you have specified in qwtconfig.pri)

Latest revision as of 15:53, 11 January 2016

Qt

To install for the first time:

yum install gstreamer-plugins-base-devel (at least on RHEL6, otherwise error in ./configure, not sure fatal or not ...)
ssh as 'boiarino', then do 'su' (to have right environment for Qt which assumed to be set already in $CLAS/.setup etc)
mkdir /apps/Trolltech
cd /usr/local/src
cp /usr/downloads/qt-everywhere-opensource-src-4.8.4.tar.gz .
gunzip qt-everywhere-opensource-src-4.8.4.tar.gz
tar xvf qt-everywhere-opensource-src-4.8.4.tar
rm qt-everywhere-opensource-src-4.8.4.tar
cd qt-everywhere-opensource-src-4.8.4
./configure -prefix /apps/Trolltech/Qt-4.8.4
   answer 'o'
   answer 'yes'
make
make install
cd /apps/Trolltech
ln -s Qt-4.8.4 Qt

To reconfigure/recompile from scratch, do following

make confclean
./configure ....
...

Set PATH:

setenv PATH /apps/Trolltech/Qt/bin:$PATH


Qt Creator

cd /apps/Trolltech
cp /usr/downloads/qt-creator-2.7.1-src.tar.gz .
gunzip qt-creator-2.7.1-src.tar.gz
tar xvf qt-creator-2.7.1-src.tar
rm qt-creator-2.7.1-src.tar
cd qt-creator-2.7.1-src
qmake -r
make

QWT

cd /apps/Trolltech
cp /usr/downloads/qwt-6.1.0.tar.gz .
gunzip qwt-6.1.0.tar.gz
tar xvf qwt-6.1.0.tar
rm qwt-6.1.0.tar
cd qwt-6.1.0
qmake qwt.pro
make
##make install (installs everything below the directories you have specified in qwtconfig.pri)