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