per1234 d07d83fdfe Move development documentation to a more suitable location
Previously, information about project development was stored in a file named BUILDING.md in the root of the repository.

That content is hereby moved to the file docs/development.md. This will provide the following benefits:

- Broaden the scope of the file to all information related to development rather than building only
- Store all documentation content under a single folder instead of randomly putting some in the root and others under
  docs
2022-09-15 05:53:09 -07:00

1.7 KiB

Building from the sources on Linux ARM

Building the Pro IDE on Linux armv7l (aka armhf) and aarch64 (aka arm64):

  1. Install Node.js 14.x with nvm:

    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
    

    Restart your shell then:

    nvm install 14
    nvm use 14
    

    Verify:

    node -v
    
  2. Install Yarn:

    Configure the Debian package repository; otherwise, you will pull a different yarn.

    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    

    Install:

    sudo apt update && sudo apt install --no-install-recommends yarn
    

    Verify:

    yarn -v
    1.22.4
    
  3. Other native dependencies:

    • make,
    • gcc,
    • pkg-config,
    • build-essential,
    • libx11-dev, and
    • libxkbfile-dev
  4. Build it from the source:

    git clone https://github.com/arduino/arduino-ide.git \
    && cd arduino-ide \
    && yarn \
    && yarn rebuild:electron \
    && yarn --cwd ./electron-app start
    
  5. Troubleshoot

    If you see ENOSPC errors at runtime, increase the default inotify watches:

    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p