How to compile AzureSphere samples in Linux command line

Gergo Santha 0 Reputation points
2023-09-04T08:54:01.57+00:00

Hi!

I'd like to build my AzureSphere images automated using Python scripts on Linux. Unfortunately, I could not find a way how to do it. Any help would be great! Thank you!

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Devine 165 Reputation points Microsoft Employee
    2023-09-07T17:02:52.9933333+00:00

    Is Ninja installed and available in your path? If so, you'll need to add -G Ninja as an argument to cmake.

    Alternately, you can make use of the CMake presets (CMakePresets.json) that are part of each Azure Sphere project. This is described in the documentation here: https://learn.microsoft.com/en-us/azure-sphere/app-development/build-hl-app?view=azure-sphere-legacy&tabs=windows%2Ccliv2beta&pivots=cli#build-the-application

    For future reference, the pivot tabs at the top of the page allow you to swap between different environments. Note that the CLI "pivot" is selected in the image below.

    User's image

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.