The K Desktop Environment

Next Previous Table of Contents

2. Installation

2.1 How to obtain KCalc

KCalc is part of the KDE project http://www.kde.org. KCalc can be found on ftp://ftp.kde.org/pub/kde/, the main ftp site of the KDE project. It's home site is http://math.cornell.edu/~wuebben/kde.html

2.2 Requirements

In order to successfully compile KCalc, you need the latest versions of libkdecore and libkdeui. All required libraries as well as KCalc itself can be found on ftp://ftp.kde.org/pub/kde/.

2.3 Compilation and installation

The usual:

% ./configure
% make
% make install

IMPORTANT:

How to enable long double precision for KCalc:

If your machine supports the C data type 'long double' and if you have a working libc you can enable 'long double' precison for KCalc.

( RedHat 5.0 users are out of luck -- I suggest you get yourself a KDE friendly Linux distribution that has a working libc )

Here is what to do:

  1. Check ../config.h and see whether HAVE_LONG_DOUBLE is defined, ie you should be able to locate a line saying:
    #define HAVE_LONG_DOUBLE 1
    
    If you can't find such a line your system doesn't support long double IEEE precision.

  2. Edit the file kcalctype.h configdlg.cpp kcalc.cpp and kcalc_core.cpp and remove the lines
    #ifdef HAVE_LONG_DOUBLE
    #undef HAVE_LONG_DOUBLE
    #endif
    

  3. recompile KCalc.

Next Previous Table of Contents