Linphone移植——ARM9上音视频通话(转)(3)
- UID
- 1029342
- 性别
- 男
|
Linphone移植——ARM9上音视频通话(转)(3)
speex
$./configure --prefix=$PREFIX --host=$HOSTTPL --with-gnu-ld--disable-static --enable-fixed-point --enable-arm-asm--with-ogg="$INSTALLDIR/usr/local"
$make
$ makeinstall DESTDIR=$INSTALLDIR
libav
$./configure --prefix=$PREFIX --enable-cross-compile--cross-prefix=arm-none-linux-gnueabi- --arch=armv4--target-os=linux
$make
$ makeinstall DESTDIR=$INSTALLDIR
其中--arch=armv4请修改为所开发平台对应的信息
libvorbis
$./configure --prefix=$PREFIX --host=$HOSTTPL --with-gnu-ld--with-ogg="$INSTALLDIR/usr/local"
$make
$ makeinstall DESTDIR=$INSTALLDIR
zlib
$./configure --prefix=$PREFIX
修改Makefile
CC=gcc =〉
CC=arm-none-linux-gnueabi-gcc
LDSHARED=gcc -shared-Wl,-soname,libz.so.1,--version- script,zlib.map =〉
LDSHARED=arm-none-linux-gnueabi-gcc-shared -Wl,-soname,libz.so.1,--version-script,zlib.map
CPP=gcc-E =〉
CPP=arm-none-linux-gnueabi-gcc -E
AR=arrc =〉
AR=arm-none-linux-gnueabi-ar rc
$make
$ makeinstall DESTDIR=$INSTALLDIR
libv4l
修改Makefile,
$ vilibv4l1/Makefile
$ vilibv4l2/Makefile
$ vilibv4lconvert/Makefile
在文件起始处增加以下两行:
CC=arm-none-linux-gnueabi-gcc
AR=arm-none-linux-gnueabi-ar
$make
$ makeinstall DESTDIR=$INSTALLDIR
有些交叉工具链可能没有videodev.h文件,修改Makefile以去除对libv4l1的变异,同时在linphone编译时不加入libv4l1。
rm $INSTALLDIR$PREFIX/lib/*.la
linphone
$ cdmediastreamer2/src
$ patch<mediastreamer-2.7.3-ms_sws_fix.patch //右击另存为
linphone-3.5.2使用mediastreamer2-2.8.2版本已修复此错误(update2013.1.2)
$./configure --prefix=$PREFIX --host=$HOSTTPL \
--disable-static --disable-glib --enable-gtk_ui=no--disable-xv --disable-x11--disable-pulseaudio \
--enable-video --enable-ffmpeg --enable-sdl--enable-libv4l --enable-oss --enable-ipv6 \
--with-gnu-ld \
--with-ffmpeg=$INSTALLDIR/usr/local \
--with-libiconv-prefix=$INSTALLDIR/usr/local \
--with-osip=$INSTALLDIR/usr/local \
--with-readline=$INSTALLDIR/usr/local \
SPEEX_CFLAGS="-I$INSTALLDIR/usr/local/include" \
SPEEX_LIBS="-L$INSTALLDIR/usr/local/lib -lspeex" \
FFMPEG_CFLAGS="-I$INSTALLDIR/usr/local/include" \
FFMPEG_LIBS="-L$INSTALLDIR/usr/local/lib -lavcodec" \
SWSCALE_CFLAGS="-I$INSTALLDIR/usr/local/include" \
SWSCALE_LIBS="-L$INSTALLDIR/usr/local/lib -lswscale" \
SDL_CFLAGS="-I$INSTALLDIR/usr/local/include" \
SDL_LIBS="-L$INSTALLDIR/usr/local/lib -lSDL" \
OSIP_CFLAGS="-I$INSTALLDIR/usr/local/include" \
OSIP_LIBS="-L$INSTALLDIR/usr/local/lib -losip2 -losipparser2-leXosip2" \
SPEEX_CFLAGS="-I$INSTALLDIR/usr/local/include" \
SPEEX_LIBS="-L$INSTALLDIR/usr/local/lib -lspeex-lspeexdsp" \
SPEEXDSP_CFLAGS="-I$INSTALLDIR/usr/local/include" \
SPEEXDSP_LIBS="-L$INSTALLDIR/usr/local/lib -lspeex -lspeexdsp"\
LIBV4L2_CFLAGS="-I$INSTALLDIR/usr/local/include" \
LIBV4L2_LIBS="-L$INSTALLDIR/usr/local/lib -lv4l2" \
LIBV4L1_CFLAGS="-I$INSTALLDIR/usr/local/include"\
LIBV4L1_LIBS="-L$INSTALLDIR/usr/local/lib-lv4l1" |
|
|
|
|
|