linux-sunxi / libvdpau-sunxi

Experimental VDPAU for Allwinner sunxi SoCs (obsolete, see https://linux-sunxi.org/Sunxi-Cedrus)
https://linux-sunxi.org/Cedrus
166 stars 80 forks source link

missing -lX11 linking #22

Closed wickwire closed 10 years ago

wickwire commented 10 years ago

Hardware: Cubieboard A20 Kernel: 3.4.75-gdba1161 OS: Linaro 13.09 Desktop Gstreamer: 0.10

Compiling gst-plugins-bad in order to have VDPAU support Running gst-launch in order to test:

VDPAU_DRIVER=sunxi DISPLAY=:0 gst-launch-0.10 -v filesrc location=/home/linaro/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 ! vdpauh264dec ! vdpauvideopostprocess ! vdpausink

Result [Fails]:

Setting pipeline to PAUSED ... Failed to open VDPAU backend /usr/lib/arm-linux-gnueabihf/libvdpau_sunxi.so: undefined symbol: XTranslateCoordinates ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/VdpSink:vdpsink0: Could not create VDPAU device for display: (null) Setting pipeline to NULL ... Freeing pipeline ...

Running with libX11 linking, Result [Works]:

LD_PRELOAD=libX11.so VDPAU_DRIVER=sunxi DISPLAY=:0 gst-launch-0.10 playbin2 uri=file:///home/linaro/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 video-sink="vdpauh264dec ! vdpauvideopostprocess ! vdpausink" Setting pipeline to PAUSED ... [VDPAU SUNXI] VE version 0x1623 opened. Pipeline is PREROLLING ... Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstAudioSinkClock

(big buck bunny video running)

Moorviper commented 10 years ago

that is normal you can add it to the makefile (-lX11)