[asterisk-dev] linking/loading external library

alexander merkulov arheops at gmail.com
Tue Nov 26 11:31:55 CST 2013


Sure i have added to app <depend>fftw3</depend>
without that it not compile at all
issue now: it compile, but not load  module.
2013/11/26 alexander merkulov <arheops at gmail.com>

> hi
> i am gooing to use libfftw3 library in asterisk application.
>
> compilation is ok, but when i am loading module i get error like this:
>
> dev*CLI> module load app_amdb.so
> Unable to load module app_amdb.so
> Command 'module load app_amdb.so' failed.
> [Nov 26 07:44:51] WARNING[17342]: loader.c:481 load_dynamic_module: Error
> loading module 'app_amdb.so': /usr/lib/asterisk/modules/app_amdb.so:
> undefined symbol: fftw_plan_dft_1d
> [Nov 26 07:44:51] WARNING[17342]: loader.c:894 load_resource: Module
> 'app_amdb.so' could not be loaded.
> dev*CLI>
>
>
> what i have done so far:
>
> installed fftw.org with
> ./configure --enable-shared
>
>
>
> Added to configure.ac:
> -------------------------------------------
> AST_EXT_LIB_SETUP([FFTW3], [FFTW3], [fftw3])
>
> AST_EXT_LIB_CHECK([FFTW3], [libfftw3], [], [fftw3.h], [-lm -lfftw3])
> -------------------------------------------
>
>
> Added to build_tools/menuselect-deps.in:
> ------------------------------------------
> FFTW3=@PBX_FFTW3@
> ------------------------------------------
>
>
> Added to makeopts.in:
> ------------------------------------------
> FFTW3_INCLUDE=@FFTW3_INCLUDE@
> FFTW3_LIB=@FFTW3_LIB@
> ------------------------------------------
>
>
> compile via
>
> ./bootstrap.sh
> ./configure --with-fftw3
> make
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131126/75dbc9ea/attachment-0001.html>


More information about the asterisk-dev mailing list