Skip to contentSkip to conversation

Cannot add libsrtp to yocto image

DISCUSSION Mostafa Farzane 3 participants 7 messages Apr 7, 2018 – Apr 9, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,I need to add libsrtp to my yocto image. So I added libsrtp to "IMAGE_INSTALL". But I faced the following errors:
Unknown package 'libsrtp'.
Collected errors: * opkg_solver_install: Cannot install package libsrtp.

#2 lore raw

Hi,

Did you add meta-multimedia to BBLAYERS as explained here
https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#enabling-your-layer

BR,
Vincent

2018-04-07 8:46 GMT+02:00 Mostafa Farzane <[email protected]>:

Quoted 17 lines

Hi,
I need to add libsrtp to my yocto image. So I added libsrtp to "IMAGE_INSTALL". But I faced the following errors:

Unknown package 'libsrtp'.

Collected errors:
* opkg_solver_install: Cannot install package libsrtp.

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw

Yes, I added "${TOPDIR}/../layers/meta-openembedded/meta-multimedia \" to BBLAYERS

    On Saturday, April 7, 2018, 7:48:23 PM GMT+4:30, Vincent Prince <[email protected]> wrote:  

Hi,
Did you add meta-multimedia to BBLAYERS as explained herehttps://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#enabling-your-layer BR,Vincent
2018-04-07 8:46 GMT+02:00 Mostafa Farzane <[email protected]>:

Hi,I need to add libsrtp to my yocto image. So I added libsrtp to "IMAGE_INSTALL". But I faced the following errors:
Unknown package 'libsrtp'.
Collected errors: * opkg_solver_install: Cannot install package libsrtp.

--
______________________________ _________________
yocto mailing list
[email protected]
https://lists.yoctoproject. org/listinfo/yocto

#4 lore raw
In reply to Mostafa Farzane
Quoted 8 lines · Mostafa Farzane

Hi,
I need to add libsrtp to my yocto image. So I added libsrtp to "IMAGE_INSTALL". But I faced the following errors:

Unknown package 'libsrtp'.

Collected errors:
 * opkg_solver_install: Cannot install package libsrtp.

That is because there's no package named libsrtp. Please see:

https://wiki.yoctoproject.org/wiki/Technical_FAQ#I.27ve_included_a_package_in_my_image_but_files_I_expect_to_be_there_are_missing.2C_what.27s_the_issue.3F

$ oe-pkgdata-util list-pkg-files -p libsrtp
libsrtp-dbg:
libsrtp-dev:
        /usr/include/srtp/aes.h
        /usr/include/srtp/aes_cbc.h
        /usr/include/srtp/aes_gcm_ossl.h
        /usr/include/srtp/aes_icm.h
        /usr/include/srtp/aes_icm_ossl.h
        /usr/include/srtp/alloc.h
        /usr/include/srtp/auth.h
        /usr/include/srtp/cipher.h
        /usr/include/srtp/config.h
        /usr/include/srtp/crypto.h
        /usr/include/srtp/crypto_kernel.h
        /usr/include/srtp/crypto_math.h
        /usr/include/srtp/crypto_types.h
        /usr/include/srtp/cryptoalg.h
        /usr/include/srtp/datatypes.h
        /usr/include/srtp/ekt.h
        /usr/include/srtp/err.h
        /usr/include/srtp/getopt_s.h
        /usr/include/srtp/gf2_8.h
        /usr/include/srtp/hmac.h
        /usr/include/srtp/integers.h
        /usr/include/srtp/kernel_compat.h
        /usr/include/srtp/key.h
        /usr/include/srtp/null_auth.h
        /usr/include/srtp/null_cipher.h
        /usr/include/srtp/prng.h
        /usr/include/srtp/rand_source.h
        /usr/include/srtp/rdb.h
        /usr/include/srtp/rdbx.h
        /usr/include/srtp/rtp.h
        /usr/include/srtp/rtp_priv.h
        /usr/include/srtp/sha1.h
        /usr/include/srtp/srtp.h
        /usr/include/srtp/srtp_priv.h
        /usr/include/srtp/stat.h
        /usr/include/srtp/ut_sim.h
        /usr/include/srtp/xfm.h
libsrtp-staticdev:
        /usr/lib64/libsrtp.a
#5 lore raw

Thanks alot,
I added TOOLCHAIN_TARGET_TASK = "libsrtp-staticdev" to my image instead of libsrtp. But I get:
 * calculate_dependencies_for: Cannot satisfy the following dependencies for libsrtp-staticdev: *      libsrtp (= 1.5.2-r0) * * opkg_solver_install: Cannot install package libsrtp-staticdev.

    On Sunday, April 8, 2018, 2:33:26 PM GMT+4:30, Anuj Mittal <[email protected]> wrote:  
Quoted 8 lines · Mostafa Farzane

Hi,
I need to add libsrtp to my yocto image. So I added libsrtp to "IMAGE_INSTALL". But I faced the following errors:

Unknown package 'libsrtp'.

Collected errors:
 * opkg_solver_install: Cannot install package libsrtp.

That is because there's no package named libsrtp. Please see:

https://wiki.yoctoproject.org/wiki/Technical_FAQ#I.27ve_included_a_package_in_my_image_but_files_I_expect_to_be_there_are_missing.2C_what.27s_the_issue.3F

$ oe-pkgdata-util list-pkg-files -p libsrtp
libsrtp-dbg:
libsrtp-dev:
        /usr/include/srtp/aes.h
        /usr/include/srtp/aes_cbc.h
        /usr/include/srtp/aes_gcm_ossl.h
        /usr/include/srtp/aes_icm.h
        /usr/include/srtp/aes_icm_ossl.h
        /usr/include/srtp/alloc.h
        /usr/include/srtp/auth.h
        /usr/include/srtp/cipher.h
        /usr/include/srtp/config.h
        /usr/include/srtp/crypto.h
        /usr/include/srtp/crypto_kernel.h
        /usr/include/srtp/crypto_math.h
        /usr/include/srtp/crypto_types.h
        /usr/include/srtp/cryptoalg.h
        /usr/include/srtp/datatypes.h
        /usr/include/srtp/ekt.h
        /usr/include/srtp/err.h
        /usr/include/srtp/getopt_s.h
        /usr/include/srtp/gf2_8.h
        /usr/include/srtp/hmac.h
        /usr/include/srtp/integers.h
        /usr/include/srtp/kernel_compat.h
        /usr/include/srtp/key.h
        /usr/include/srtp/null_auth.h
        /usr/include/srtp/null_cipher.h
        /usr/include/srtp/prng.h
        /usr/include/srtp/rand_source.h
        /usr/include/srtp/rdb.h
        /usr/include/srtp/rdbx.h
        /usr/include/srtp/rtp.h
        /usr/include/srtp/rtp_priv.h
        /usr/include/srtp/sha1.h
        /usr/include/srtp/srtp.h
        /usr/include/srtp/srtp_priv.h
        /usr/include/srtp/stat.h
        /usr/include/srtp/ut_sim.h
        /usr/include/srtp/xfm.h
libsrtp-staticdev:
        /usr/lib64/libsrtp.a
#6 lore raw
Quoted 11 lines · Mostafa Farzane

Thanks alot,

I added TOOLCHAIN_TARGET_TASK = "libsrtp-staticdev" to my image instead of libsrtp. But I get:

 * calculate_dependencies_for: Cannot satisfy the following dependencies for libsrtp-staticdev:
 *      libsrtp (= 1.5.2-r0) *
 * opkg_solver_install: Cannot install package libsrtp-staticdev.

Please try adding ALLOW_EMPTY_${PN} = "1" in your bbappend or try:

https://patchwork.openembedded.org/patch/150000/

#7 lore raw

Thanks alot. It's work now.I have another question and It will be a huge help if you answer it:I add libsrtp to another recepie's DEPENDS(jrtplib). but I faced the following error:
    --ERROR: jrtplib-3.11.1-r0 do_populate_sysroot: QA Issue: jrtplib.pc failed sanity test (tmpdir) in path /opt/yocto/toradex-morty/build-intercom/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/jrtplib/3.11.1-r0/sysroot-destdir/usr/lib/pkgconfig [pkgconfig]

I checked jrtplib.pc and it is the result:

    Name: Jrtplib    Description: A full featured RTP library    Requires:    Version: 3.11.1    Libs:  -L/usr/lib -ljrtp -L/usr/lib -ljthread -lpthread /opt/yocto/toradex-morty/build-intercom/tmp-glibc/sysroots/colibri-imx6/usr/lib/libsrtp.a    Cflags:  -I/usr/include -I/opt/yocto/toradex-morty/build-intercom/tmp-glibc/sysroots/colibri-imx6/usr/include I think something is wrong in libsrtp paths.
Thanks

    On Monday, April 9, 2018, 7:08:23 AM GMT+4:30, Anuj Mittal <[email protected]> wrote:  
Quoted 11 lines · Mostafa Farzane

Thanks alot,

I added TOOLCHAIN_TARGET_TASK = "libsrtp-staticdev" to my image instead of libsrtp. But I get:

 * calculate_dependencies_for: Cannot satisfy the following dependencies for libsrtp-staticdev:
 *      libsrtp (= 1.5.2-r0) *
 * opkg_solver_install: Cannot install package libsrtp-staticdev.

Please try adding ALLOW_EMPTY_${PN} = "1" in your bbappend or try:

https://patchwork.openembedded.org/patch/150000/