rpicamsrc Gstreamer 1.18.2 compilation error

horai ivo.hora at seznam.cz
Fri Jan 1 08:57:41 UTC 2021


I upgraded the raspberrypi-dev Raspbian package with up-to-date
https://github.com/raspberrypi/userland build. The compilation failed again,
but errors are different, therefore I assume a specific build of Raspbian
userland, must be present, but I initially used the one which is coming
preinstalled with Raspbian from repository.

[14/304] Linking target sys/rpicamsrc/libgstrpicamsrc.so.
FAILED: sys/rpicamsrc/libgstrpicamsrc.so 
cc  -o sys/rpicamsrc/libgstrpicamsrc.so
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/meson-generated_.._gstrpicam-enum-types.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/gstrpicamsrc.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/gstrpicamsrcdeviceprovider.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/RaspiCapture.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/RaspiCamControl.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/RaspiPreview.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc at sha/RaspiCLI.c.o' -Wl,--no-undefined
-Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libgstrpicamsrc.so
-Wl,-Bsymbolic-functions -Wl,--no-as-needed
/usr/lib/arm-linux-gnueabihf/libgstreamer-1.0.so
/usr/lib/arm-linux-gnueabihf/libgobject-2.0.so
/usr/lib/arm-linux-gnueabihf/libglib-2.0.so
/usr/lib/arm-linux-gnueabihf/libgstbase-1.0.so
/usr/lib/arm-linux-gnueabihf/libgstvideo-1.0.so /opt/vc/lib/libmmal_core.so
/opt/vc/lib/libmmal_util.so /opt/vc/lib/libmmal_vc_client.so
/opt/vc/lib/libvcos.so /opt/vc/lib/libvchostif.a /opt/vc/lib/libbcm_host.so
-Wl,--end-group -Wl,-rpath,/opt/vc/lib -Wl,-rpath-link,/opt/vc/lib
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`gencmd_callback':
vc_vchi_gencmd.c:(.text+0x38): undefined reference to `sem_getvalue'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x5c): undefined reference to
`sem_post'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`use_gencmd_service':
vc_vchi_gencmd.c:(.text+0x90): undefined reference to `vchi_service_use'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0xf8): undefined reference to
`vchi_service_use'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x11c): undefined reference to
`vchi_service_use'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x138): undefined reference to
`vchi_service_use'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x15c): undefined reference to
`vchi_service_use'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`release_gencmd_service':
vc_vchi_gencmd.c:(.text+0x19c): undefined reference to
`vchi_service_release'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x204): undefined reference to
`vchi_service_release'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x228): undefined reference to
`vchi_service_release'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x244): undefined reference to
`vchi_service_release'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x268): undefined reference to
`vchi_service_release'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`vc_vchi_gencmd_init':
vc_vchi_gencmd.c:(.text+0x30c): undefined reference to `sem_init'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x3a8): undefined reference to
`vchi_service_open'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x404): undefined reference to
`sem_destroy'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`vc_gencmd_stop':
vc_vchi_gencmd.c:(.text+0x468): undefined reference to `vchi_service_close'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x4b0): undefined reference to
`sem_destroy'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`vc_gencmd_send_list':
vc_vchi_gencmd.c:(.text+0x58c): undefined reference to `vchi_msg_queue'
/usr/bin/ld: /opt/vc/lib/libvchostif.a(vc_vchi_gencmd.c.o): in function
`vc_gencmd_read_response':
vc_vchi_gencmd.c:(.text+0x6a4): undefined reference to `vchi_msg_dequeue'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x6d4): undefined reference to
`sem_wait'
collect2: error: ld returned 1 exit status
[19/304] Compiling C object
'sys/ximage/e467f71@@gstximagesrc at sha/gstximagesrc.c.o'.
ninja: build stopped: subcommand failed.


If so, could anyone help me find out which build is necessary for rpicamsrc
to pass the build? I don't mind installing rpicamsrc from sources and
exclude it from 1.18.2 compilation, but I would rather have official
inclusion of rpicamsrc sources in Gstreamer build which could bring some
benefits over externally compiled plugin



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list