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

## 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-8-5). You must be sure that QtiPlot is able to find the QwtPlot3D library. You have to go to the qtiplot directory and open the file qtiplot.pro. The folowing line add a new path to the library files which should be available for the compiling:

    unix:INCLUDEPATH  += -I /usr/lib/qt3/include/qwtplot3d

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

    qmake qtiplot.pro
    make
    strip qtiplot

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.

### Windows

QtiPlot distributes a binary Windows package. You can download the qtiplot-0.8.5.exe file. To install, open a Windows Explorer, double click on 'qtiplot-0.8.5.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 variable to the 'include' directory of your local build of the WinGSL folder.

3. 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 WinGSL library.

4. 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 |
Installation from binary packages | Home |