On 12/17/24 15:39, 'Alan Federman' via HomeBrew Robotics Club wrote:
> ok my v4l2-ctl looks identical. Libcamera won't build, so as far as I
> can tell gtstreamer won't work on Ubuntu 24.04.
> I downloaded libcamera from raspberry pi. I tried both the master and
> pi5_upstream branches. Both failed to build, complaining about not
> finding the IPO module.
root@ubuntu-2404-pi:~/src/libcamera# apt install -y python3-pip git
python3-jinja2 libboost-dev libgnutls28-dev openssl libtiff-dev
pybind11-dev qtbase5-dev libqt5core5t64 libqt5widgets5t64 meson cmake
python3-yaml python3-ply libglib2.0-dev libgstreamer-plugins-base1.0-dev
...
root@ubuntu-2404-pi:~/src/libcamera# meson setup build
--buildtype=release -Dpipelines=rpi/vc4,rpi/pisp -Dipas=rpi/vc4,rpi/pisp
-Dv4l2=true -Dgstreamer=enabled -Dtest=false -Dlc-compliance=disabled
-Dcam=enabled -Dqcam=disabled -Ddocumentation=disabled -Dpycamera=enabled
The Meson build system
Version: 1.3.2
Source dir: /root/src/libcamera
Build dir: /root/src/libcamera/build
Build type: native build
Project name: libcamera
Project version: 0.3.2
C compiler for the host machine: cc (gcc 13.3.0 "cc (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0")
C linker for the host machine: cc ld.bfd 2.42
C++ compiler for the host machine: c++ (gcc 13.3.0 "c++ (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0")
C++ linker for the host machine: c++ ld.bfd 2.42
Host machine cpu family: aarch64
Host machine cpu: aarch64
Header "fcntl.h" has symbol "F_ADD_SEALS" : YES
Header "unistd.h" has symbol "issetugid" : NO
Header "locale.h" has symbol "locale_t" : YES
Header "sys/mman.h" has symbol "memfd_create" : YES
Header "stdlib.h" has symbol "secure_getenv" : YES
Compiler for C supports arguments -Wno-c99-designator: NO
Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
Run-time dependency lttng-ust found: YES 2.13.7
Program ./parser.py found: YES
(/root/src/libcamera/utils/codegen/ipc/./parser.py)
Program ./generate.py found: YES
(/root/src/libcamera/utils/codegen/ipc/./generate.py)
Program ./extract-docs.py found: YES
(/root/src/libcamera/utils/codegen/ipc/./extract-docs.py)
Configuring version.h using configuration
Program openssl found: YES (/usr/bin/openssl)
Library atomic found: YES
Run-time dependency threads found: YES
Run-time dependency libdw found: YES 0.190
Run-time dependency libunwind found: YES 1.6.2
Header "execinfo.h" has symbol "backtrace" : YES
Library rt found: YES
Found CMake: /usr/bin/cmake (3.28.3)
Run-time dependency libpisp found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libpisp
Cloning into 'libpisp'...
remote: Enumerating objects: 88, done.
remote: Counting objects: 100% (88/88), done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 88 (delta 5), reused 32 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (88/88), 99.18 KiB | 1.29 MiB/s, done.
Resolving deltas: 100% (5/5), done.
Executing subproject libpisp
libpisp| Project name: libpisp
libpisp| Project version: 1.0.7
libpisp| C compiler for the host machine: cc (gcc 13.3.0 "cc (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0")
libpisp| C linker for the host machine: cc ld.bfd 2.42
libpisp| C++ compiler for the host machine: c++ (gcc 13.3.0 "c++ (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0")
libpisp| C++ linker for the host machine: c++ ld.bfd 2.42
libpisp| Configuring pisp_build_config.h using configuration
libpisp| Run-time dependency nlohmann_json found: NO (tried pkgconfig
and cmake)
libpisp| Looking for a fallback subproject for the dependency nlohmann_json
libpisp| Using subprojects/libpisp/subprojects/nlohmann_json.wrap
libpisp| Downloading nlohmann_json source from
https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip
Download size: 293810
Downloading: ..........
Executing subproject libpisp:nlohmann_json
nlohmann_json| Project name: nlohmann_json
nlohmann_json| Project version: 3.11.2
nlohmann_json| C++ compiler for the host machine: c++ (gcc 13.3.0 "c++
(Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0")
nlohmann_json| C++ linker for the host machine: c++ ld.bfd 2.42
nlohmann_json| Build targets in project: 24
nlohmann_json| Subproject nlohmann_json finished.
libpisp| Dependency nlohmann_json from subproject
subprojects/nlohmann_json-3.11.2 found: YES 3.11.2
libpisp| Dependency threads found: YES unknown (cached)
libpisp| Library dl found: YES
libpisp| Run-time dependency Boost (found: log, log_setup, system,
thread) found: YES 1.83.0 (/usr)
libpisp| Build targets in project: 26
libpisp| Subproject libpisp finished.
Dependency libpisp from subproject subprojects/libpisp found: YES 1.0.7
Checking for function "dlopen" : YES
Run-time dependency libudev found: YES 255
Run-time dependency yaml-0.1 found: YES 0.2.5
Run-time dependency gnutls found: YES 3.8.3
Dependency libexif skipped: feature android disabled
Dependency libjpeg skipped: feature android disabled
Run-time dependency libevent_pthreads found: YES 2.1.12-stable
Run-time dependency libtiff-4 found: YES 4.5.1
Dependency gtest skipped: feature lc-compliance disabled
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency libjpeg found: YES 2.1.5
Run-time dependency sdl2 found: YES 2.30.0
Dependency qt6 (modules: Core, Gui, OpenGL, OpenGLWidgets, Widgets)
skipped: feature qcam disabled
Run-time dependency glib-2.0 found: YES 2.80.0
Run-time dependency gstreamer-video-1.0 found: YES 1.24.2
Run-time dependency gstreamer-allocators-1.0 found: YES 1.24.2
Run-time dependency python3 found: YES 3.12
Run-time dependency pybind11 found: YES 2.11.1
Configuring libcamerify using configuration
Program doxygen skipped: feature documentation disabled
Program dot skipped: feature documentation disabled
Program sphinx-build-3 found: NO
Program sphinx-build skipped: feature documentation disabled
Configuring config.h using configuration
Program python3 (jinja2, yaml, jinja2, ply) found: YES
(/usr/bin/python3) modules: jinja2, yaml, jinja2, ply
Build targets in project: 51
libcamera 0.3.2
Versions
Sources : 0.3.2+99-1230f78d
Paths
LIBCAMERA_DATA_DIR : "/usr/local/share/libcamera"
LIBCAMERA_SYSCONF_DIR : "/usr/local/etc/libcamera"
IPA_PROXY_DIR : "/usr/local/libexec/libcamera"
IPA_CONFIG_DIR :
"/usr/local/etc/libcamera/ipa:/usr/local/share/libcamera/ipa"
IPA_MODULE_DIR : "/usr/local/lib/aarch64-linux-gnu/libcamera"
Configuration
SoftISP support : false
IPA modules signed with : gnutls
Enabled pipelines : rpi/vc4
rpi/pisp
Enabled IPA modules : rpi/vc4
rpi/pisp
Controls files : control_ids_draft.yaml
control_ids_core.yaml
control_ids_rpi.yaml
Properties files : property_ids_draft.yaml
property_ids_core.yaml
Hotplug support : YES
Tracing support : YES
Android support : NO
GStreamer support : YES
Python bindings : YES
V4L2 emulation support : YES
cam application : YES
qcam application : NO
lc-compliance application: NO
Unit tests : NO
Subprojects
libpisp : YES
nlohmann_json : YES (from libpisp)
User defined options
buildtype : release
cam : enabled
documentation : disabled
gstreamer : enabled
ipas : rpi/vc4,rpi/pisp
lc-compliance : disabled
pipelines : rpi/vc4,rpi/pisp
pycamera : enabled
qcam : disabled
test : false
v4l2 : true
Found ninja-1.11.1 at /usr/bin/ninja
root@ubuntu-2404-pi:~/src/libcamera# ninja -C build install
ninja: Entering directory `build'
[14/247] Generating src/ipa-priv-key with a custom command
...+........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+.+...........+.+........+.......+..+......+....+...+...+.....+.......+...+..+.........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+.+..+................+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+..+.......+...+..+.............+......+..+.............+.........+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[61/247] Generating src/libcamera/ipa_pub_key_cpp with a custom command
writing RSA key
[246/247] Installing files.
Installing include/libcamera/ipa/core_ipa_interface.h to
/usr/local/include/libcamera/libcamera/ipa
Installing include/libcamera/ipa/raspberrypi_ipa_interface.h to
/usr/local/include/libcamera/libcamera/ipa
...
Installing symlink pointing to libcamera.so.0.3.2 to
/usr/local/lib/aarch64-linux-gnu/libcamera.so.0.3
Installing symlink pointing to libcamera.so.0.3 to
/usr/local/lib/aarch64-linux-gnu/libcamera.so
Running custom install script
'/root/src/libcamera/src/ipa/ipa-sign-install.sh
/root/src/libcamera/build/src/ipa-priv-key.pem
lib/aarch64-linux-gnu/libcamera/ipa_rpi_vc4.so
lib/aarch64-linux-gnu/libcamera/ipa_rpi_pisp.so'
Regenerating IPA modules signatures
root@ubuntu-2404-pi:~/src/libcamera#
LD_LIBRARY_PATH=/usr/local/lib/aarch64-linux-gnu/:$LD_LIBRARY_PATH
/usr/local/bin/cam --list
[5:03:33.363753475] [6597] INFO Camera camera_manager.cpp:325 libcamera
v0.3.2+99-1230f78d
[5:03:33.390851392] [6601] INFO RPI pisp.cpp:695 libpisp version v1.0.7
28196ed6edcf 17-12-2024 (19:31:57)
[5:03:33.491293611] [6601] INFO RPI pisp.cpp:1154 Registered camera
/base/axi/pcie@120000/rp1/i2c@80000/imx708@1a to CFE device /dev/media0
and ISP device /dev/media1 using PiSP variant BCM2712_C0
Available cameras:
1: 'imx708_wide' (/base/axi/pcie@120000/rp1/i2c@80000/imx708@1a)
root@ubuntu-2404-pi:~/src/libcamera#
SO, it works there;-)
>> raspberrypi/libcamera>
>>
https://github.com/raspberrypi/rpicam-apps <
https://github.com/
>> raspberrypi/rpicam-apps>
>>
bugs.launchpad.net/ubuntu/> <https:// <
https://connect.xfinity.com>
>> >>
bugs.launchpad.net/ubuntu/>
>> >> PRIVACY_POLICY_URL="
https://www.ubuntu.com/legal/terms-and-
>> policies/ <
https://www.ubuntu.com/legal/terms-and-policies/>
>> <mailto:
hbrob...@googlegroups.com
>> d/msgid/> <
https://groups.google.com/d/ <
https://groups.google.com/d/>
>> >> >> hbrobotics/1471747645.768641.1734202273238%
40connect.xfinity.com
>> >> >> <
https://groups.google.com/d/msgid/ <
https://groups.google.com/
>> d/msgid/> <
https://groups.google.com/d/ <
https://groups.google.com/d/>
>> >> msgid/>
>> >> >> hbrobotics/1471747645.768641.1734202273238%
40connect.xfinity.com?
>> >> >> utm_medium=email&utm_source=footer>.
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "HomeBrew Robotics Club" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an email to
hbrobotics+...@googlegroups.com
>> <mailto:
hbrobotics+...@googlegroups.com>
>> >> hbrobotics/b1b72e91-0a17-4296-83b7-2c39ea2af95b%
40gmail.com
>> <https:// <
https://connect.xfinity.com>
>> >>
groups.google.com/d/msgid/hbrobotics/
>> >> b1b72e91-0a17-4296-83b7-2c39ea2af95b%
40gmail.com>.
>> --
>> You received this message because you are subscribed to the Google
>> Groups "HomeBrew Robotics Club" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to
hbrobotics+...@googlegroups.com
>> hbrobotics/4aea4efa-26d2-4e1c-b1a0-12093b248a60%
40gmail.com <https://
>>
groups.google.com/d/msgid/hbrobotics/4aea4efa-26d2-4e1c-
>> b1a0-12093b248a60%
40gmail.com>.
> hbrobotics/
2067041955.1137967.1734478763163%
40connect.xfinity.com
> <
https://groups.google.com/d/msgid/
> hbrobotics/
2067041955.1137967.1734478763163%
40connect.xfinity.com?
> utm_medium=email&utm_source=footer>.