| Hello All,
I am trying to get Linphone work on an mx27 board. I am unable to proceed further due to a Compilation issue that i am stuck with.
Here is the Console Log:
<snip> checking for FFMPEG... yes checking for avcodec_register_all in -lavcodec... yes
checking SDL/SDL.h usability... yes checking SDL/SDL.h presence... yes checking for SDL/SDL.h... yes checking for SDL_Init in -lSDL... no configure: error: Could not find libsdl headers and library. This is mandatory for video support
configure: error: ./configure failed for mediastreamer2 error: Bad exit status from /export/ltib-imx27ads-20071219/tmp/rpm-tmp.93410 (%build) </snip>
Here is my linphone.spec
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : Linphone
Name : linphone Version : 1.6.0 Release : z License : GPL Vendor : Freescale Packager : xxxx Group : xxxx
Source : %-%{version}.tar.gz Patch1 : %-%{version}-H264-bw-080208.patch BuildRoot : %{_tmppath}/%
Prefix : %
%Description %{summary}
%Prep %setup %patch1 -p1
%Build export HOST=arm-926ejs-linux export LIN_PFX=/opt/lin export LIN_INST=$RPM_BUILD_ROOT/% export CROSS_COMPILE=$TOOLCHAIN_PATH/bin/$TOOLCHAIN_PREFIX
export PKG_CONFIG=/usr/bin/pkg-config
test ! -e $LIN_PFX || sudo rm $LIN_PFX sudo ln -sf $DEV_IMAGE/$LIN_PFX $LIN_PFX test -e $DEV_IMAGE/$LIN_PFX/lib/libasound.so.2 || sudo ln -sf $DEV_IMAGE/usr/lib/libasound.so.2 $DEV_IMAGE/$LIN_PFX/lib/libasound.so.2
./configure --prefix=$LIN_PFX --host=$CFGHOST --enable-gnu-ld --disable-static --disable-glib SDL_LDFLAGS="-I$DEV_IMAGE/opt/lin/include" SDL_LIBS="-L$DEV_IMAGE/usr/lib -lSDL-1.2 -lavutil" --with-sdl=$DEV_IMAGE/usr --disable-strict --disable-manual --with-osip=$DEV_IMAGE/usr --with-readline=$DEV_IMAGE/%{_prefix} SPEEX_CFLAGS="-I$DEV_IMAGE/$LIN_PFX/include" SPEEX_LIBS="-L$DEV_IMAGE/usr/lib -lspeex -L$DEV_IMAGE/usr/lib -lSDL" --enable-gnome_ui=no --enable-alsa --with-alsa=$DEV_IMAGE/usr/lib --enable-video FFMPEG_CFLAGS="-I$DEV_IMAGE/opt/lin/include" FFMPEG_LIBS="-L$DEV_IMAGE/opt/lin/lib -lavcodec -lavutil"
make
%Install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT/%
%Clean rm -rf $RPM_BUILD_ROOT
%Files %defattr(-,root,root) %/*
Could you please Help me get started on this one?? I am running Suse 10.3 and LTIB:
[ltib-imx27ads-20071219]$./ltib --version ltib 7.2.1 ($Revision: 1.299 $)
Copyright (C) 2004-2006 Freescale Semiconductor, Inc. This is free software; it is licensed under the terms of the GNU General Public License, see 'COPYING' for the license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [ltib-imx27ads-20071219]$
Appreciate a quicker response.
Thanks, Jay
|