Getting Started with Ndless SDK Development
...

This is a note about my experience with Ndless development. My system environment is

  • Microsoft Windows 11 (Version 10.0.22621)
  • Windows Subsystem for Linux (Ubuntu 22.04)

Preparation

To begin developing for Ndless, you’ll need to install a set of dependencies. You can simplify th installation process by running the following command, which combines all the required packages into a single line:

sudo apt-get install g++ git libbinutils libgmp-dev libmpfr-dev libmpc-dev zlib1g-dev libboost-program-options-dev wget python-dev python2.7 texinfo gcc-arm-none-eabi

The package names for these software packages may vary on different Linux distributions. Please consult your Linux distribution’s software repository directory for reference.If your distribution does not provide pre-built packages, please use source code compilation. Perhaps using MSYS2 for development would have been better, but I was not aware of it at the time.

Downloading and Compiling Ndless SDK

Begin by downloading the Ndless SDK from the official repository. You can use the following command to clone the repository to your local machine and build a complete ARM toolchain compatible with Ndless.

git clone --recursive https://github.com/ndless-nspire/ndless.git
cd ndless-sdk/toolchain/
./build_toolchain.sh

At the end of a successful build you should see ‘Done!’ then add the following folders to your PATH environment variable.

export PATH="$(readlink -f .)/install/bin:$(readlink -f ../../)/ndless-sdk/bin:${PATH}"

Last modified on 2023-09-03