Issue on Installing gstreamer-imx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue on Installing gstreamer-imx

3,942 Views
erikraynolds
Contributor III

Dears,

per instruction Installing Ubuntu Rootfs on NXP i.MX6 boards On Installing gstreamer-imx:

  1. Install build deps, gstreamer1.x, this step could take some time (~350MB):   
  2. # apt-get install python pkg-config git gstreamer1.0-x gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev g++-multilib  
  3. # git clone git://github.com/Freescale/gstreamer-imx.git  
  4. # cd gstreamer-imx  
  5. # ln –s /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/ /usr/lib/gstreamer-1.0  
  6. # ./waf configure --prefix=/usr --kernel-headers=/include  
  7. # ./waf  
  8. # ./waf install  
  9. # cd ../../ 

By ./waf configure --prefix=/usr --kernel-headers=/include

root@linaro-alip:~# cd gstreamer-imx/
root@linaro-alip:~/gstreamer-imx# ./waf configure --prefix=/usr --kernel-headers=/include
Setting top to : /root/gstreamer-imx
Setting out to : /root/gstreamer-imx/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for compiler switch -O2 : yes
Checking for compiler switch -DPIC : yes
Checking for compiler switch -fPIC : yes
Checking for compiler switch -std=gnu99 : yes
Checking for compiler switch -Wall : yes
Checking for compiler switch -Wextra : yes
Checking for compiler switch -Wno-sign-compare : yes
Checking for compiler switch -Wno-missing-field-initializers : yes
Checking for compiler switch -Wno-unused-parameter : yes
Checking for compiler switch -Wno-cpp : yes
Building for Android : no
Checking for library dl : yes
Checking for library m : yes
Checking for library pthread : yes
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'gstreamer-1.0' version : yes
Checking for 'gstreamer-1.0 >= 1.2.0' : yes
Checking for 'gstreamer-base-1.0 >= 1.2.0' : yes
Checking for 'gstreamer-audio-1.0 >= 1.2.0' : yes
Checking for 'gstreamer-video-1.0 >= 1.2.0' : yes
Checking for library gstphotography-1.0 : yes
checking whether or not the kernel version is greater than 3.5.0 : yes
Checking for library g2d : yes
Checking for header g2d.h : yes
G2D elements will be built
checking for linux/pxp_device.h : yes
PxP elements will be built
checking for linux/fb.h and the IPU header linux/ipu.h : yes
IPU elements will be built
Checking for 'libimxvpuapi >= 0.10.3' : not found
could not find installed imxvpuapi library - VPU elements will not be built
Checking for library X11 : not found
EGL sink with Vivante direct textures will not be built - dependencies not found
Checking for 'libfslaudiocodec' : yes
Searching fslcodec plugin directory : found
uniaudio decoder will be built
Checking for library _mp3_enc_arm12_elinux : yes
mp3 encoder will be built
'configure' finished successfully (5.746s)
root@linaro-alip:~/gstreamer-imx#

by calling ./waf

root@linaro-alip:~/gstreamer-imx# ./waf
Waf: Entering directory `/root/gstreamer-imx/build'
[28/49] Compiling src/v4l2src/v4l2src.c
[33/49] Linking build/src/audio/libgstimxaudio.so
[36/49] Compiling src/blitter/video_sink.c
[37/49] Compiling src/blitter/video_transform.c
[38/49] Compiling src/compositor/gst-backport/gstimxbpaggregator.c
In file included from ../src/v4l2src/v4l2src.c:24:0:
/usr/include/gstreamer-1.0/gst/interfaces/photography.h:28:2: warning: #warning "The GstPhotography interface is unstable API and may change in future." [-Wcpp]
#warning "The GstPhotography interface is unstable API and may change in future."
^
/usr/include/gstreamer-1.0/gst/interfaces/photography.h:29:2: warning: #warning "You can define GST_USE_UNSTABLE_API to avoid this warning." [-Wcpp]
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_caps_for_current_setup’:
../src/v4l2src/v4l2src.c:541:14: error: ‘GST_VIDEO_FORMAT_NV12_64Z32’ undeclared (first use in this function)
gst_fmt = GST_VIDEO_FORMAT_NV12_64Z32;
^
../src/v4l2src/v4l2src.c:541:14: note: each undeclared identifier is reported only once for each function it appears in
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_uri_get_type’:
../src/v4l2src/v4l2src.c:1063:54: warning: unused parameter ‘type’ [-Wunused-parameter]
static GstURIType gst_imx_v4l2src_uri_get_type(GType type)
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_uri_get_protocols’:
../src/v4l2src/v4l2src.c:1068:69: warning: unused parameter ‘type’ [-Wunused-parameter]
static const gchar *const * gst_imx_v4l2src_uri_get_protocols(GType type)
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_uri_set_uri’:
../src/v4l2src/v4l2src.c:1086:32: warning: unused parameter ‘error’ [-Wunused-parameter]
const gchar * uri, GError ** error)
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_uri_handler_init’:
../src/v4l2src/v4l2src.c:1099:73: warning: unused parameter ‘iface_data’ [-Wunused-parameter]
static void gst_imx_v4l2src_uri_handler_init(gpointer g_iface, gpointer iface_data)
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_af_status_cb’:
../src/v4l2src/v4l2src.c:1364:56: warning: unused parameter ‘clock’ [-Wunused-parameter]
static gboolean gst_imx_v4l2src_af_status_cb(GstClock *clock, GstClockTime time,
^
../src/v4l2src/v4l2src.c:1364:76: warning: unused parameter ‘time’ [-Wunused-parameter]
static gboolean gst_imx_v4l2src_af_status_cb(GstClock *clock, GstClockTime time,
^
../src/v4l2src/v4l2src.c: In function ‘gst_imx_v4l2src_photography_init’:
../src/v4l2src/v4l2src.c:1432:73: warning: unused parameter ‘iface_data’ [-Wunused-parameter]
static void gst_imx_v4l2src_photography_init(gpointer g_iface, gpointer iface_data)
^

[39/49] Compiling src/compositor/gst-backport/gstimxbpvideoaggregator.c
[40/49] Compiling src/compositor/compositor.c
Waf: Leaving directory `/root/gstreamer-imx/build'
Build failed
-> task in 'gstimxv4l2videosrc' failed (exit status 1):
{task 1988745456: c v4l2src.c -> v4l2src.c.1.o}
['/usr/bin/gcc', '-Wextra', '-Wall', '-std=gnu99', '-fPIC', '-DPIC', '-O2', '-fPIC', '-pthread', '-pthread', '-pthread', '-pthread', '-pthread', '-Isrc/v4l2src', '-I../src/v4l2src', '-I.', '-I..', '-I/usr/include/gstreamer-1.0', '-I/usr/include/glib-2.0', '-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include', '../src/v4l2src/v4l2src.c', '-c', '-o/root/gstreamer-imx/build/src/v4l2src/v4l2src.c.1.o']
root@linaro-alip:~/gstreamer-imx#

I'm looking for a resolution for "Build failed" issue and how to configure it and compile it correctly?

Tags (1)
0 Kudos
1 Reply

1,490 Views
igorpadykov
NXP Employee
NXP Employee

Hi Erik

in general for gstreamer-imx with ubuntu one can look at BD resources

i.MX6 Video acceleration on Ubuntu Raring (and Debian) - Boundary Devices 

There are 2 separate plugin's : community gstreamer-imx plugins and
nxp gstreamer plugins (fsl-gst-plugin package). First supported by community, may be posted

on meta-fsl-arm mailing list, so that someone familiar with that version could try to assist you

https://lists.yoctoproject.org/listinfo/meta-freescale

Nxp gstreamer plugins are described in nxp bsp documentation:

http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.2.0_LINUX_DOCS&Parent_nodeId=133769948107170617... 

Also may be useful to check other gstreamer-imx usage links:

i.MX6 GStreamer-imx Plugins - Tutorial & Example Pipelines 

trac.gateworks.com/wiki/Yocto/gstreamer

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos