Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4824

Camera board • Re: Rebuilding rpicam-apps

$
0
0
I have rebuilt my Pi5 and and I can now build the out of box rpicam-apps and my version (rpi2cam-vid). The issue I have is I must have something wrong in my version of the meson build files.

Both the out of the box rpicam-apps and mine look for the same share library link so which ever has been compile last works.

Code:

wkeeling@pi5dev4g:/usr/local/lib/aarch64-linux-gnu $ ls -altotal 1496drwxr-xr-x 3 root root   4096 Aug 21 13:29 .drwxr-xr-x 4 root root   4096 Aug 20 13:18 ..lrwxrwxrwx 1 root root     13 Aug 21 13:29 libcamera_app.so -> rpicam_app.solrwxrwxrwx 1 root root     20 Aug 21 13:19 rpi2cam_app.so -> rpi2cam_app.so.1.0.2-rwxr-xr-x 1 root root 583848 Aug 21 12:59 rpi2cam_app.so.1.0.2lrwxrwxrwx 1 root root     19 Aug 21 13:29 rpicam_app.so -> rpicam_app.so.1.5.0-rwxr-xr-x 1 root root 929976 Aug 21 13:29 rpicam_app.so.1.5.0drwxr-xr-x 2 root root   4096 Aug 21 13:29 rpicam-apps-postprocwkeeling@pi5dev4g:/usr/local/lib/aarch64-linux-gnu $ ls -altotal 1496drwxr-xr-x 3 root root   4096 Aug 21 13:31 .drwxr-xr-x 4 root root   4096 Aug 20 13:18 ..lrwxrwxrwx 1 root root     14 Aug 21 13:31 libcamera_app.so -> rpi2cam_app.solrwxrwxrwx 1 root root     20 Aug 21 13:31 rpi2cam_app.so -> rpi2cam_app.so.1.0.2-rwxr-xr-x 1 root root 583848 Aug 21 12:59 rpi2cam_app.so.1.0.2lrwxrwxrwx 1 root root     19 Aug 21 13:29 rpicam_app.so -> rpicam_app.so.1.5.0-rwxr-xr-x 1 root root 929976 Aug 21 13:29 rpicam_app.so.1.5.0drwxr-xr-x 2 root root   4096 Aug 21 13:29 rpicam-apps-postproc
What do I need to change in my meson files so that my app will look directly for rpi2cam_app.so and not to libcamera_app.so?

The link is created by this meson statement

Code:

# Install a symlink to the old library name for legacy purposes.install_symlink('libcamera_app.so',                install_dir: get_option('libdir'),                pointing_to: 'rpi2cam_app.so')
but with out it my version fails with

Code:

wkeeling@pi5dev4g:~/rpi2cam-vid $ rpi2cam-vid --versionrpi2cam-vid: error while loading shared libraries: rpi2cam_app.so.1.0.2: cannot open shared object file: No such file or directory
Please let me know what I need to fix to make my app look for my shared library.

thanks

Statistics: Posted by wkeeling — Wed Aug 21, 2024 7:08 pm



Viewing all articles
Browse latest Browse all 4824

Trending Articles