GStreamer 1.16.0编译安装(亲测有效)

1. Download the latest version of gstreamer available at:

http://gstreamer.freedesktop.org/src/

The following are the files you need from version 1.16.0:

●  gstreamer-1.16.0.tar.xz

●  gst-plugins-base-1.16.0.tar.xz

●  gst-plugins-good-1.16.0.tar.xz

●  gst-plugins-bad-1.16.0.tar.xz

●  gst-plugins-ugly-1.16.0.tar.xz

2. Install needed packages with the following command:

sudo apt install build-essential dpkg-dev flex bison autotools-dev automake liborc-dev autopoint libtool gtk-doc-tools libgstreamer1.0-dev

3. Build gstreamer-1.16.0

cd gstreamer-1.16.0

../configure --prefix=/home/work/gst-1.16/

make

make install

4. Set the PKG_CONFIG_PATH with the following command:

export PKG_CONFIG_PATH=/home/work/gst-1.16/lib/pkgconfig

or write into .bashrc

vim ~/.bashrc

export PKG_CONFIG_PATH=/home/work/gst-1.16/lib/pkgconfig:$PKG_CONFIG_PATH

source ~/.bashrc

5. Build gst-plugins-base-1.16.0 with the following commands

cd ../gst-plugins-base-1.16.0

sudo apt install libxv-dev libasound2-dev libtheora-dev libogg-dev libvorbis-dev

./configure --prefix=/home/work/gst-1.16/

make

make install

6. Build gst-plugins-good-1.16.0 with the following commands:

cd ../gst-plugins-good-1.16.0

sudo apt install libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev

./configure --prefix=/home/work/gst-1.16/

make

make install

7. Obtain and build gst-plugins-bad-1.16.0 with the following commands:

cd ../gst-plugins-bad-1.16.0

sudo apt install faad libfaad-dev libfaac-dev

./configure --prefix=/home/work/gst-1.16

make(need to enable -std=c++11 or -std=gnu++11, perhaps)

(ex:  gst-plugins-bad-1.16.0/ext/openexr/Makefile: CXXFLAGS = -std=gnu++11)

make install

8.  Obtain and build gst-plugins-ugly-1.16.0 with the following commands:

cd ../gst-plugins-ugly-1.16.0

sudo apt install libx264-dev libmad0-dev

./configure --prefix=/home/work/gst-1.16

make

make install

9.  Obtain and build gst-libav-1.16.0 with the following commands:

cd ../gst-libav-1.16.0

./configure --prefix=/home/work/gst-1.16/

make

make install

10. Set the LD_LIBRARY_PATH environment variable with the following command:

export LD_LIBRARY_PATH=/home/work/gst-1.16/lib

or write into .bashrc

vim ~/.bashrc

export LD_LIBRARY_PATH=/home/work/gst-1.16/lib:$LD_LIBRARY_PATH

source ~/.bashrc

(0)

相关推荐