Hola!
On Wed, Jul 06, 2016 at 12:27:15PM -0700, Dos Santos Mendes Filipe wrote:
> I try to install MathMap on Ubuntu 16.04 (Xenial) and am confronted to a
> problem whith libnoise.
>
> I tried to install from the tar.gz sources and after that, from the git
> repository.
>
> The two methods ended the same when compiling with the following error
> message
> builtins/libnoise.cpp:23:19: fatal error: noise.h: File not found
>
> I think all the dependencies are installed. Anyway, libnoise is builtin so I
> presume a little something is missing for my ubuntu version and I don't know
> what.
TL;DR:
git/mathmap$ rm -rf libnoise
git/mathmap$ make libnoise
git/mathmap$ make
Details:
... only to find another problem, see below for what I found!
I have Linux Mint with a hosed build system, but I also have debootstrap:
# mkdir /data/xenial ; debootstrap xenial /data/xenial
... mount -o loop { various system partitions }
# chroot /data/xenial
... install libgimp2.0-dev, 115M of deps, etc ...
# git clone
https://github.com/schani/mathmap.git
... hack around ...
I found this zipfile ... and these diffs ...
Oh right, I knew that -- it's "make libnoise"!
This invokes the Makefile rule which extracts
libnoisesrc-1.0.0.zip
applies patches (libnoise*.diff), and builds it.
So, that's not a Xenial-specific solution,
but now I have a problem that I didn't have on Mint:
In file included from compiler.c:48:0:
opfuncs.h: In function 'fold_rhs':
opmacros.h:106:31: error: too many arguments to function
'gsl_sf_ellint_D'
#define ELL_INT_D(phi,k,n) gsl_sf_ellint_D((phi), (k), (n),
GSL_PREC_SINGLE)
So, there's some change to the gsl api in Xenial? *sigh*
While I was hacking it died on a libgif API change, the &error
parameter had disappeared, but I didn't hit that error again.
So yeah, a bit of bitrot and apparent nondeterminism is in your
future. I wish I understood autoconf better; it would make building
MathMap much less painful.
> thanks by advance to all who'll give me a hand on this :)
I hope I got you un-stuck, and I'll look into the API changes
when I have more time! Maybe you can adjust the code, there
are more clues than just "noise.h missing". :)
Speaking of time, broadband Internet and SSD are so amazing --
installing a whole xenial system with gimp development environment and
then getting most of the way through a mathmap build took less time
and effort than just downloading and installing mathmap used to!
Cheers,
Tom
--
-- Tom Rathborne -------------------------------- Itinerant Algorithm Shaman --
What is wanted is not the will to believe,
but the will to find out,
which is the exact opposite.
-- Bertrand Russell, "Skeptical Essays", 1928