linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Cross-compiling Linphone for powerpc


From: Alex Zeffertt
Subject: Re: [Linphone-developers] Cross-compiling Linphone for powerpc
Date: Mon, 21 Feb 2005 09:20:12 +0000

Amita,

Here's an extract from my own Makfile that cross-compiles for PPC.  Hope
this helps.


LINPHONE_SRC=${TOPDIR}/linphone
LINPHONE_BUILD=${LINPHONE_SRC}# for some reason won't work in seperate directory
LINPHONE_INSTALLROOT=${TOPDIR}/linphone-installroot

...


linphone-config: ${GLIBS}
        cd ${LINPHONE_SRC} && autoconf
        mkdir -p ${LINPHONE_BUILD}
        cd ${LINPHONE_BUILD} && \
        GLIB_PREFIX=${UGLIB2_SRC} \
        LDFLAGS="-L${LIBOSIP_INSTALLROOT}/lib -L${UGLIB2_SRC}/usr/lib" \
        CC=${CC} CFLAGS="-I${LIBOSIP_INSTALLROOT}/include
-I${UGLIB2_SRC}/usr/include -I${INCDIR} -I${KINCDIR}" \ CPP=${CPP}
CPPFLAGS="-I${LIBOSIP_INSTALLROOT}/include -I${UGLIB2_SRC}/usr/include
-I${INCDIR} -I${KINCDIR}" \     ${LINPHONE_SRC}/configure
--prefix=${LINPHONE_INSTALLROOT} --with-osip=${LIBOSIP_INSTALLROOT} \
--with-ortp=${ORTP_INSTALLROOT} --with-realprefix=${TARGET_INSTALLROOT}
--enable-ipv6=no \      --host=${TARGET} --build=x86    



It took me a long time to get configure to do the right thing.

Alex


On Sat, 19 Feb 2005 16:11:26 +0530
"Amita Maheshwari" <address@hidden> wrote:

> Hi,
>    I am facing some problem in compiling Linphone in console version
>    for powerpc. I run the configure command as follows . The configure
>    works fine
> 
>  ./configure --host=powerpc-linux --enable-gnome_ui=no
>  --with-osip=/home/project/ppc_sip/ --enable-shared=no
>  --enable-static=yes
> But then when I run the make command , it fails in oRTP dir.
> The error meassage is as shown 
> 
> source='rtpsend.c' object='rtpsend.o' libtool=no \
> depfile='.deps/rtpsend.Po' tmpdepfile='.deps/rtpsend.TPo' \
> depmode=gcc /bin/sh ../depcomp \
> powerpc-linux-gcc -DHAVE_CONFIG_H  -DG_LOG_DOMAIN=\"oRTP\" -I. -I.
> -I..     -I.. -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   -c `test -f 'rtpsend.c' || echo
> './'`rtpsend.c/bin/sh ../libtool --mode=link powerpc-linux-gcc  -I..
> -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -o
> rtpsend  rtpsend.o libortp.la powerpc-linux-gcc -I.. -pthread
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o rtpsend
> rtpsend.o  ./.libs/libortp.a /usr/lib/libgthread-2.0.so -lpthread
> /usr/lib/libglib-2.0.so -lm/usr/lib/libgthread-2.0.so: could not read
> symbols: Invalid operation collect2: ld returned 1 exit status
> make[4]: *** [rtpsend] Error 1
> make[4]: Leaving directory
> `/home/project/ppc_sip/linphone-0.10.2/oRTP/src' make[3]: ***
> [all-recursive] Error 1 make[3]: Leaving directory
> `/home/project/ppc_sip/linphone-0.10.2/oRTP' make[2]: *** [all] Error
> 2 make[2]: Leaving directory
> `/home/project/ppc_sip/linphone-0.10.2/oRTP' make[1]: ***
> [all-recursive] Error 1 make[1]: Leaving directory
> `/home/project/ppc_sip/linphone-0.10.2' make: *** [all] Error 2
> 
> I used an powerpc rpm for glib and placed all the libs in the powerpc
> toolchain lib directory.(/usr/local/powerpc/2.95.3/powerpc-linux/lib)
> 
> Why is it looking for glib libraries in /usr/lib path ?? What could be
> the problem
> 
> Thanks in advance
> Amita
> 
> 
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]