Generic requirements
In order to compile SciDAVis, you need to install the following libraries:
QwtPlot3D and Qwt must be compiled against Qt 4.x! If these are compiled with Qt3, the application will crash! See below for how to ensure this.This version of SciDAVis uses a modified version of liborigin which is supplied in the "3rdparty" folder. It is already included in the scidavis/scidavis.pro file and does not need to be compiled or installed separately.
Linux / Mac OS X
- Install Qt (>=4.2), GSL, muParser and zlib; either from your package manager or from the sources. If you are using precompiled packages, make sure you also install the corresponding development packages (*-dev or *-devel). If you want to display the manual from within SciDAVis (you can also view it with your favorite browser), you need to have the Qt Assistant installed, which sometimes comes in a separate package (qt4-dev-tools for Ubuntu edgy).
- Open a terminal window.
- Get Qwt (>=5.0.0) sources and unpack them to the 3rdparty folder:
cd scidavis-X.X.X/3rdparty
tar -xvjf /path/to/qwt-Y.Y.Y.tar.bz2 - Rename the new directory to
qwt:
mv qwt-Y.Y.Y qwt - We want to build the static version of Qwt in order to avoid potential conflicts with an already installed version.
Open the file qwt/qwtconfig.pri and comment out the line
CONFIG += QwtDll - Build Qwt:
cd qwt; qmake && make; cd .. - Get QwtPlot3D sources and also unpack them to scidavis-X.X.X/3rdparty:
tar -xvzf qwtplot3d-Z.Z.Z.tgz - We also want to build a static version here, so open qwtplot3d/qwtplot3d.pro in your favorite text editor and add the line
CONFIG += staticlib
at a convenient place (say, below the other CONFIG line). - Build qwtplot3d:
cd qwtplot3d; qmake && make; cd .. - Go to the directory scidavis-X.X.X/scidavis:
cd ../scidavis - If you want to use Python expressions and scripts, make sure you have the following additional dependencies installed:
Python 2.5,
SIP 4.5.2 or 4.6,
PyQt 4.2.
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.
Open scidavis.pro in a text editor and remove the comment marker (#) from the lineinclude( python.pri ). - Build SciDAVis:
qmake && make - You should now be able to run SciDAVis by entering
./scidavis - Optionally, install SciDAVis on your system (you need root priviliges):
sudo make install
or, alternatively,su -c "make install"
Windows
- Download the "Qt/Windows Open Source Edition" from http://trolltech.com/developer/downloads/qt/windows. It comes with a graphical installer. When the Qt installer asks you to install MinGW, say yes unless you already have it on your system. In that case you have to tell the Qt installer where to find it. In the case that PyQt (see blow) does not yet support the latest version of Qt, you can get older versions here: ftp://ftp.trolltech.com/qt/source/.
- Download Python from http://www.python.org/download/ and install it.
- Go to the control panel, open "system properties", go to the advanced tab and edit the environment variable "Path":
Append
;D:\Qt\4.2.3\bin;D:\MinGW\bin;D:\Python25(use the paths where you installed Qt, Python, and MinGW) to the existing string there. - Download the SIP source code for Windows from http://www.riverbankcomputing.co.uk/sip/download.php and unpack it.
- Download the PyQt v4 source code for Windows from http://www.riverbankcomputing.co.uk/pyqt/download.php and unpack it.
- Download the "Developer files" of the GSL from http://gnuwin32.sourceforge.net/packages/gsl.htm and unpack them.
- Download the "Developer files" of zlib from http://gnuwin32.sourceforge.net/packages/zlib.htm and unpack them.
- Download the source code of the latest version of Qwt from http://sourceforge.net/project/showfiles.php?group_id=13693 an unpack it.
- Download the source code of QwtPlot3D from http://qwtplot3d.sourceforge.net/web/navigation/download_frame.html and unpack it.
- Download the source code of muParser from http://sourceforge.net/project/showfiles.php?group_id=137191 and unpack it.
- Download the source code of SciDAVis from
http://scidavis.sourceforge.net/download.html
and unpack it.
Now you have everything you need and you can start compiling. Make sure you compile everything with the same version of Qt, otherwise you may encounter problems. - Compile Qwt:
First edit the qwtconfig.pri file. Comment out the line
CONFIG += QwtDllby prepending a '#'. You can also comment out the lineCONFIG += QwtWidgetssince the Qwt widgets are not used in SciDAVis. The same is true for the Qt designer plugin (comment outCONFIG QwtDesigner). If you want, change the lineINSTALLBASE = C:/Qwt-5.0.2to some other folder to install to. Now open a DOS prompt and go to the folder containing qwt.pro and qwtcontig.pri using thecdcommand. Then typeqmake. If everything goes right, no message will be displayed and a "Makefile" will be created. Next executemakeand wait for Qwt to compile. Finally typemake installto install Qwt in the folder specified byINSTALLBASE. - Compile QwtPlot3D:
Compiling QwtPlot3D statically is hard, maybe even impossible. Therefore the easiest way is to compile it as a dll and copy it into the folder containing scidavis.exe at the end.
Edit the
qwtplot3d.profile and look for the lineCONFIG += .... debug. Replace the worddebugwithrelease. Secondly, comment out the line containingvclib. Then go to your DOS prompt to the directory containing qwtplot3d.pro and typeqmakefollowed bymake. - Compile SIP and PyQt:
Go to the directory where you unpacked the SIP source code. Execute
python configure.py -p win32-g++followed bymakeandmake install. Now go to the directory where you unpacked PyQt and executepython configure.py(accept the license by typing "yes"),make, andmake install. - Compile muParser:
Go the "build" directory and execute
make -fmakefile.mingwthere. - Compile SciDAVis:
Edit the
scidavis/scidavis.profile. You have to change the paths there to the paths where you installed the libraries described above. The corresponding lines are the ones beginning withwin32:INCLUDEPATHandwin32:LIBS. To enable the Python support, remove the "#" beforeinclude( python.pri ). You can also customize where to install SciDAVis by replacingc:/scidavisin this line:win32: INSTALLBASE = c:/scidavis. If you want the fit plugins, you will have to edit the paths to GSL in the .pro files there too. The corresponding lines are these:win32:INCLUDEPATH += c:/gsl/include win32:LIBS += c:/gsl/lib/libgsl.a win32:LIBS += c:/gsl/lib/libgslcblas.a. If not, comment out or remove the lines "SUBDIRS += fitPlugins/fitRational0\andfitPlugins/fitRational1in the main .pro file. Then go to the base directory of the SciDAVis source and executeqmake,make, andmake install. - Copy qwtplot3d.dll to the directory where you installed scidavis.exe.
Additional information
Forums and mailing lists:
If you want to discuss SciDAVis with other users (or the developers) or if you are insterested in its further development, you can go to the SciDAVis forum or subscribe to the SciDAVis mailing list.License:
SciDAVis is distributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license is provided in the file gpl.txt.
Thus it is "free software". "Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech", not as in "free beer". "Free software" is also often called Open Source, FOSS, or FLOSS. When we say that SciDAVis is "free", we are talking about
- The freedom to run the program, for any purpose (freedom 0).
- The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this.
- The freedom to redistribute copies so you can help your neighbor (freedom 2).
- The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
