Skip to content

Commit 4f297ed

Browse files
Merge pull request #3774 from raspberrypi/rpicam-apps-remind-uninstall
Enhance rpicam-apps local build instructions with advice to uninstall the pre-installed binary
2 parents 5de97e2 + a3a3069 commit 4f297ed

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

documentation/asciidoc/computers/camera/rpicam_apps_building.adoc

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Build `libcamera` and `rpicam-apps` for yourself for the following benefits:
1212

1313
* You can customise or add your own applications derived from `rpicam-apps`
1414

15+
==== Remove pre-installed `rpicam-apps`
16+
17+
Raspberry Pi OS includes a pre-installed copy of `rpicam-apps`. Before building and installing your own version of `rpicam-apps`, you must first remove the pre-installed version. Run the following command to remove the `rpicam-apps` package from your Raspberry Pi:
18+
19+
[source,console]
20+
----
21+
$ sudo apt-get remove --purge rpicam-apps
22+
----
23+
1524
==== Building `rpicam-apps` without building `libcamera`
1625

1726
To build `rpicam-apps` without first rebuilding `libcamera` and `libepoxy`, install `libcamera`, `libepoxy` and their dependencies with `apt`:
@@ -178,7 +187,24 @@ Finally, run the following command to install your freshly-built `rpicam-apps` b
178187
$ sudo meson install -C build
179188
----
180189

181-
Open a new terminal window after installation to ensure that you use the new binary.
190+
[TIP]
191+
====
192+
The command above should automatically update the `ldconfig` cache. If you have trouble accessing your new `rpicam-apps` build, run the following command to update the cache:
193+
194+
[source,console]
195+
----
196+
$ sudo ldconfig
197+
----
198+
====
199+
200+
Run the following command to check that your device uses the new binary:
201+
202+
[source,console]
203+
----
204+
$ rpicam-still --version
205+
----
206+
207+
The output should include the date and time of your local `rpicam-apps` build.
182208

183209
Finally, follow the `dtoverlay` and display driver instructions in the xref:camera_software.adoc#configuration[Configuration section].
184210

@@ -206,8 +232,6 @@ Each of the above options (except for `neon_flags`) supports the following value
206232
* `disabled`: disables the option
207233
* `auto`: enables the option if dependencies are available
208234

209-
210-
211235
==== Building `libepoxy`
212236

213237
Rebuilding `libepoxy` should not normally be necessary as this library changes only very rarely. If you do want to build it from scratch, however, please follow the instructions below.

0 commit comments

Comments
 (0)