If you want to build QtiPlot from sources, don't forget first to download and install the
Qt, QwtPlot3D, GSL, liborigin and zlib libraries.
You must use the CVS version of the Qwt 5 library which comes with
the QtiPlot archive ("3rdparty" folder). This should be statically
linked to QtiPlot in order to avoid conflicts on your operating system.
The last version of the muParser (1.26 not oficially released yet) library is included in QtiPlot ("3rdparty/muParser" folder), so you don't need to download and install it.
In order to build QtiPlot you also need qmake, that is official part of Qt 3.x.
Linux and Mac OS X
While you can probably install the other dependencies from your
distribution's package manager, there are no binaries and little
documentation available for liborigin.
So here's how to install it:
- download the archive (liborigin-xxxxxxxx.tar.gz) and decompress it
- open a terminal (console) window
- go to the main folder of the decompressed archive
- type "make -f Makefile.LINUX" on Linux and "make -f Makefile.DARWIN" on Mac OS X
- login as root
- type "cp liborigin.so /usr/local/lib/"
- type "ldconfig"
If you want Python scripting support, you will also need to download and install Python 2.4, SIP 4.4.5 and PyQt
3.16.
All three of them are included in many Linux distributions.
Other versions as those indicated above may or may not work.
Specifically, there are known issues with a number of SIP versions and
a given version of PyQt will only work with a limited range of SIP
versions. Warning: You might need to edit the "qtiplot-x.x.x/qtiplot/qtiplot.pro" file in
the archive and set the path to the SIP executable to point to the correct location of
SIP 4.4.5 on your computer, by changing the following line:
unix:system(sip -I /usr/share/sip -t Qt_3_3_0 -t WS_X11 -c $${MOC_DIR} src/qti.sip)
QtiPlot distributes a binary Debian package and a RPM package for RedHat, Mandrake and SuSE distributions.
The RPM package was created on an Ubuntu distribution.
To install on Linux Debian: download the package file qtiplot_0.x.x_i386.deb,
then login as "root" and type:
dpkg -i qtiplot_0.x.x_i386.deb
To install the RPM package: download the file qtiplot-0.x.x-1.i386.rpm,
then login as "root" and type:
rpm -i qtiplot-0.x.x-1.i386.rpm
For all the other Linux distributions and for Mac OS X :
- download the .tar.bz2 or the .zip archive and decompress it
- open a terminal (console) window
- go to the main folder of the decompressed archive
- modify the 'qtiplot/qtiplot.pro' file in order to set the
INCLUDEPATH and LIBS variables to point to the location of the
liborigin, zlib, GSL and QwtPlot3D libraries on your system (header
files and dynamic lib files).
- type "qmake"
- type "make"
- login as root and type "make install"
Windows
QtiPlot distributes a binary Windows package. To install:
- Download the qtiplot-0.x.x.exe file.
- Open a Windows Explorer, double click on 'qtiplot-0.x.x.exe' icon
and follow the installation instructions.
If you want to compile the application from sources
you need to purchase the Qt3 official book, that comes with a CD containing a non commercial version of Qt 3.2.1 or use the Q..3/ Windows Free Edition in order to build Qt3.
In order to compile liborigin on Windows you should follow the first three steps explained in the Linux/Mac OS X section, then type:
- for MinGW users: mingw32-make -f Makefile.WINDOWS
- for MSVC users:
- qmake
- nmake
The compilation of QtiPlot from sources requires the following steps:
- Download the qtiplot archive and unzip it.
- Modify the 'qtiplot.pro' file in order to set the INCLUDEPATH variable to the 'include' directory of your local build of the WinGSL, zlib and QwtPlot3D libraries.
- Modify the 'qtiplot.pro' file in order to set the LIBS
variable, in the win32 section, to the actual directories of your local
build of the liborigin, WinGSL, zlib and QwtPlot3D libraries.
- Open a MS-DOS command terminal, go to the 'qtiplot' folder and type:
qmake qtiplot.pro
- Type:
- For MSVC users: nmake
- For MinGW users: mingw32-make
- For Visual Studio users, qmake can also generate '.dsp' project files.
All you need to do is type:
qmake -tp vc qtiplot.pro
then open the 'qtiplot.dsp' file, go to the 'Build' menu and chose 'Set active configuration...'.
Choose the "qtiplot-Win32 Release' project configuration and press OK. Press the 'F7' key to build the application.