apt-get install libgstreamer0.10-0html
apt-get install libgstreamer0.10-devlinux
apt-get install libgstreamer0.10-0-dbg
测试
这是个得到gstreamer库版本的测试用例。
gcc -Wall helloworld.c -o helloworld $(pkg-config --cflags --libs gstreamer-0.10)
编译时借助了 pkg-config
pkg-config --cflags --libs gstreamer-0.10 会把gstreamer-0.10编译所依赖的库的路径 头文件的路径所有帮你找出来,不用你再依次写出。
(上面这条pkg-config --cflags --libs gstreamer-0.10 就至关于:
-pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -pthread -L/usr/lib/i386-linux-gnu -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0)
ui
4.运行helloworld结果: ./helloworldspa
This program is linked against GStreamer 0.10.32
.net