源码下载:
linphone, including:
- oRTP
- mediastreamer2
- liblinphone
- linphonec
- linphone (gtk)
git clone git://git.linphone.org/linphone.git --recursive
Linphone is an open source SIP Phone, available on mobile and desktop environments (iOS, Android, Windows Phone, GNU/Linux, MAC OSX, Windows Desktop, Windows 10) and on web browsers.
Linphone has inside a separation between the user interfaces and the core engine, allowing to create various kinds of user interface on top of the same functionalities.
-
The user interface frontends:
- Gtk+ interface for windows, mac and GNU/Linux
- The console interface (linphonec, linphonecsh)
- The iPhone application built in objective C
- The Android application running in java
- The Windows Phone application written in C#
-
Liblinphone, the core engine: this is the library that implements all the functionalities of Linphone.
Liblinphone
is a powerful SIP VoIP video SDK that anyone can use to add audio or
video call capabilities to an application. It provides a high level api
to initiate, receive, terminate audio & video calls. -
Liblinphone relies on the following software components:
- Mediastreamer2, a powerful multimedia SDK to make audio/video streaming and processing.
- oRTP, a simple RTP library.
- belle-sip the SIP library.
Liblinphone and all its dependencies are written in pure C.
ubuntu12.04 x86下编译过程中碰到的问题linphone-3.4.0:
、
linphonecore.c: In function 'video_config_read':
linphonecore.c::: error: variable 'self_view' set but not used [-Werror=unused-but-set-variable]
linphonecore.c::: error: variable 'display' set but not used [-Werror=unused-but-set-variable]
linphonecore.c::: error: variable 'capture' set but not used [-Werror=unused-but-set-variable]
linphonecore.c: In function 'linphone_core_invite_address_with_params':
linphonecore.c::: error: variable 'err' set but not used [-Werror=unused-but-set-variable] 解决方法:
进入到源码路径下,再次编译即可:
yingc@yingc:~/work/voip/linphone/linphone-3.4.$ sed -i "s/-Werror//g" `find . -type f` 、
CC pulseaudio.lo
CC msv4l.lo
msv4l.c: In function 'v4l_configure':
msv4l.c::: error: 'BASE_VIDIOCPRIVATE' undeclared (first use in this function)
msv4l.c::: note: each undeclared identifier is reported only once for each function it appears in
make[]: *** [msv4l.lo] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2/src'
make[]: *** [all] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2/src'
make[]: *** [all-recursive] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2'
make: *** [all] 错误 解决方法:
修改msv4l.c源码,加入#define BASE_VIDIOCPRIVATE 192定义 、
checking for LIBV4L2... no
No libv4l2 found.
checking for LIBV4L1... no
No libv4l1 found.
configure: error:
Missing libv4l2. It is highly recommended to build with
libv4l2 headers and library. Many camera will won't work or will crash
your application if libv4l2 is not installed.
If you know what you are doing, you can use --disable-libv4l to disable
this check.
解决方法: yingc@yingc:~/work/voip/linphone/linphone-3.4.0$ sudo apt-get install -y libv4l-dev
4、
CC msv4l.lo
msv4l.c::: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
make[]: *** [msv4l.lo] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2/src'
make[]: *** [all] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2/src'
make[]: *** [all-recursive] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./mediastreamer2'
make: *** [all] 错误 解决方法:
修改源码,将linux/videodev.h替换为<libv4l1-videodev.h>、
/home/yingc/work/voip/linphone/linphone-3.4.
make all-recursive
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4.'
Making all in m4
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./m4'
make[]: 没有什么可以做的为 `all'。
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./m4'
Making all in pixmaps
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./pixmaps'
make[]: 没有什么可以做的为 `all'。
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./pixmaps'
Making all in po
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./po'
make[]: 没有什么可以做的为 `all'。
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./po'
Making all in oRTP
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP'
make[]: *** 没有规则可以创建目标“all”。 停止。
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP'
make[]: *** [all-recursive] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4.'
make: *** [all] 错误 解决方法:
下载对应版本的源码包拷贝到该目录即可 、
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./po'
Making install in oRTP
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP'
Making install in src
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP/src'
Making install in .
make[]: 正在进入目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP/src'
CC stun.lo
stun.c: In function 'stunSendTest':
stun.c::: error: variable 'discard' set but not used [-Werror=unused-but-set-variable]
stun.c: In function 'stunNatType':
stun.c::: error: variable 'testIchangedAddr' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[]: *** [stun.lo] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP/src'
make[]: *** [install-recursive] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP/src'
make[]: *** [install-recursive] 错误
make[]:正在离开目录 `/home/yingc/work/voip/linphone/linphone-3.4./oRTP'
make: *** [install-recursive] 错误 1 解决方法:
进入到对应目录,执行命令 :sed -i "s/-Werror//g" `find . -type f`
参考网址:
linux/videodev.h: No such file or directory错误解决方法
依赖库相关下载地址:
aa