iMath is hosted at SourceForge.
The CVS web interface. You can also download a source.tgz and binary packages from the iMath project page.
To compile and use iMath, the GiNaC, CLN, GMP and EQC libraries are required, as well as the standard C++ development libraries, flex and bison. Information about these libraries can be found at the GiNaC library homepage, CLN library homepage and EQC library homepage. Compilation has been tested with EQC 1.4.0 using g++-4.4. Older versions will most probably not work.
In order to compile and install iMath on your system, type the following in the base directory of the iMath distribution:
% ./configure
% make
% make install
Since iMath uses autoconf
you should have no trouble compiling it.
Should you run into problems please report them to the the
author.
iMath can be cross-compiled for windows by installing the mingw32 package. The following steps are necessary to build iMath for windows under Debian GNU Linux:
--host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --without-gmp
, then make
and make install
).
Maybe it needs to be patched (see
http://thep.physik.uni-mainz.de/pipermail/cln-list/2005-April/000116.html). --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc
, then make
and make install
).
On my system, this requires a patch to configure: Replace the statement
BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
with BITS_PER_MP_LIMB=32
(or whatever value is
correct for your system. To find this out, insert an echo $ac_cv_sizeof_mp_limb_t
and multiply by 8 manually).--host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --with-cln-prefix=/usr/i586-mingw32msvc
, then make
and
make install
).. You can ignore the error about libreadline not being found, since we will not be needing ginsh.#define YYTEXT_POINTER 1
. If you don't want to rebuild all the files
compiled up to then, run make -t
, remove all files with size 0, and re-run make.make -t
in the subdirectories ginsh and tools.CPPFLAGS
to -DMINGW
.--host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc
--with-ginac-prefix=/usr/i586-mingw32msvc
. This might requiree a patch to
/usr/i586-mingw32msvc/bin/ginac-config
: Replace the line saying
echo $libdirs -lginac -L/usr/lib -lcln -lgmp
with
echo ${exec_prefix}/lib/libginac.a ${exec_prefix}/lib/libcln.a ${exec_prefix}/lib/libgmp.a
i586-mingw32msvc-strip imath.dll
. This will greatly
reduce the file size.If all this is too complicated for you, RPM and Debian packages have been released on SourceFourge. They are accessible on the iMath project page.
Please report all bugs to the author. You should include the following information: