Monday, November 23, 2009

Compiling Asterisk 1.4.27 on MacOSX

Asterisk is a powerful Open Source telephony toolkit.
The latest version 1.4.27 does not compile on MacOSX 10.6, due to missing libraries.

The solution is simple and slightly strange as this bug was fixed 3 years ago :-/

In the file “Makefile” locate line 360 :

+@_ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(_ASTCFLAGS)” $(MAKE) --no-builtin-rules -C $@ SUBDIR=$@ all

and replace it with this :

+@_ASTCFLAGS="$(OTHER_SUBDIR_CFLAGS) $(_ASTCFLAGS)" AUDIO_LIBS="$(AUDIO_LIBS)" $(MAKE) --no-builtin-rules -C $@ SUBDIR=$@ all

Now at least it compiles on my system :-)

No comments: