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
+
- The targets that the libraries will be compiled for. To save time, you can compile the libraries only for the target you are using;
237
+
- Whether the compiled libraries will be copied to the ``arduino-esp32`` directory after compilation so that they can be used in the Arduino IDE;
238
+
- The path to the ``arduino-esp32`` directory. This will be automatically set if the ``arduino-esp32`` repository is in one of the default locations;
239
+
If not, you can set it manually here. If using the docker image, it should not be changed as the mount point is fixed;
240
+
- The branch of the ``arduino-esp32`` repository to be used. This is useful if you want to compile the libraries for a
241
+
specific branch or pull request of the ``arduino-esp32`` repository. Leave empty to use the default branch for this ``ESP-IDF`` version;
242
+
- 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.
243
+
Leave empty to use the default branch for this IDF version;
244
+
- 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.
245
+
Leave empty to use the latest commit;
246
+
- The debug level to be set in ``ESP-IDF``.
247
+
207
248
Docker Image
208
249
------------
209
250
@@ -224,8 +265,9 @@ Tags
224
265
225
266
Multiple tags of this image are maintained:
226
267
227
-
- ``latest``: tracks ``master`` branch of the Lib Builder
228
-
- ``release-vX.Y``: tracks ``release/vX.Y`` branch of the Lib Builder
268
+
- ``latest``: tracks ``master`` branch of the Lib Builder. Note that the ``latest`` tag is not recommended for use as, depending on the
269
+
development stage of the Lib Builder, it might not be stable or might not contain the latest changes;
270
+
- ``release-vX.Y``: tracks ``release/vX.Y`` branch of the Lib Builder.
229
271
230
272
.. note::
231
273
Versions of Lib Builder released before this feature was introduced do not have corresponding Docker image versions.
@@ -234,7 +276,7 @@ Multiple tags of this image are maintained:
234
276
Usage
235
277
*****
236
278
237
-
Before using the ``espressif/esp32-arduino-lib-builder`` Docker image locally, make sure you have Docker installed.
279
+
Before using the ``espressif/esp32-arduino-lib-builder`` Docker image locally, make sure you have Docker installed and running on your machine.
238
280
Follow the instructions at https://docs.docker.com/install/, if it is not installed yet.
239
281
240
282
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 +290,7 @@ To run the Docker image manually, use the following command from the root of the
248
290
249
291
.. code-block:: bash
250
292
251
-
docker run --rm -it -v $PWD:/arduino-esp32 -e TERM=xterm-256color espressif/esp32-arduino-lib-builder
293
+
docker run --rm -it -v $PWD:/arduino-esp32 -e TERM=xterm-256color espressif/esp32-arduino-lib-builder:release-v5.1
252
294
253
295
This will start the Lib Builder UI for compiling the libraries. The above command explained:
254
296
@@ -258,7 +300,8 @@ This will start the Lib Builder UI for compiling the libraries. The above comman
258
300
- ``-t`` Allocate a pseudo-TTY;
259
301
- ``-e TERM=xterm-256color``: Optional. Sets the terminal type to ``xterm-256color`` to display colors correctly;
260
302
- ``-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.
303
+
- ``espressif/esp32-arduino-lib-builder:release-v5.1``: uses Docker image ``espressif/esp32-arduino-lib-builder`` with tag ``release-v5.1``.
304
+
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
305
263
306
.. warning::
264
307
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 +321,32 @@ For example, to run a terminal inside the container, you can run:
278
321
279
322
.. code-block:: bash
280
323
281
-
docker run -it espressif/esp32-arduino-lib-builder:latest /bin/bash
324
+
docker run -it espressif/esp32-arduino-lib-builder:release-v5.1 /bin/bash
282
325
283
326
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:
327
+
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