<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>The KCalc Handbook: Installation</TITLE>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" > 
<FONT FACE="Helvetica">
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.gif" BORDER="0" ALT="The K Desktop Environment"></A>
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>

 
<P ALIGN="RIGHT">

<A HREF="index-3.html">Next</A>
<A HREF="index-1.html">Previous</A>
<A HREF="index.html#toc2">Table of Contents</A>
</P>
<H3><A NAME="s2">2. Installation</A></H3>

<P>
<H3><A NAME="ss2.1">2.1 How to obtain KCalc</A>
</H3>

<P>KCalc is part  of the KDE project 
<A HREF="http://www.kde.org">http://www.kde.org</A>.
KCalc can be found on 
<A HREF="ftp://ftp.kde.org/pub/kde/">ftp://ftp.kde.org/pub/kde/</A>, the main ftp site
of the KDE project. It's home site is
<A HREF="http://math.cornell.edu/~wuebben/kde.html">http://math.cornell.edu/~wuebben/kde.html</A><P>
<H3><A NAME="ss2.2">2.2 Requirements</A>
</H3>

<P>In order to successfully compile KCalc, you need the latest versions of <CODE> libkdecore</CODE> and <CODE> libkdeui</CODE>. All required libraries as well as KCalc itself can be found
on 
<A HREF="ftp://ftp.kde.org/pub/kde/">ftp://ftp.kde.org/pub/kde/</A>. 
<P>
<H3><A NAME="ss2.3">2.3 Compilation and installation</A>
</H3>

<P>
<P>The usual:
<P>
<BLOCKQUOTE><CODE>
<PRE>
% ./configure
% make
% make install
</PRE>
</CODE></BLOCKQUOTE>
<P><B>IMPORTANT:</B> 
<P><B>How to enable long double precision for KCalc:</B>
<P>
<P>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.
<P>( RedHat 5.0 users are out of luck -- I suggest
you get yourself a KDE friendly Linux distribution 
that has a working libc )
<P>Here is what to do:
<P>
<OL>
<LI> Check ../config.h and see whether HAVE_LONG_DOUBLE is defined, ie
you should be able to locate a line saying:

<BLOCKQUOTE><CODE>
<PRE>
#define HAVE_LONG_DOUBLE 1
</PRE>
</CODE></BLOCKQUOTE>


If you can't find such a line your system doesn't support long
double IEEE precision.
<P>
</LI>
<LI> Edit the file kcalctype.h configdlg.cpp kcalc.cpp and kcalc_core.cpp and 
remove the lines 

<BLOCKQUOTE><CODE>
<PRE>
#ifdef HAVE_LONG_DOUBLE
#undef HAVE_LONG_DOUBLE
#endif
</PRE>
</CODE></BLOCKQUOTE>

<P>
</LI>
<LI> recompile KCalc.
<P>
</LI>
</OL>
<P>
<P>
<P ALIGN="RIGHT">

<A HREF="index-3.html">Next</A>
<A HREF="index-1.html">Previous</A>
<A HREF="index.html#toc2">Table of Contents</A>
</P>
<CENTER>
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
</CENTER>    
</FONT>

 
</BODY>
</HTML>
