how to create zephyr application/project, to share it with other laptop/pc, and it will build without any error

Hi,

I am using the VS code on windows 10, ncs v2.1.2 and nrf52840 based board

I'm using the CAF example from zephyr and build it for my custom board (i.e., I have created the custom board files) and it's working fine.

Now I want to share this project with another laptop (i.e. whole project zip file). but it was not compiled on it means when I added the application into nRF connect. and tried the pristine build it was not compiled. 

Is there any process that if I built the application on one laptop/pc and share it with other laptop/pc so it will build without any errors.

Thanks.

Parents Reply Children
  • Hi Menan,

    Thanks for reply. 

    Actually, I want the step by step procedure for how to create the application/ project so when I share with the other person it will build without any error.

    Because when I shared the project file in zip format with the other person then the application not build i.e. it stops the building procedure immediately with the exit status 1 error. and also the path of the application while building is shown in the cmd was the erlier pc/ laptop's folder path.

    If I share the application to other pc or laptop I need to create the procedure from scratch i.e need to create the custom board then update the prj.conf , .overlay, .dts . dtsi and the cmakelist files then the application build successfully.

    So how can I avoid it please guide me.

  • Hello,

    I cant give a step by step procedure, but perhaps I can give some pointers of things to be aware of:
    Both PCs should have the same version of NCS. Changes happen between versions which might require code overhaul.
    Paths to included libraries and boards etc should be relative and not absolute. This is a simple error to overlook.

    When sharing the project, I would not share the build files. So the other party builds for the board from scratch. I have no good argumentation for this, but from my experience it seems reasonable.

    Are you using VS Code or are you using command line tools? I suspect paths might be an issue if it gives error at once. Are there any info in the build logs you can share?

    My initial thoughts, hope it helps!

    Kind regards,
    Torje

  • Hi Torje,

    Thanks for reply,

    Yes, NCS versions are same on both the systems.

    Will check for the path (i.e., relative or absolute)

    Yes, I'm using the VS Code. 

    I think you're right the paths is the issue because while building the application on the other pc it takes the earlier pc folder path.

Related