[Asterisk-Users] Spandsp

Craig Guy cguy at bigpond.net.au
Thu Jan 12 08:34:38 MST 2006


Do you have the spandsp libraries in your library path?, by default they go 
into /usr/local/lib

Craig

----- Original Message ----- 
From: "Tomislav Parcina" <tparcina at lama.hr>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, January 12, 2006 10:32 PM
Subject: [Asterisk-Users] Spandsp


>I have tried to install spandsp. On fresh installed FC4 and Asterisk
> 1.2.1 with zaptel, addons and sounds. I have libtiff, libtiff-devel,
> libxml2 and libxml2-devel RPMs installed.
>
> I have untar spandsp-0.0.2pre22.tar.tar and have run
> ./configure
> make
> make install
>
> then I have execute patch (at the end of mail) and I didn't recive any
> error.
>
> I have again run in /usr/src/asterisk-1.2.1/  dir
> make clean; make; make install
>
> and when I tried to start *, it fails when tries to load app_txfax.so.
> What could be wrong?
>
>
>
> [format_ilbc.so] => (Raw iLBC data)
>  == Registered file format iLBC, extension(s) ilbc
> [app_curl.so] => (Load external URL)
>  == Registered custom function CURL
>  == Registered application 'Curl'
> [app_txfax.so][root at asterisk82 /]#
>
>
>
>
> ******* patch file *******
>
> --- Makefile.orig 2006-01-11 18:39:21.000000000 +0800
> +++ Makefile 2006-01-11 18:40:46.000000000 +0800
> @@ -52,10 +52,14 @@
>
> ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h
> $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
> APPS+=app_osplookup.so
> endif
>
> +ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp.h
> $(CROSS_COMPILE_TARGET)/usr/include/spandsp.h),)
> +APPS+=app_rxfax.so app_txfax.so
> +endif
> +
> ifeq ($(findstring BSD,${OSARCH}),BSD)
> CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L
> $(CROSS_COMPILE_TARGET)/usr/local/lib
> endif
>
> CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
> @@ -100,10 +104,16 @@
>  rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
>
> app_curl.so: app_curl.o
>  $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
>
> +app_rxfax.so : app_rxfax.o
> + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
> +
> +app_txfax.so : app_txfax.o
> + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
> +
> app_sql_postgres.o: app_sql_postgres.c
>  $(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o
> app_sql_postgres.o app_sql_postgres.c
>
> app_sql_postgres.so: app_sql_postgres.o
>  $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -
> L/usr/local/pgsql/lib -lpq
>
> -- 
>
> Tomislav Parcina
> name.surname at email.t-com.hr
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users 




More information about the asterisk-users mailing list