(1) 安装intltool:访问http://ftp.acc.umu.se/pub/GNOME/binaries/win32/intltool/0.40/并下载intltool_0.40.4-1_win32.zip,解压到c:\msys目录下;
(2) 安装linphone-deps:访问http://download.savannah.gnu.org/releases- noredirect/linphone/misc/并下载linphone-deps-win32-091203.zip,解压到c:\msys目录 下;
(3) 安装gtk+:访问http://www.gtk.org/download-windows.html,下载pkg-config_0.23-3_win32.zip和glib_2.24.0-2_win32.zip,解压到c:\msys目录下;
(4) 编译libSRTP:
- 访问http://sourceforge.net/projects/srtp/并下载srtp-1.4.4.tgz,并解压到c:\msys\src目录下(也可以是其它目录);
- 运行c:\msys\msys.bat,执行以下命令,
cd /src/srtp
autoconf
./configure–prefix=/usr
make
make install
make clean
(5) 编译ortp:
- 访问http://download.savannah.gnu.org/releases-noredirect/linphone/ortp/sources/并下载ortp-0.16.3.tar.gz,解压到c:\msys\src目录下(也可以是其它目录);
- 运行c:\msys\msys.bat,执行以下命令,
cd /src/ortp-0.16.3
autoconf
./configure–prefix=/usr
make
make install
make clean
(6) 编译mediastreamer2:
- 访问http://download.savannah.gnu.org/releases-noredirect/linphone/mediastreamer/并下载mediastreamer-2.5.0.tar.gz,解压到c:\msys\src目录下(也可以是其它目录);
- 运行c:\msys\msys.bat,执行以下命令,
cd /src/mediastreamer-2.5.0
autoconf
./configure–prefix=/usr
make
make install
make clean
(7) 创建lib文件供VC++使用:运行c:\msys\msys.bat,执行以下命令,
cd /lib
cp../src/mediastream-2.5.0/build/win32native/mediastreamer2.def mediastreamer.def
cp ../src/ortp-0.16.3/build/win32native/ortp.def ortp.def
cp../bin/libortp-8.dll .
cp../bin/libmediastreamer-0.dll .
dlltool –Dlibortp-8.dll –d ortp.def –l ortp.lib
(为支持linphone media engine 需要在ortp.def文件添加如下代码:
payload_type_pcmu8000
payload_type_pcma8000
payload_type_pcm8000
payload_type_l16_mono
payload_type_l16_stereo
payload_type_lpc1016
payload_type_g729
payload_type_g7231
payload_type_g7221
payload_type_g726_40
payload_type_speex_nb
payload_type_speex_wb
payload_type_speex_uwb
payload_type_ilbc
payload_type_telephone_event
av_profile
) dlltool –Dlibmediastreamer-0.dll.a –d mediastreamer.def –l mediastreamer.lib