Linux 平台 Qt 与 qtcreator配置全过程

Linux Environment For hfpgaide

     .Qt Environment:

1.       tar qt-everywhere-opensource.tar.gz

2.       QGtkStyle: When a scrollbar appears it will crash under CentOS 5.7 ,so patch

qt4-cfs-qgtkstyle.patch      bug wil be fixed 5.0.1

3.       ./configure  -prefix  $INSTALL_PATH –debug-and-release

4.       gmake

5.       gmake install

6.       vi .cshrc

7.       setenv QTDIR /export2/qt

setenv PATH $QTDIR/bin:$PATH

setenv LD_LIBRARY_PATH $QTDIR/lib:

setenv MANPATH $QTDIR/doc/man

setenv QMAKESPEC linux-g++

setenv QTINC $QTDIR/include

8.       source .cshrc

 

Qt will be installed into install_path.   Install_path = /export2/qt

 

②.qtcreator install:

1.       tar qt-creator-opensource.tar.gz

2.       mkdir $INSTALLDIR

3.       cd $INSTALLDIR

4.       qmake “CONFIG+=debug”  “QT_PRIVATE_HEATERS=$$QT_BUILD_TREE/include      $SOURCEDIR/qtcreator.pro         ---debug  only

qmake “CONFIG+=release”  “QT_PRIVATE_HEATERS=$$QT_BUILD_TREE/include      $SOURCEDIR/qtcreator.pro         ---release  only

5.       make –f Makefile

6.       make install

qtcreator will be installed into $INSTALLPATH.

 

③.Hfpgaide bulid and deploy

1.  cd hfpgaide

2.  qmake hfpgaide.pro  -r  -spec linux-g++ “CONFIG+=debug_and_release”     -for debug and release version

3.  make –f Makefile

4.  make –f Makefile install

你可能感兴趣的:(Linux,Qt)