Скрипт конфигурации сейчас такой:
#!/bin/bash
export PATH=/opt/arm-2011.09/bin:$PATH
export HOSTTPL=arm-none-linux-gnueabi
export PREFIX=/usr
export SOURCEDIR=$HOME/linphone
export INSTALLDIR=$SOURCEDIR/install
export COMPDIR=$SOURCEDIR/install$PREFIX
sudo apt-get install intltool
cd $SOURCEDIR/ncurses-5.9
./configure --prefix=$PREFIX --with-shared --with-gnu-ld --host=$HOSTTPL
make
make install DESTDIR=$INSTALLDIR
cd $SOURCEDIR/readline-6.2
./configure --prefix=$PREFIX --host=$HOSTTPL
make
make install DESTDIR=$INSTALLDIR
cd $SOURCEDIR/libosip2-3.5.0
./configure --prefix=$PREFIX --with-gnu-ld --host=$HOSTTPL
make
make install DESTDIR=$INSTALLDIR
cd $SOURCEDIR/libogg-1.3.0
./configure --prefix=$PREFIX --with-gnu-ld --host=$HOSTTPL
make
make install DESTDIR=$INSTALLDIR
rm $COMPDIR/lib/*.la
cd $SOURCEDIR/libeXosip2-3.5.0
./configure --prefix=$PREFIX --host=$HOSTTPL --with-gnu-ld OSIP_CFLAGS="-I$COMPDIR/include" OSIP_LIBS="-L$COMPDIR/lib -losip2 -losipparser2"
make
make install DESTDIR=$INSTALLDIR
rm $COMPDIR/lib/*.la
cd $SOURCEDIR/speex-1.2rc1
./configure --prefix=$PREFIX --host=$HOSTTPL --enable-arm-asm --with-gnu-ld --enable-fixed-point --with-ogg="$COMPDIR" --disable-float-api
make
make install DESTDIR=$INSTALLDIR
rm $COMPDIR/lib/*.la
cd $SOURCEDIR/libvorbis-1.3.2
./configure --prefix=$PREFIX --with-gnu-ld --target=$HOSTTPL OGG_CFLAGS="-I$COMPDIR/include" OGG_LIBS="-L$COMPDIR/lib/libogg.a"
make
make install DESTDIR=$INSTALLDIR
rm $COMPDIR/lib/*.la
cd $SOURCEDIR/alsa-lib-1.0.25
./configure --prefix=$PREFIX --host=$HOSTTPL --enable-static=no --enable-shared=yes
make
make install DESTDIR=$INSTALLDIR
rm $COMPDIR/lib/*.la
cd $SOURCEDIR/linphone-3.5.2
./configure --prefix=$PREFIX --host=$HOSTTPL --with-gnu-ld --disable-static --disable-glib --enable-gtk_ui=no --disable-sdl --disable-x11 --disable-libv4l2 --with-readline=$COMPDIR SPEEX_CFLAGS="-I$COMPDIR/include" SPEEX_LIBS="-L$COMPDIR/lib -lspeex" SWSCALE_CFLAGS="-I$COMPDIR/include" SWSCALE_LIBS="-L$COMPDIR/lib -lswscale" --enable-alsa --disable-video --disable-ffmpeg --disable-strict --disable-tests --enable-fixed-point SPEEXDSP_CFLAGS="-I$COMPDIR/include" SPEEXDSP_LIBS="-L$COMPDIR/lib -lspeexdsp" LDFLAGS="-L$COMPDIR/lib" CFLAGS="-I$COMPDIR/include" --with-osip=$COMPDIR
#vi $SOURCEDIR/linphone-3.5.2/coreapi/Makefile
#Find the LIBS variable and change it as:
#LIBS = /home/sasha/linphone/install/usr/lib/libosip2.a /home/sasha/linphone/install/usr/lib/libspeex.a /home/sasha/linphone/install/usr/lib/libvorbis.a /home/sasha/linphone/install/usr/lib/libvorbisenc.a /home/sasha/linphone/install/usr/lib/libspeexdsp.a /home/sasha/linphone/install/usr/lib/libogg.a -lasound
#cd $SOURCEDIR/linphone-3.5.2/coreapi/help/Makefile
#Find the LIBS variable and change it as:
#LIBS = /home/sasha/linphone/install/usr/lib/libeXosip2.a /home/sasha/linphone/install/usr/lib/libspeex.a /home/sasha/linphone/install/usr/lib/libvorbisenc.a /home/sasha/linphone/install/usr/lib/libosipparser2.a /home/sasha/linphone/install/usr/lib/libosip2.a /home/sasha/linphone/install/usr/lib/libvorbis.a /home/sasha/linphone/install/usr/lib/libspeexdsp.a /home/sasha/linphone/install/usr/lib/libogg.a -lasound
#cd $SOURCEDIR/linphone-3.5.2/console/Makefile
#Find the LIBS variable and change it as:
#LIBS = -leXosip2 -losip2 /home/sasha/linphone/install/usr/lib/libvorbisenc.a -lspeexdsp -logg -losipparser2 -lasound
#And find linphonecsh_LDADD variable and change it as:
#linphonecsh_LDADD = $(ORTP_LIBS) -L/home/sasha/linphone/install/usr/lib
#make
#make install DESTDIR=$INSTALLDIR
У меня сейчас сомнения насчет указания имен библиотек. Если укажу -lasound, то эта библиотека будет искаться в /usr/lib. Если я указываю -l/home/sasha/linphone/install/usr/lib/asound то получаю ошибку