rpicamsrc Gstreamer 1.18.2 compilation error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

rpicamsrc Gstreamer 1.18.2 compilation error

horai
Dear all,

I am facing this error when compiling Gstreamer 1.18.2 gst-plugins-good,
does anyone know how to resolve it?

[3/275] Linking target sys/rpicamsrc/libgstrpicamsrc.so.
FAILED: sys/rpicamsrc/libgstrpicamsrc.so
cc  -o sys/rpicamsrc/libgstrpicamsrc.so
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/meson-generated_.._gstrpicam-enum-types.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/gstrpicamsrc.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/gstrpicamsrcdeviceprovider.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiCapture.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiCamControl.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiPreview.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@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+0x34): undefined reference to `sem_getvalue'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x60): 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+0xb4): 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+0x128): 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+0x1d8): undefined reference to `sem_init'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x298): undefined reference to
`vchi_service_open'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x2e4): 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+0x350): undefined reference to `vchi_service_close'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x398): 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+0x47c): 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+0x594): undefined reference to `vchi_msg_dequeue'
/usr/bin/ld: vc_vchi_gencmd.c:(.text+0x5c0): undefined reference to
`sem_wait'
collect2: error: ld returned 1 exit status
[8/275] Compiling C object
'ext/gdk_pixbuf/e9f6877@@gstgdkpixbuf@sha/gstgdkpixbufoverlay.c.o'.
ninja: build stopped: subcommand failed.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rpicamsrc Gstreamer 1.18.2 compilation error

horai
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@sha/meson-generated_.._gstrpicam-enum-types.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/gstrpicamsrc.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/gstrpicamsrcdeviceprovider.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiCapture.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiCamControl.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@sha/RaspiPreview.c.o'
'sys/rpicamsrc/34a60e0@@gstrpicamsrc@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@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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rpicamsrc Gstreamer 1.18.2 compilation error

matzrm
Hi,

the same here with gstreamer 1.19. Did you solve this issue?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rpicamsrc Gstreamer 1.18.2 compilation error

Tim Müller
Hi,

> the same here with gstreamer 1.19. Did you solve this issue?

There's a discussion about it in

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/839

with a fix/workaround.

Cheers
 Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel