Hello Jean-Marc,
Hello speex-dev-people,
Jean-Marc Valin wrote:> All I can suggest is having a look at my simple client at:
> http://people.xiph.org/~jm/speexclient/
Unfortunately, this does not compile:
<<<<< snip >>>>>
bjoern@phobos:~/beleg/speex/speexclient-0.0-dev$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
./configure: line 19042: sdl-config: command not found
./configure: line 19043: sdl-config: command not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
# Configure seems ok.
bjoern@phobos:~/beleg/speex/speexclient-0.0-dev$ make
make all-recursive
make[1]: Entering directory
`/home/bjoern/beleg/speex/speexclient-0.0-dev'
Making all in src
make[2]: Entering directory
`/home/bjoern/beleg/speex/speexclient-0.0-dev/src'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I.. -I../inclu
de -I/usr/include -g -O2 -MT alsadevice.lo -MD -MP -MF
".deps/alsadevice.Tpo"
-c -o alsadevice.lo alsadevice.cpp; \
then mv -f ".deps/alsadevice.Tpo" ".deps/alsadevice.Plo";
else rm -f
".deps/alsa
device.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include -g -O2
-MT alsadev
ice.lo -MD -MP -MF .deps/alsadevice.Tpo -c alsadevice.cpp -fPIC
-DPIC -o .libs/
alsadevice.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include -g -O2
-MT alsadev
ice.lo -MD -MP -MF .deps/alsadevice.Tpo -c alsadevice.cpp -o
alsadevice.o >/dev/
null 2>&1
/bin/sh ../libtool --mode=link g++ -g -O2 -o libaudiovideo.la
-rpath /usr/loc
al/lib -version-info 0:0:0 alsadevice.lo
g++ -shared -nostdlib
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/../../../crti.o /usr
/lib/gcc-lib/i486-linux-gnu/3.3.6/crtbeginS.o .libs/alsadevice.o
-L/usr/lib/gc
c-lib/i486-linux-gnu/3.3.6
-L/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/../../.. -lst
dc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/crtendS.o
/usr/lib/gc
c-lib/i486-linux-gnu/3.3.6/../../../crtn.o -Wl,-soname
-Wl,libaudiovideo.so.0 -
o .libs/libaudiovideo.so.0.0.0
(cd .libs && rm -f libaudiovideo.so.0 && ln -s
libaudiovideo.so.0.0.0 libaudiovi
deo.so.0)
(cd .libs && rm -f libaudiovideo.so && ln -s
libaudiovideo.so.0.0.0
libaudiovide
o.so)
ar cru .libs/libaudiovideo.a alsadevice.o
ranlib .libs/libaudiovideo.a
creating libaudiovideo.la
(cd .libs && rm -f libaudiovideo.la && ln -s ../libaudiovideo.la
libaudiovideo.l
a)
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include
-g -O2 -MT la
bvoip.o -MD -MP -MF ".deps/labvoip.Tpo" -c -o labvoip.o labvoip.cpp; \
then mv -f ".deps/labvoip.Tpo" ".deps/labvoip.Po"; else rm
-f
".deps/labvoip.Tpo
"; exit 1; fi
labvoip.cpp: In function `int main(int, char**)':
labvoip.cpp:201: error: `speex_echo_state_reset' undeclared (first
use this
function)
labvoip.cpp:201: error: (Each undeclared identifier is reported only
once for
each function it appears in.)
labvoip.cpp:230: error: cannot convert `float*' to `int*' for
argument `5' to `
void speex_echo_cancel(SpeexEchoState*, short int*, short int*,
short int*,
int*)'
labvoip.cpp:249: error: cannot convert `float*' to `int*' for
argument `3' to `
int speex_preprocess(SpeexPreprocessState*, short int*, int*)'
make[2]: *** [labvoip.o] Error 1
make[2]: Leaving directory
`/home/bjoern/beleg/speex/speexclient-0.0-dev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/bjoern/beleg/speex/speexclient-0.0-dev'
make: *** [all] Error 2
<<<<< snap >>>>>
I use the Debian(testing libspeex-dev package which provides
speex-1.1.6-2. The conversion problems seem solvable, but having a
look at my speex-1.1.6 source, I could not find any function named
speex_echo_state_reset.
Regards,
Bj?rn
PS: I hope that is not too much compiler output.
--
You will stop at nothing to reach your objective, but only because your
brakes are defective.
--
Important! Please recognize my new GPG Public Key!
Bj?rn Thalheim
gpg fingerprint: 0A29 87E7 B4BE 8EFC 1063 EF09 9096 FA4B DF0C 6701
download key: wget http://www.ifsr.de/~bjoern/gpg/public_key.asc
See also: http://www.ifsr.de/~bjoern/gpg/key.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url :
http://lists.xiph.org/pipermail/speex-dev/attachments/20051011/349cdd0d/signature.pgp