Skip to contentSkip to conversation

Unable to extract tar file #dunfell #yocto

DISCUSSION Vijay Rakesh Munganda 4 participants 15 messages Jan 7, 2021 – Jan 11, 2021

lore
Share & tools
lore
#0 lore raw

Hi All,

I'm trying to install the Tokbox library into the build, but the tar file is not getting extracted into the folder. Here is my recipe code, kindly please help me where I went wrong. *Recipe:*

Quoted 9 lines

DESCRIPTION = "libopentok for arm64"
HOMEPAGE = "https://tokbox.com"

SRC_URI = "https://s3.amazonaws.com/artifact.tokbox.com/rel/opentok-linux-sdk/libopentok_linux_llvm_arm64-2.18.1.tgz"

Quoted 7 lines

SRC_URI[sha256sum] = "7ae2b85940a4e16299a4ec5f4341b6b92c71abdb5ef6949508873bd8a2f53abc"

S= "${WORKDIR}/tokbox"

inherit cmake

*Error:*

Quoted 4 lines

CMake Error: The source directory "/home/test/target/bsp/tmp/work/aarch64-poky-linux/tokbox/1.0-r0/tokbox" does not appear to contain CMakeLists.txt.

Thanks & Regards,
Vijay Rakesh

#3 lore raw

Hi Zoran,

Thanks for the reply. The reason behind CMakeLists.txt does not appear is because tgz file is getting extracted into the source folder, it is empty when I checked. My recipe is unable to extract the tgz file which is download in the downloads directory. Do I need to write something specifically for extracting tgz file in the recipe?

Thanks,
Vijay Rakesh.

#4 lore raw
Quoted 4 lines · Vijay Rakesh Munganda

Hi Zoran,

Thanks for the reply. The reason behind CMakeLists.txt does not appear is because tgz file is getting extracted into the source folder, it is empty when I checked. My recipe is unable to extract the tgz file which is download in the downloads directory. Do I need to write something specifically for extracting tgz file in the recipe?

Does the .tgz file get placed in ${WORKDIR} without being extracted?

Also, which Yocto Project version/branch are you using?

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group
#5 lore raw

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

I'm Yocto Project Dunfell version.

Thanks,
Vijay Rakesh.

#6 lore raw

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Cheers,
Quentin

#7 lore raw
Quoted 10 lines · Quentin Schulz

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

Quoted 6 lines

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Cheers,
Quentin

By changing to S = "${WORKDIR}/libopentok_linux_llvm_arm64" error got eliminated, thank you.

Now, how can I install the file under opentok_linux_llvm_arm64/lib/libopentok.so into the rootfs?

I tried the below code but got an error as *install: cannot stat 'lib/libopentok.so': No such file or directory*.

Quoted 6 lines

do_install() {
install -d ${D}${libdir}
install -m 0755 lib/libopentok.so ${D}${libdir}
}

Thanks,
Vijay Rakesh.

#8 lore raw
Quoted 16 lines · Vijay Rakesh Munganda
Quoted 14 lines · Quentin Schulz

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Quoted 9 lines
Quoted 2 lines

Cheers,
Quentin

By changing to S = "${WORKDIR}/libopentok_linux_llvm_arm64" error got eliminated, thank you.

Now, how can I install the file under opentok_linux_llvm_arm64/lib/libopentok.so into the rootfs?

I tried the below code but got an error as *install: cannot stat 'lib/libopentok.so': No such file or directory*.

If you go into ${WORKDIR} of your recipe (tmp/work/<arch>/<recipe name>), what is the path to libopentok.*.so?

Quentin

#9 lore raw
Quoted 30 lines · Quentin Schulz
Quoted 27 lines · Vijay Rakesh Munganda
Quoted 11 lines · Quentin Schulz

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

Quoted 6 lines

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Cheers,
Quentin

By changing to S = "${WORKDIR}/libopentok_linux_llvm_arm64" error got eliminated, thank you.

Now, how can I install the file under opentok_linux_llvm_arm64/lib/libopentok.so into the rootfs?

Quoted 7 lines
Quoted 2 lines

I tried the below code but got an error as *install: cannot stat 'lib/libopentok.so': No such file or directory*.

If you go into ${WORKDIR} of your recipe (tmp/work/<arch>/<recipe name>), what is the path to libopentok.*.so?

Quentin

This is the path to libopentok.so tmp/work/aarch64-poky-linux/tokbox/1.0-r0/libopentok_linux_llvm_arm64/lib/

Thanks,
Vijay Rakesh.

#10 lore raw
Quoted 32 lines · Vijay Rakesh Munganda
Quoted 30 lines · Quentin Schulz
Quoted 27 lines · Vijay Rakesh Munganda
Quoted 11 lines · Quentin Schulz

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

Quoted 6 lines

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Cheers,
Quentin

By changing to S = "${WORKDIR}/libopentok_linux_llvm_arm64" error got eliminated, thank you.

Now, how can I install the file under opentok_linux_llvm_arm64/lib/libopentok.so into the rootfs?

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

I tried the below code but got an error as *install: cannot stat 'lib/libopentok.so': No such file or directory*.

If you go into ${WORKDIR} of your recipe (tmp/work/<arch>/<recipe name>), what is the path to libopentok.*.so?

Do you have B set up somewhere in your recipe? Otherwise try ${S}/lib/libopentok.so for the source path.

Quentin

#11 lore raw
Quoted 47 lines · Quentin Schulz
Quoted 33 lines · Vijay Rakesh Munganda
Quoted 30 lines · Quentin Schulz
Quoted 26 lines · Vijay Rakesh Munganda
Quoted 12 lines · Quentin Schulz

Hi,

Quoted 4 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

Quoted 6 lines

S = "${WORKDIR}/libopentok_linux_llvm_arm64"

This is the root directory of your archive and should be used for S

Cheers,
Quentin

By changing to S = "${WORKDIR}/libopentok_linux_llvm_arm64" error got eliminated, thank you.

Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

Now, how can I install the file under opentok_linux_llvm_arm64/lib/libopentok.so into the rootfs?

I tried the below code but got an error as *install: cannot stat 'lib/libopentok.so': No such file or directory*.

If you go into ${WORKDIR} of your recipe (tmp/work/<arch>/<recipe name>), what is the path to libopentok.*.so?

Quoted 4 lines

Do you have B set up somewhere in your recipe? Otherwise try ${S}/lib/libopentok.so for the source path.

Quentin

Thank you! it worked.

Thanks,
Vijay Rakesh.

#12 lore raw

Hi Quentin,

Thank you for the earlier help. After that, I got a QA Issue and I was trying to solve it, but I'm unable to do it. Any suggestions would be helpful.

Package contains non-symlink .so: tokbox-dev path '/work/aarch64-poky-linux/tokbox/1.0-r0/packages-split/tokbox-dev/usr/lib/libopentok.so' [dev-elf]
ERROR: tokbox-1.0-r0 do_package_qa: QA Issue: /usr/lib/libopentok.so contained in package tokbox-dev requires libc++.so.1()(64bit), but no providers found in RDEPENDS_tokbox-dev? [file-rdeps]

Thanks & Regards,
Vijay Rakesh.

#13 lore raw
In reply to Vijay Rakesh Munganda
Quoted 6 lines · Vijay Rakesh Munganda

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

I'm Yocto Project Dunfell version.

What I mean is, do you see the file "libopentok_linux_llvm_arm64-2.18.1.tgz" itself under ${WORKDIR}? i.e. has it been copied instead of extracted?

Also, please quote the email you're replying to for the benefit of others on the mailing list. Replying inline like this is preferred.

Thanks,

Signature · 2 lines
Paul Barker
Konsulko Group
#14 lore raw
Quoted 13 lines · Paul Barker
Quoted 8 lines

Hi Paul Barker,

No, ${WORKDIR}/tokbox directory is empty, it is not getting placed. I can only see it in the downloads directory.

I'm Yocto Project Dunfell version.

What I mean is, do you see the file "libopentok_linux_llvm_arm64-2.18.1.tgz" itself under ${WORKDIR}? i.e. has it been copied instead of extracted?

Quoted 8 lines

Also, please quote the email you're replying to for the benefit of others on the mailing list. Replying inline like this is preferred.

Thanks,

--
Paul Barker
Konsulko Group

I figured out URL is hyperlinked with another URL. When I use a hyperlinked URL it is getting copied and extracted into the working directory. Thanks.

Thanks,
Vijay Rakesh.