← 返回命令列表

Linux command

arduino-builder 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Compile

arduino-builder -hardware [/usr/share/arduino/hardware] -tools [/usr/share/arduino/tools-builder] -libraries [/usr/share/arduino/libraries] -fqbn [arduino:avr:uno] [sketch.ino]

Example

arduino-builder -verbose -fqbn [arduino:avr:uno] [sketch.ino]

说明

arduino-builder is the command-line tool that compiles Arduino sketches. It was the build system used by Arduino IDE and can be invoked separately for automated builds. The tool handles preprocessing, compilation, and linking of Arduino sketches with required libraries and core files.

参数

-hardware _path_
Hardware definitions directory
-tools _path_
Tools (compilers, uploaders) directory
-libraries _path_
Libraries directory
-fqbn _board_
Fully qualified board name
-build-path _dir_
Build output directory
-verbose
Verbose output
-warnings _level_
Warning level (none, default, more, all)
-prefs _key=value_
Build preferences

FAQ

What is the arduino-builder command used for?

arduino-builder is the command-line tool that compiles Arduino sketches. It was the build system used by Arduino IDE and can be invoked separately for automated builds. The tool handles preprocessing, compilation, and linking of Arduino sketches with required libraries and core files.

How do I run a basic arduino-builder example?

Run `arduino-builder -hardware [/usr/share/arduino/hardware] -tools [/usr/share/arduino/tools-builder] -libraries [/usr/share/arduino/libraries] -fqbn [arduino:avr:uno] [sketch.ino]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -hardware _path_ do in arduino-builder?

Hardware definitions directory