siprtp binary size

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

 



On Sat, May 3, 2008 at 1:49 PM, Sam Crawford <sam at samknows.com> wrote:
> Hello,
>
> I'm a newbie to PJSIP I'm afriad, but the testing I've done suggest that
> siprtp (one of the sample apps) will suit my purposes perfectly. I've
> successfully packaged the application for FreeWRT (a WRT-based OS running
> under MIPS with a 2.4 kernel).
>
> However, the binary is nearly 600KB. Similarly, on my x86_64 machine here
> the binary is around 500KB. Is there any way I might go about reducing this
> size? I've searched the mailing list archives and the web in general, but
> have found nothing on the subject.

Hi Sam,

Have you looked at http://trac.pjsip.org/repos/wiki/FAQ#Footprint?
Some new features have not been explained there, so you might want to
add these too in your config_site.h:

 #define PJMEDIA_HAS_SRTP 0
 #define PJMEDIA_HAS_G722_CODEC 0
 #define PJMEDIA_HAS_RTCP_XR 0

I would expect the size would go down below 200KB, but I would love to
hear your result.

Cheers
 Benny


> The relevant compilation lines for MIPS are as follows:
>
> mipsel-linux-gcc -c -DPJ_AUTOCONF=1 -Os -fno-ident -fwrapv -fhonour-copts
> -I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib/include
> -I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib-util/include
> -I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjnath/include
> -I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjmedia/include
> -I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjsip/include
> -Os -fno-ident -fwrapv -fhonour-copts \
>            -o output/samples-mipsel-unknown-linux-gnu/siprtp.o \
>           ../src/samples/siprtp.c
>
> mipsel-linux-gcc -o ../bin/samples/siprtp-mipsel-unknown-linux-gnu \
>             output/samples-mipsel-unknown-linux-gnu/siprtp.o \
>
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib/lib
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib-util/lib
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjnath/lib
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjmedia/lib
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjsip/lib
> -L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/third_party/lib
> -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
> -Wl,/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
> -L/home/sam/linksys/adk/freewrt/cross_mipsel/target/lib
> -L/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
> -lpjsua-mipsel-unknown-linux-gnu -lpjsip-ua-mipsel-unknown-linux-gnu
> -lpjsip-simple-mipsel-unknown-linux-gnu -lpjsip-mipsel-unknown-linux-gnu
> -lpjmedia-codec-mipsel-unknown-linux-gnu -lpjmedia-mipsel-unknown-linux-gnu
> -lpjnath-mipsel-unknown-linux-gnu -lpjlib-util-mipsel-unknown-linux-gnu
> -lresample-mipsel-unknown-linux-gnu -lmilenage-mipsel-unknown-linux-gnu
> -lgsmcodec-mipsel-unknown-linux-gnu -lspeex-mipsel-unknown-linux-gnu
> -lilbccodec-mipsel-unknown-linux-gnu -lpj-mipsel-unknown-linux-gnu -lm -lnsl
> -lrt -lpthread  -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
> -Wl,/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
> -L/home/sam/linksys/adk/freewrt/cross_mipsel/target/lib
> -L/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
>
>
> Any help or advice would be greatly appreciated.
>
> Thanks,
>
> Sam
>
> _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
>  http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux