MantidPlot (QTIPLOT) building preRequisites

From MantidProject

Jump to: navigation, search

Contents

Required files

QT v4.4.2 windows opensource

  • downloaded from Trolltech
  • file://ndw714/PreRequisites/win/qt-win-opensource-src-4.4.2.zip

SIP V4.7.7

PyQT 4.4.3 windows GPL

QScintilla 2.3.2 GPL

Download and install GPL version of QT

  • unpack to c:\qt
  • open a visual studio dos prompt
  • configure -debug-and-release
  • nmake (this take some time)
  • nmake install

SIP

  • Extract to C:\sip-4.7.7; all following steps are carried out in that directory
  • At command line type "python configure.py -p win32-msvc2005"
  • Then type "nmake"
  • Type 'nmake install'
  • Check if c:\PythonXX contains sip.exe.manifest. If not, copy it from C:\sip-4.7.7\sipgen.
  • A path to MSVC80.DLL must be in PATH.

PyQt

  • Extract to C:\PyQt; all following steps are carried out in that directory
  • set QMAKESPEC=win32-msvc2005
  • At command line type "python configure.py"
  • Then type "nmake"
  • Finally, type 'nmake install' (is this necessary?)

QScintilla

MantidPlot uses the QScintilla library for the scripting environment. The source code is available at http://www.riverbankcomputing.co.uk/software/qscintilla/download However, for most Linux distributions there are pre-built packages available.

To install the library, first download and unzip the code and then change to the directory where the code was unpacked and type

cd Qt4
qmake qscintilla.pro
nmake
nmake install

Note: On Linux substitute make for nmake

We also need the Python bindings so after the library is installed do

cd ..\Python
python configure.py
nmake
nmake install

Launching MantidPlot

See this page for help launching MantidPlot under Linux.

Personal tools
Create a book