Skip to content

Commit afbba5f

Browse files
aescolarcarlescufi
authored andcommitted
boards native_sim docs: Clarify which SDL version is needed
One needs the 32bit version of the SDL development library when building for 32bit native_sim, and for the 64bit native_sim the 64bit version. Let's clarify this. Also fix the SDL2 link. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 571e601 commit afbba5f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

boards/native/native_sim/doc/index.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,14 @@ The following peripherals are currently provided with this board:
425425
A display driver is provided that creates a window on the host machine to
426426
render display content.
427427

428-
This driver requires a 32-bit version of the `SDL2`_ library on the host
429-
machine and ``pkg-config`` settings to correctly pickup the SDL2 install path
430-
and compiler flags.
428+
When building for the default 32bit ``native_sim`` target this driver requires a 32-bit version of
429+
the `SDL2`_ development library on the host machine. For
430+
:ref:`64bit native_sim<native_sim32_64>` builds you need to have the 64bit version installed.
431+
You may also need to set ``pkg-config`` to correctly pickup the SDL2 install path.
431432

432-
On a Ubuntu 22.04 host system, for example, install the ``pkg-config`` and
433-
``libsdl2-dev:i386`` packages, and configure the pkg-config search path with
434-
these commands:
433+
On Ubuntu the package is ``libsdl2-dev`` whose 64bit version is likely installed by default.
434+
On an Ubuntu 18.04 host system, you can install the ``pkg-config`` and the 32bit
435+
``libsdl2-dev:i386`` packages, and configure the pkg-config search path with these commands:
435436

436437
.. code-block:: console
437438
@@ -441,7 +442,7 @@ The following peripherals are currently provided with this board:
441442
$ export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
442443
443444
.. _SDL2:
444-
https://www.libsdl.org/download-2.0.php
445+
https://www.libsdl.org
445446

446447
.. _nsim_per_flash_simu:
447448

0 commit comments

Comments
 (0)