MSYS&MINGW环境中编译mediastream2和ortp

(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:

  1. 访问http://sourceforge.net/projects/srtp/并下载srtp-1.4.4.tgz,并解压到c:\msys\src目录下(也可以是其它目录);
  2. 运行c:\msys\msys.bat,执行以下命令,

cd /src/srtp

autoconf

./configure–prefix=/usr

make

make install

make clean

(5)编译ortp:

  1. 访问http://download.savannah.gnu.org/releases-noredirect/linphone/ortp/sources/并下载ortp-0.16.3.tar.gz,解压到c:\msys\src目录下(也可以是其它目录);
  2. 运行c:\msys\msys.bat,执行以下命令,

cd /src/ortp-0.16.3

autoconf

./configure–prefix=/usr

make

make install

make clean

(6)编译mediastreamer2:

  1. 访问http://download.savannah.gnu.org/releases-noredirect/linphone/mediastreamer/并下载mediastreamer-2.5.0.tar.gz,解压到c:\msys\src目录下(也可以是其它目录);
  2. 运行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.defmediastreamer.def

cp ../src/ortp-0.16.3/build/win32native/ortp.defortp.def

cp../bin/libortp-8.dll .

cp../bin/libmediastreamer-0.dll

dlltool –Dlibortp-8.dll –d ortp.def –l ortp.lib

dlltool –Dlibmediastreamer-0.dll.a –d mediastreamer.def –l mediastreamer.lib

(joiner)

你可能感兴趣的:(MSYS&MINGW环境中编译mediastream2和ortp)