Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build Ubuntu gstreamer Development Environment under Ubuntu

Shulou Source: shulou.com Published: 2022-05-31 21:28:42 10月02日 Update

This article mainly introduces how to build a Ubuntu gstreamer development environment under Ubuntu, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.

1Jing Ubuntu has installed the Ubuntu gstreamer library, so only a few more development libraries need to be installed, yes

Libstreamer0.10- 0 libstreamer0.10-dev libstreamer0.10- 0-dbg

Just select the application in Synaptic.

2. Test the Ubuntu gstreamer development library

# include int main (int argc,char * argv []) {const gchar * nano_str; guint major, minor, micro, nano; gst_init (& argc, & argv); gst_version (& major, & minor, & micro, & nano); if (nano = = 1) nano_str = "(CVS)"; else if (nano = = 2) nano_str = "(Prerelease)"; else nano_str = "" Printf ("This program is linked against GStreamer% d.%d.%d% s\ n", major, minor, micro, nano_str); return 0;}

3Jing Ubuntu gstreamer compiles and runs

Gcc-Wall $(pkg-config-- cflags-- libs gstreamer-0.10) hello.c-o hello. / hello

Running result: This program is linked against GStreamer 0.10.22

Thank you for reading this article carefully. I hope the article "how to build a Ubuntu gstreamer Development Environment under Ubuntu" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Development articles environment operation value interest at the same time more friends knowledge results editing industry information information channels channels Xinli reference learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Shulou Information vpn NVidia