Compilation and Installation
This package includes the source files of a stand alone library tgraph,
the editor pigale and the client program
and the souces of the freeglut library
The editor and the client use the Qt4 toolkit and
the OpenGL libraries for the 3-dimensional drawings.
(Versions prior to 1.3 uses Qt3).
Linux
Automatic configuration
Pigale uses GNU configure for the compilation and installation configurations.
- Run the configure script: ./configure [options]
- By default, the prefix for installation is /usr/local/pigaleXXX.
- If you don't have a write permission, you must provide another directory where
you have a write permission:
./configure --prefix=/home/a_directory.
- Usually the location of the installation of Qt is defined by the environment variable QT4DIR.
- If you are using Ubuntu and want to use the already installed
Qt4 package use the following option
./configure --enable-ubuntu.
You must habe installed the libqt4-dev libdt4-opengl-dev packages;
- For more options run: ./configure --help
These options, in particular, let you define the prefix, the mode (debug, static) etc.
- Next run the following commands:
If the prefix points to the directory containing the sources of Pigale, you do not need
to run make install (pigale will be in prefix/qt).
If automake complains, you may try to execute:
aclocal && automake -ac && autoconf
before running ./configure
The following repertories are created during the installation:
- $prefix/bin (programs)
- $prefix/lib (libraries)
- $prefix/translations (translations)
- $prefix/Doc (documentation)
- $prefix/tgf (graph files)
- $prefix/macro (macros)
Manual configuration
On most distributions Qt4 is installed,
but some Qt4 tools might have been renamed.
In such case, you may
- Edit the file pigale.inc
- Edit the file runqmake.sh to provide the right qmake command to use.
- Run ./runqmake.sh to create the Makefiles
- In the repertories tgraph, freeglut, qt and
ClientServer run:
This program has also been compiled under different UNIX
systems, using the gcc compilers.
Windows
Pigale has been compiled with the following:
- gcc compiler in the MinGW environment MinGW,
- Qt-4.3.X toolkit
Qt download page (where you may also download MinGW),
To compile Pigale from the sources:
- edit wpigale.inc
(to precise your Qt installation repertory and pigale prefix),
- run wset.bat to set some global variables,
- run wqmake.bat to create the Makefiles,
- run wmake.bat install.
The installation creates the same repertories as under Linux.
Warning
While compiling and installing, you should not have a sh.exe in your path.
Using tgraph with Microsoft Visual C++
In the repertory tgraph,
the file tgraph-VisualC++-X.vcproj can be used to create the tgraph.lib library.
Last modified: Thu Mar 19 13:35:10 CET 2009