CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:424 (add_library): No SOURCES given to target: app

Hi Team,
NCS v2.4.0

I want to try TARGET example samples/bluetooth/mesh/mesh_dfu/target ,
but the example compiles with errors.

I attach the log in a file:4048.error.rar



What should I do to make the project compile successfully?

Thank you.
Parents Reply Children
  • Hi again!

    You were right to suggest those pull requests, they fix some warnings that are unrelated to this dfu mesh sample.

    The remaining issue can be fixed by copying the "common" folder here:

    C:\ncs\v2.4.0\nrf\samples\bluetooth\mesh\dfu\common\

    And placing it next to the "target" folder that you are currently trying to build.

    I assume you have used the VS Code extension to create a new application based on the dfu mesh target sample. Unfortunately the extension doesn't pick up that this particular sample has a "common" folder with necessary source files, which should ideally be copied over as well.

    So this sample will either build if you build it in it's original location, or if you copy the common folder as I suggested above.

    I'll inform our developers that we should do this automatically in the future.

    Thanks for your patience.

    Best regards,

    Raoul

  • RTT from Target example

    00> *** Booting Zephyr OS build v3.3.99-ncs1 ***
    00> Initializing...
    00> Current image version: 1.0.0+0
    00> [00:00:00.001,098] <err> bt_settings: settings_subsys_init failed (err -45)
    00> Bluetooth init failed (err -45)

  • Hi Serhii,

    It looks like you are able to compile the sample now, that's great.

    At first glance, I can't tell what would cause this error. But, can I ask you to open a new ticket for this new issue? We try to keep unrelated questions in separate threads so that DevZone is easier to search for other users.

    Please create a ticket and if you have made any changes to your prj.conf, please add that info to the case.

    Best regards,

    Raoul

Related