R: Pjsip Recipe for Yocto

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

 



Hi Kumar,

Thanks for the support. I have been used your recipe and bitbake is working fine, but when I run bitbake of Yocto Image that includes pjsiproject (thus pjsip recipe), in the target filesystem there aren't PJSIP libraries. Should I copy some directories in do_install task? Thanks in advice

 

Best Regards

Ll

 

Da: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] Per conto di Praveen Kumar
Inviato: Thursday, March 23, 201
7 12:51
A: pjsip list <pjsip@xxxxxxxxxxxxxxx>
Oggetto: Re: Pjsip Recipe for Yocto

 

Hi Lele,

 

You can use the following recipe as a reference & give it a shot. Please note that I'm manually downloading the PJSIP code (rather than bitbake recipe fetch it) & placing it source code. 

 

Also, I'm installing all the PJSIP libs & includes in my source directory itself using 'prefix' while configuring. You can customize as per you need.

 

 

DESCRIPTION = "PJ Project"

SECTION = "app"

LICENSE = ""

PR = ""

 

DEPENDS = "alsa-lib openssl"

 

inherit autotools pkgconfig

 

do_configure_prepend () {

    export LD="${CXX}"

}

 

do_configure() {

    cd ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/pjproject-lib

    ./aconfigure --host=arm-poky-linux-gnueabi --disable-libwebrtc --target=arm-poky-linux-gnueabi --prefix=${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib

}

 

do_compile_prepend() {

    cd ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/pjproject-lib

    oe_runmake dep 

    oe_runmake

}

 

do_install() {

    cd ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/pjproject-lib

    oe_runmake install

}

 

do_pre_clean() {

     cd ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/pjproject-lib

    oe_runmake clean

    rm -rf ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/include

    rm -rf ${TOPDIR}/../sources/meta-eliuaccs/recipes-app/pjproject-lib/lib

}

 

addtask do_pre_clean after do_clean


--
Praveen Kumar
VVDN Technologies Pvt Ltd

Mobile: +91 987 162 3666 | Skype: praveenkumar_vvdn

 

 

On Thu, Mar 23, 2017 at 5:06 PM, Lele <86eldnl@xxxxxxxxx> wrote:

Hi guys,

I’m trying to build and install Pjsip library on ARM target with Yocto.

I have wrote the following recipe but it’s not working properly. Yocto Image has been compiled successfully but in the destination Target there aren’t pjsip libraries (probably there is some misconfiguration on do_install task):

 

===================================================================================================

 

DESCRIPTION = “”

SECTION = ””

HOMEPAGE = HTTP://www.pjsip.org/

LICENSE = ””

 

DEPENDS = “alsa-lib libv4l openssll util-linux”

 

PARALLEL_MAKE = “”

 

SRC_URI = “ file://...”

 

S = “${WORKDIR}/pjproject-2.5.5”

 

Inherit autotools-brokensep pkgconfig pythonnative

 

do_configure_prepend() {

                export LD= ”${CC}”

                echo “export CFLAGS += -Fpic” > user.mak

                echo “export LDFLAGS += -fuse-ld=bfd” > user.mak

}

 

do_compile_prepend() {

                make dep

}

 

do_compile_append() {

                make

}

 

do_install_prepend() {}

do_install_append() {

                # remove the absolute path to the host’s include dir

                sed -i ‘s:\-I/usr/include::’ ${D}/usr/lib/pkgconfig/libpjproject.pc

                # remove the fdebug-prefix-map options

                Sed -I ‘s:\-fdebug-prefix-map[a-Za-Z0-9\._\/=\-]*::g’ ${D}/usr/lib/pkgconfig/libpjproject.pc

}

 

ALLOW_EMPTY_${PN} = “1”

 

===================================================================================================

 

How can I write a recipe for a Pjsip libraries? Thanks in advice

 

Best Regards

Ll

 

 

 


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

 

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
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