Failing to start application on verdin

Hi

I’m trying to add boost to a C++ CMake project. I added libboost to extrapackages and libboost-dev to devpackages. Rebuilding SDK works, and building my application is okay too, but I can’t run it on our Verdin module. I’m getting an error message like this:

Local docker exception. :: Error (530) - Docker exception: 
The command '/bin/sh -c if [ ! -z "libasound2 alsa-utils libmosquittopp libboost" ]; then apt-get -q -y update && apt-get -q -y install libasound2 alsa-utils libmosquittopp libboost && rm -rf /var/lib/apt/lists/* ; fi' returned a non-zero code: 100 
code:100 message:
The command '/bin/sh -c if [ ! -z "libasound2 alsa-utils libmosquittopp libboost" ]; then apt-get -q -y update && apt-get -q -y install libasound2 alsa-utils libmosquittopp libboost && rm -rf /var/lib/apt/lists/* ; fi' returned a non-zero code: 100 
Step 1/11 : FROM --platform=linux/arm torizon/debian:2-bullseye ---> 2471538edb28 
Step 2/11 : EXPOSE 6502 ---> Using cache ---> 91a52e9e6d6f 
Step 3/11 : ARG SSHUSERNAME=torizon ---> Using cache ---> 9d2e846d9292 
Step 4/11 : ENV DEBIAN_FRONTEND="noninteractive" ---> Using cache ---> 8342d5dd23e6 
Step 5/11 : ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/allora3-speech/bin" --...

After that, I get following error dialog:

image

I had this last dialog before and was able to fix it by restarting my developer machine, but this time it keep comming.

What can I do to fix this?

Not that I know much, but . . .

  1. Are you running on Windows 10?
    Docker pull fails · Issue #530 · MicrosoftDocs/Virtualization-Documentation · GitHub

  2. Are you actually trying to install software in a container that is running on Verdin?

I’m asking because what you have pasted in your message looks like something that belongs in a Dockerfile used to build a container that then gets pushed to a machine. Not that I’ve been at this long, but I’ve never gotten apt-get to actually do anything when running inside a container on target.

Hi @mvandenabeele !

The error that you are getting seems related to the installation of some packages that you want to use.

I did a quick search on these packages and:

  • I could not specifically find libmosquittopp
    • But I found libmosquittopp1 and libmosquittopp-dev
  • I also didn’t find libboost
    • But I found several libboost-* packages (libboost-all as well, but I really don’t think that using the all boost package is a good idea :stuck_out_tongue: )

Let me know if this helps you :slight_smile:


How I searched:

  1. Launch some Torizon ““base”” Debian containers (like debian-shell and do not forget to explicitly set the tag)
    • e.g.: docker run --rm -it torizon/debian-shell:2
  2. apt update to update the package feed
  3. apt search something to search for the package you want. Sometimes I also use grep to better filter the result (apt search something | grep sameotherthing)

Best regards,

Thanks for thinking along seasoned_geek. And thanks for helping me out again Henrique! You were on the right track. As a beginner in the world of Linux development, I have to read up on a lot and some sources on the internet are less reliable. I’ll go trough your steps to learn how to find available packages too.

Hi @mvandenabeele !

I hope that you can solve the issue.

If the previous message is good enough, please mark it as the solution.

Otherwise, let me know if I can help you further.

Best regards,