Compilation and Installation from sources
Prev | Appendix A. Installation | Next

## Compilation and Installation from sources

### Linux and Mac OS X

Download the qtiplot archive (.tar.bz2 or .zip file) and decompress it. Then open a terminal (console) window and go to the main folder of the decompressed archive (which should be named qtiplot-0.9.0). You must be sure that QtiPlot is able to find the third party libraries it depends on. You have to go to the qtiplot directory and open the file qtiplot.pro. As an example, the folowing line describes the path to the QwtPlot3D library header files which should be available for the compilation:

    unix:INCLUDEPATH  += ../3rdparty/qwtplot3d/include/

it should point to the correct directory. Once this is done, go back to the main directory qtiplot-0.9.0 and type:

    qmake qtiplot.pro
    make

to install QtiPlot, you must login as root and type:

    make install

You can then logout from root and launch the application:

    qtiplot

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)"

### Windows

QtiPlot distributes a binary Windows package. You can download the qtiplot-0.9.0.exe file. To install, open a Windows Explorer, double click on 'qtiplot-0.9.0.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. Then, to install:

1. Download the qtiplot archive and unzip it.

2. Modify the 'qtiplot.pro' file in order to set the INCLUDEPATH and the LIBS variables, in the win32 section of the file, to the correct locations of all the 3rd party libraries QtiPlot depends on. Please note that on Windows only the win32 port of the GSL library, WinGSL works correctly.

3. Open a MS-DOS command terminal, go to the 'qtiplot' folder and type:

   1. For MSVC users with nmake:

                    qmake qtiplot.pro
                    nmake

   2. For Visual Studio users, qmake can also generate '.dsp' 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.

Prev | Up | Next
Installation from binary packages | Home | Chapter 9. Frequently asked questions