Standalone QT 4.8 installation on Centos

Download qt-everywhere-opensource-src-4.8.6.tar.gz from http://download.qt-project.org

./configure -prefix /opt/qt/4.8.6 -prefix-install -release -opensource
gmake -j 4 # if you have 4 cores…
gmake install

module file /etc/modulefiles/qt/4.8.6:

#%Module1.0###############################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr “\tAdd environment.”
}

## Create a whatis file.
module-whatis “Add program links, aliases and paths”

setenv QT4_ROOT_DIR “/opt/qt/4.8.6”
setenv QT_PLUGIN_PATH “/opt/qt/4.8.6/plugins”
prepend-path PATH /opt/qt/4.8.6/bin
prepend-path LD_LIBRARY_PATH /opt/qt/4.8.6/lib

Leave a Reply

Your email address will not be published. Required fields are marked *