Qwt 6 standalone install

Download qwt-6.0.2.tar.bz2 from http://qwt.sourceforge.net/
module load qt/4.8.6 # from qt-installation
in qwtconfig.pri: QWT_INSTALL_PREFIX    = /opt/qwt/$$QWT_VERSION
qmake qwt.pro
make -j4
make install

module file /etc/modulefiles/qwt/6.0.2:

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

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

## Add directory to the path
prepend-path LD_LIBRARY_PATH /opt/qwt/6.0.2/lib:/opt/qwt/6.0.2/plugins/designer
prepend-path CPLUS_INCLUDE_PATH /opt/qwt/6.0.2/include

## Set environment variables
setenv QWT_INCLUDEPATH ”/opt/qwt/6.0.2/include”
setenv QWT_LIBPATH ”/opt/qwt/6.0.2/lib”
setenv QWT_LIBS ”-lqwt”

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *