How to compile DOCA reference application on BlueField DPU

Hello, @Abirman @Levei_Luo! I am configuring and trying DOCA reference application on a host with one BlueField-3 DPU card. I have install DOCA on both host side and DPU side following the instruction (https://developer.nvidia.com/doca-downloads?deployment_platform=BlueField&deployment_package=BF-Bundle&Distribution=Ubuntu&version=22.04&installer_type=BFB).

One question I have is that I can compile the DOCA reference applications on the host side using:

cd /opt/mellanox/doca/samples/doca_compress/<sample_name>
meson /tmp/build
ninja -C /tmp/build

But we do not have meson, ninja and libjson-c-dev on BlueField DPU, simply installing them meets the error:

ubuntu@localhost:/opt/mellanox/doca/applications$ sudo apt install meson
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package meson

and:

ubuntu@localhost:/opt/mellanox/doca/applications$ sudo apt install libjson-c-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libjson-c-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libjson-c-dev' has no installation candidate

Could you help with recommending a way of installing dependencies on BlueField DPU and compiling the reference application on the DPU side. Thanks a lot!

Hi huzhiyi1037,

It’s OK for me to use apt to install dependencies on BlueField DPU. Please check the following:

  • Ensure the DPU network is properly configured to connect to the external network.

  • Verify the DNS configuration.

  • Check whether the necessary software repositories are available, especially the universe repository.

Thanks a lot! Problem solved.