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
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/camera/rpicam_apps_building.adoc
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,15 @@ Build `libcamera` and `rpicam-apps` for yourself for the following benefits:
12
12
13
13
* You can customise or add your own applications derived from `rpicam-apps`
14
14
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
+
15
24
==== Building `rpicam-apps` without building `libcamera`
16
25
17
26
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
178
187
$ sudo meson install -C build
179
188
----
180
189
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.
182
208
183
209
Finally, follow the `dtoverlay` and display driver instructions in the xref:camera_software.adoc#configuration[Configuration section].
184
210
@@ -206,8 +232,6 @@ Each of the above options (except for `neon_flags`) supports the following value
206
232
* `disabled`: disables the option
207
233
* `auto`: enables the option if dependencies are available
208
234
209
-
210
-
211
235
==== Building `libepoxy`
212
236
213
237
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