You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that all these options can be changed in the UI itself and are only used for automation purposes.
223
+
224
+
Screens
225
+
*******
226
+
227
+
There are many screens in the UI that are used to configure the libraries to be compiled.
228
+
Note that in all screens you can also use the shortcut keys shown in the footer bar to navigate.
229
+
The UI consists of the following screens:
230
+
231
+
- **Main Menu**: The main screen shows buttons to navigate to the other screens.
232
+
- **Compile Screen**: The compile screen shows the output of the compilation process and any errors that may have occurred.
233
+
- **Sdkconfig Editor**: The sdkconfig editor screen is a simple text editor that shows you the sdkconfig files that will be used for compilation.
234
+
You can edit the files here to customize the generated libraries.
235
+
- **Settings Screen**: The settings screen allows you to change the settings of the compilation process. Here you can change:
236
+
237
+
- The targets that the libraries will be compiled for. To save time, you can compile the libraries only for the target you are using;
238
+
- Whether the compiled libraries will be copied to the ``arduino-esp32`` directory after compilation so that they can be used in the Arduino IDE;
239
+
- The path to the ``arduino-esp32`` directory. This will be automatically set if the ``arduino-esp32`` repository is in one of the default locations.
240
+
If not, you can set it manually here. If using the docker image, it should not be changed as the mount point is fixed;
241
+
- The branch of the ``arduino-esp32`` repository to be used. This is useful if you want to compile the libraries for a
242
+
specific branch or pull request of the ``arduino-esp32`` repository. Leave empty to use the default branch for this ``ESP-IDF`` version;
243
+
- The branch of the ``ESP-IDF`` repository to be used. This is useful if you want to compile the libraries for a specific branch of the ``ESP-IDF`` repository.
244
+
Leave empty to use the default branch for this IDF version;
245
+
- The commit of the ``ESP-IDF`` repository to be used. This is useful if you want to compile the libraries for a specific commit on the selected branch.
246
+
Leave empty to use the latest commit;
247
+
- The debug level to be set in ``ESP-IDF``.
248
+
207
249
Docker Image
208
250
------------
209
251
@@ -224,8 +266,9 @@ Tags
224
266
225
267
Multiple tags of this image are maintained:
226
268
227
-
- ``latest``: tracks ``master`` branch of the Lib Builder
228
-
- ``release-vX.Y``: tracks ``release/vX.Y`` branch of the Lib Builder
269
+
- ``latest``: tracks ``master`` branch of the Lib Builder. Note that the ``latest`` tag is not recommended for use as, depending on the
270
+
development stage of the Lib Builder, it might not be stable or might not contain the latest changes;
271
+
- ``release-vX.Y``: tracks ``release/vX.Y`` branch of the Lib Builder.
229
272
230
273
.. note::
231
274
Versions of Lib Builder released before this feature was introduced do not have corresponding Docker image versions.
@@ -234,7 +277,7 @@ Multiple tags of this image are maintained:
234
277
Usage
235
278
*****
236
279
237
-
Before using the ``espressif/esp32-arduino-lib-builder`` Docker image locally, make sure you have Docker installed.
280
+
Before using the ``espressif/esp32-arduino-lib-builder`` Docker image locally, make sure you have Docker installed and running on your machine.
238
281
Follow the instructions at https://docs.docker.com/install/, if it is not installed yet.
239
282
240
283
If using the image in a CI environment, consult the documentation of your CI service on how to specify the image used for the build process.
@@ -248,7 +291,7 @@ To run the Docker image manually, use the following command from the root of the
248
291
249
292
.. code-block:: bash
250
293
251
-
docker run --rm -it -v $PWD:/arduino-esp32 -e TERM=xterm-256color espressif/esp32-arduino-lib-builder
294
+
docker run --rm -it -v $PWD:/arduino-esp32 -e TERM=xterm-256color espressif/esp32-arduino-lib-builder:release-v5.1
252
295
253
296
This will start the Lib Builder UI for compiling the libraries. The above command explained:
254
297
@@ -258,7 +301,8 @@ This will start the Lib Builder UI for compiling the libraries. The above comman
258
301
- ``-t`` Allocate a pseudo-TTY;
259
302
- ``-e TERM=xterm-256color``: Optional. Sets the terminal type to ``xterm-256color`` to display colors correctly;
260
303
- ``-v $PWD:/arduino-esp32``: Optional. Mounts the current folder at ``/arduino-esp32`` inside the container. If not provided, the container will not copy the compiled libraries to the host machine;
261
-
- ``espressif/esp32-arduino-lib-builder``: uses Docker image ``espressif/esp32-arduino-lib-builder`` with tag ``latest``. The ``latest`` tag is implicitly added by Docker when no tag is specified.
304
+
- ``espressif/esp32-arduino-lib-builder:release-v5.1``: uses Docker image ``espressif/esp32-arduino-lib-builder`` with tag ``release-v5.1``.
305
+
The ``latest`` tag is implicitly added by Docker when no tag is specified. It is recommended to use a specific version tag to ensure reproducibility of the build process.
262
306
263
307
.. warning::
264
308
The ``-v`` option is used to mount a folder from the host machine to the container. Make sure the folder already exists on the host machine before running the command.
@@ -278,24 +322,32 @@ For example, to run a terminal inside the container, you can run:
278
322
279
323
.. code-block:: bash
280
324
281
-
docker run -it espressif/esp32-arduino-lib-builder:latest /bin/bash
325
+
docker run -it espressif/esp32-arduino-lib-builder:release-v5.1 /bin/bash
282
326
283
327
Running the Docker image using the provided run script will depend on the host OS.
284
-
Use the following command from the root of the ``arduino-esp32`` repository to execute the image in a Linux or macOS environment:
328
+
Use the following command from the root of the ``arduino-esp32`` repository to execute the image in a Linux or macOS environment for
0 commit comments