ERROR: Unknown option: "enable_all_applications"

when i tried to build a doca application,like this ‘root@localhost:/opt/mellanox/doca/applications# meson /tmp/build -Denable_all_applications=false -Denable_simple_fwd_vnf=true‘(pwd and cmd) and i get this

and in this dir do have ‘meson_options.txt’

my doca version is 3.0.0058.

i have no idea what’s going wrong.

Hello @1054919371,

Thank you for posting your query on our community. As an alternative, could you please try the following approach:

  1. Open the file: $ /opt/mellanox/doca/applications/meson_options.txt
  2. Set the following flags inside the file instead of on the command line. For example:
    enable_all_applications = false
    enable_simple_fwd_vnf = true
  3. Re-run the build:
    $ cd /opt/mellanox/doca/applications/
    $ meson /tmp/build
    $ ninja -C /tmp/build

This method is also referenced in the DOCA application guides ( DOCA App Shield Agent Application Guide - NVIDIA Docs ), where it is suggested to set build flags in meson_options.txt instead of the compilation command line.

Please give this a try and let us know if the build proceeds successfully.

Thanks,
Bhargavi