Speex-linux Audio Processing __linux

Source: Internet
Author: User

Cross-compile Linphone [OSIP2, Ogg, Speex, ORTP (VoIP Open-source Software) (turn)] 2008-10-22 16:40

Linphone on Arm-linux (cross-compiling in host for target architecture)
Compiler Linphone need the support of the library, which requires the support of the OSIP2,OGG,SPEEX,ORTP library, these libraries support a variety of communication protocols, such as OSIP2 support for the SIP protocol, ORTP support for the RTP protocol (that is, the RTP protocol software version).

The Speex Library requires Ogg library support, which can be seen in the compilation process.

less nonsense, start the cross compilation below:


Software packages: (Download the following packages online)
1) linphone-1.2.0
2) libosip2-2.2.2
3) libogg-1.1.0
4) speex-1.1.11.1
5 ORTP (Linphone package, if not can download ortp-0.7.0 version)
Download http://www.gnu.org/software/to the website
See Other tools: http://telestarnotes.blogspot.com/2004_12_01_archive.html

A) Compilation environment settings:
Arm Cross-compile tool::
Download arm-linux-gcc-3.4.1.tar.bz2
Extract directly into the usr/local or link to the/usr/local
1 arm-linux-gcc-3.4.1.tar.bz2 file Copy to usr/local, right click Decompression can be

2) any directory decompression arm-linux-gcc-3.4.1.tar.bz2
#tar-XVJF arm-linux-gcc-3.4.1.tar.bz2/Decompression
#export path= $PATH:/root/usr/local/arm/3.4.1/bin//environment variable settings: paths, links, libraries
#export Ld=/root/usr/local/arm/3.4.1/bin/arm-linux-ld
#export Ldflags=-l/root/usr/local/arm/3.4.1/arm-linux/lib



B) Cross-compilation libosip2-2.2.2
#cd libosip2-2.2.2//to the LIBOSIP directory after decompression to the same below
#./configure--prefix=/root/armbuild-host=arm-linux--target=arm-linux--disable-static//config file
#make//Compilation
#make Install//installation

--prefix=/: Specify file Compilation installation directory
--host= ...: Specify the Compilation tool, the default is GCC, this is arm-linux (compiled to arm)
--disable-static: Prohibit static library (. A) Link, compile Build dynamic library (. So)

C) cross-compile libogg-1.1.0
#cd. /libogg-1.1.0
#./configure--prefix=/root/armbuild--host=arm-linux--target=arm-linux--disable-static--enable-fixed-point
#make
#make Install

D) Cross-compilation speex-1.1.11.1
#cd. /speex-1.1.11.1
#./configure--prefix=/root/armbuild--host=arm-linux--target=arm-linux--disable-static--enable-fixed-point-- Enable-arm-asm--with-ogg=/root/armbuild--with-ogg-libraries=/roo/armbuild/lib--with-ogg-headers=/root/armbuild /include/ogg
To ogg the corresponding library copy under/root/armbuild/lib to the cross-compilation tool/usr/local/arm-linux/lib, Speex's compilation requires Ogg library support.
#make
#make Install
--with-ogg: Specifies the directory of Ogg-generated libraries
--with-ogg-libraries:ogg Library, if not, put the generated files under the copy directory
--with-ogg-headers: Specify OGG header File

E Libspeex compile successful library files to Couchen under the compilation tool
#cp/root/armbuild/usr/lib/libspeex.so.2.0.0
/root/usr/local/arm/3.4.1/arm-linux/lib

#cd/root/usr/local/arm/3.4.1/arm-linux/lib//Link creation
#ln-S libspeex.so.2.0.0 libspeex.so
#ln-S libspeex.so.2.0.0 libspeex.so.2
The above step E, you can manually put libspeex.so.2.0.0, libspeex.so, libspeex.so.2 three files copied to the Jia Cha Gyaca Compilation Tool under the Library (LIB) directory can

F) Cross-compile linphone-1.2.0:
Copy ORTP to linphone-1.2.0 directory before compiling Linphone
#cd/root/arm/linphone-1.2.0
#cd ORTP
##./configure--prefix=/root/armbuild--host=arm-linux--target=arm-linux--disable-static--enable-fixed-point-- Disable-glib
You need to add--disable-glib (Prohibit library), otherwise it should be missing Gthread library and cannot compile.
#make
#make Install

G) Copy the generated library files and links to the Couchen of the Cross-compilation tool (same step e)
# #cp/root/armbuild/usr/lib/libortp.so.2.0.0
/root/usr/local/arm/3.4.1/arm-linux/lib

#cd/root/usr/local/arm/3.4.1/arm-linux/lib
#ln-S libortp.so.2.0.0 libortp.so.2
#ln-S libortp.so.2.0.0 libortp.so

In this case, you can compile Linphone without graphical interface (GUI) support

H) #cd/root/arm/linphone-1.2.0
#./configure--prefix=/root/armbuild--host=arm-linux--target=arm-linux--disable-static--disable-glib-- Enable-gnome_ui=no--disable-manual
--enable-ipv6--enable-alsa--with-osip=/root/armbuild--with-speex=/root/armbuild
#make
#make Install
--enable-alsa: Enables ALSA Speech codec mode, voice transmission of another way for OSS
--enable-ipv6: Enable to IPv6

The above--disable-static statement makes the compilation unable to generate a static library file, that is, the library and the executable file are not integrated and a separate library support file is generated. Do not use this if you need to synthesize the library and executable files into a single file.

After compiling this, you can find the executable file in the/root/armbuild/bin file Linphonec, and download the files and libraries to the Development Board.
Enter the./linphonec in the appropriate directory in Sch, that is, you can run the program
If not, the library support is missing, and the corresponding *.so.* file just generated is copied to the Lib directory of the Development Board.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.