List Info

Thread: Linphone Compilation Error (SDL_Init not found in -lSDL)




Linphone Compilation Error (SDL_Init not found in -lSDL)
user name
2008-03-01 08:37:34
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&gt;

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
URL             : http://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=&quot;-L$DEV_IMAGE/usr/lib -lSDL-1.2 -lavutil&quot; --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&quot;

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


Re: Linphone Compilation Error (SDL_Init not found in -lSDL)
country flaguser name
Germany
2008-03-03 11:02:34
Am Samstag 01 März 2008 15:37 schrieb Jayasimha MR:
> 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>

Well, have a look at mediastreamer2/config.log
Somewhere in there you should find the results of the lib
searching.
In a working case, it should look like:

configure:23483: checking for SDL_Init in -lSDL
configure:23518: arm-none-linux-gnueabi-gcc -o 
conftest -DORTP_INET6   -Wall -O2 -g  -pthread -D_REENTRANT
-I/EW/iMX31-Kit/BSP-Phytec-phyCORE-i.MX31-trunk/local/arm-no
ne-l
inux-gnueabi/usr/include 
-L/EW/iMX31-Kit/BSP-Phytec-phyCORE-i.MX31-trunk/local/arm-no
ne-linux-gnueabi/usr/lib  
conftest.c -lSDL   -pthread -lpthread -lrt >&5
configure:23524: $? = 0
configure:23531: test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
configure:23534: $? = 0
configure:23541: test -s conftest
configure:23544: $? = 0
configure:23559: result: yes


As you provide a sdl path, which also leads to a correct
SDL.h, maybe 
there is no link libSDL.so pointing to the lib ?
Also in case of libtool, there should be a proper libSDL.la
there.


BTW, why do you base on linphone 1.6.0 ?


-- 

carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas
Pretzsch
Dipl.-Ing. (FH) Andreas Pretzsch                 Tel.
0731/98588-800
Marlene-Dietrich-Strasse 5                       Fax:
0731/98588-801
89231 Neu-Ulm                                    email:
aprcn-eng.de


_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )