[Speex-dev] patch for compilation under MACOSX

Aymeric Moizard jack at atosc.org
Mon Jul 17 08:19:36 PDT 2006


I just compiled speex under my new intel iMac with MacOSX
and get a compilation issue with the malloc.h header not
being found.

Here is a patch that avoid inclusion of malloc.h
under MACOSX. (I'm using osx version 10.4 - Tiger)

--- libspeex/kiss_fft.h 26 Jun 2006 02:22:34 -0000      1.1.1.1
+++ libspeex/kiss_fft.h 17 Jul 2006 15:15:53 -0000
@@ -5,7 +5,9 @@
  #include <stdio.h>
  #include <math.h>
  #include <memory.h>
+#ifndef __MACH__
  #include <malloc.h>
+#endif

  #ifdef __cplusplus
  extern "C" {


Patch is for something close to 1.1.12, I didn't verified
the original speex CVS..

Thanks!
Aymeric

On Thu, 13 Jul 2006, Jean-Marc Valin wrote:

> How about installing the libtool development stuff? Otherwise, it may
> have something to do with automake 1.9 (I'm using 1.8).
>
> 	Jan-Marc
>
> Le jeudi 13 juillet 2006 à 15:26 +0200, Björn Thalheim a écrit :
>> Hello,
>>
>> I just checked out the latest version of speex and I want to compile it.
>> The INSTALL file says that's easy:
>>
>> bjoern at deimos:~/studium/beleg/resources/svn/speex$ cat INSTALL
>> Installing Speex is as easy as:
>> % ./configure [--prefix=<install-path>]
>> % make
>> % make install
>> Note that if you are using the code from SVN, you will need to run
>> "autogen.sh" instead of "configure".
>>
>> So I tried that.
>>
>> bjoern at deimos:~/studium/beleg/resources/svn/speex$ ./autogen.sh
>> checking for autoconf...
>> checking for automake 1.8 or later... automake
>> checking for aclocal 1.8 or later... aclocal
>> checking for libtool... libtoolize
>> I am going to run ./configure with no arguments - if you wish
>> to pass any to it, please specify them on the ./autogen.sh command line.
>> Generating configuration files for Speex, please wait....
>>   aclocal
>> aclocal:configure.ac:32: warning: macro `AM_PROG_LIBTOOL' not found in
>> library
>>   autoheader
>>   libtoolize --automake
>>   automake --add-missing
>> libspeex/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
>> libspeex/Makefile.am:9:
>> libspeex/Makefile.am:9: The usual way to define `LIBTOOL' is to add
>> `AC_PROG_LIBTOOL'
>> libspeex/Makefile.am:9: to `configure.ac' and run `aclocal' and
>> `autoconf' again.
>> bjoern at deimos:~/studium/beleg/resources/svn/speex$ make
>> make: *** No targets specified and no makefile found.  Stop.
>>
>> Obviously, somthing fails here when calling the autogen-Script. I have a
>> /usr/local-installation of automake, which is Version 1.9, this thing
>> also provides me aclocal version 1.9:
>>
>> bjoern at deimos:~/studium/beleg/resources/svn/speex$ aclocal --version
>> aclocal (GNU automake) 1.9
>> Written by Tom Tromey <tromey at redhat.com>
>> Copyright (C) 2004 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> bjoern at deimos:~/studium/beleg/resources/svn/speex$ automake --version
>> automake (GNU automake) 1.9
>> Written by Tom Tromey <tromey at redhat.com>.
>> Copyright 2004 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>>
>> Yes the source code is nice, but I would really like to compile it ;-) I
>> googled for this error, but doing that doesn't help because everybody
>> has such problems but nobody seems to have a solution.
>>
>> Regards,
>>
>> Björn
>>
>>
>> PS: of course I could read the aclocal and automake manpages for hours,
>> but I still hope that I won't have to do that.
>>
>> --
>> You are only young once, but you can stay immature indefinitely.
>>
>> _______________________________________________
>> Speex-dev mailing list
>> Speex-dev at xiph.org
>> http://lists.xiph.org/mailman/listinfo/speex-dev
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>
>


More information about the Speex-dev mailing list