What is the testing method of Ubuntu gstreamer development environment
This article introduces the relevant knowledge of "Ubuntu gstreamer development environment test method". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Build Ubuntu gstreamer development environment under Ubuntu.
Ubuntu already has the Ubuntu gstreamer library installed, so just install a few more development libraries
libstreamer0.10-0libstreamer0.10-dev
libstreamer0.10-0-dbg
Select Apply in New Delhi
Testing 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, µ, &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;}
Ubuntu gstreamer compile and run
gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) hello.c -o hello
./ hello
Ubuntu gstreamer results:
This program is linked against GStreamer 0.10.22
"Ubuntu gstreamer development environment test method is what" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!