[aravis] Re: Aravis GStreamer plugin cross-compilation for ARM 7

  • From: Nial Peters <nonbiostudent@xxxxxxxxxxx>
  • To: <aravis@xxxxxxxxxxxxx>
  • Date: Thu, 30 Aug 2012 20:26:23 +0000

Hi Jakob,

This is not something I really know much about, but I have seen similar errors 
when cross-compiling things and it has been due to a badly setup 
cross-compiling environment. In my case it has happened when the 
cross-toolchain has linked to a library that was not compiled for the target 
architecture. For example, in this case do you have an ARM version of the 
gstreamer library installed in your cross-compile environment? Sorry, that is 
not very clear - what I mean is that your cross compiler may have built an ARM 
version of the aravis gstreamer plugin, but during the build it may have linked 
to the X86 (or whatever your host architecture is) version of the gstreamer 
libraries. When you then try to run the plugin on your ARM system it will break 
(I think! At least I have had problems like this in the past).

What is your host system? If you are using Debian, then you can use xapt or 
multi-arch to install the ARM version of the gstreamer libraries into the right 
place for the cross-toolchain to link to them.

Cheers,
Nial

> Date: Thu, 30 Aug 2012 14:54:17 -0400
> From: jlifshits@xxxxxxxxxxxxx
> To: aravis@xxxxxxxxxxxxx
> Subject: [aravis] Re: Aravis GStreamer plugin cross-compilation for ARM 7
> 
> Emmanuel,
> 
> Thank you for the response. Please see below.
> 
> Regards,
> Jakob
> 
> On 8/30/2012 2:59 AM, Emmanuel Pacaud wrote:
> > Le mercredi 29 août 2012 à 19:13 -0400, Jakob Lifshits a écrit :
> >> Hello,
> >>
> >> I am working on cross-compiling the Aravis GStreamer plugin for an ARM 7
> >> platform. I am able to build for my target with no errors, and arv-tool
> >> runs and locates my camera. When trying to run GStreamer however, I get
> >> the following error:
> >>
> >> (gst-plugin-scanner:1347): GStreamer-WARNING **: Failed to load plugin
> >> '/usr/lib/gstreamer-0.10/libgstaravis-0.2.so':
> >> /usr/lib/gstreamer-0.10/libgstaravis-0.2.so: undefined symbol:
> >> gst_push_src_get_type
> > Wich aravis version ?
>  From aravis.pc (please let me know if there is a better place to check):
> 
> Version: 0.1.16
> 
> >
> > What is the output of
> > 'ldd  /usr/lib/gstreamer-0.10/libgstaravis-0.2.so' ?
> I don't have ldd for my target, but objdump reports the following needed 
> libraries. All are present in the /lib directory on the target.
> 
> libaravis-0.2.so.0
> libgcc_s.so.1
> libpthread.so.0
> libc.so.6
> 
> >
> > What is the output of gst-inspect ?
> gst-inspect fails with the error message I posted above, namely:
> 
> (gst-plugin-scanner:1347): GStreamer-WARNING **: Failed to load plugin
> '/usr/lib/gstreamer-0.10/libgstaravis-0.2.so':
> /usr/lib/gstreamer-0.10/libgstaravis-0.2.so: undefined symbol:
> gst_push_src_get_type
> 
> 
> >
> > Is gstreamer also installed in /usr/lib ?
> 
> Correct.
> >
> >     Emmanuel.
> >
> >
> >
> 
> 
                                          

Other related posts: