Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22001

How to configure Visual Studio Code on UBUNTU to compile gstreamer files

$
0
0

I have gstreamer and VSC installed on UBUNTU 18.04, and I can compile and run gstreamer tutorials from system command prompt by using instructions here: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c

Specifically, I can compile and run (The video pops up and plays):

gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0

I can even compile, but not run from the terminal/bash inside of VSC.

enter image description here

What I cannot do is compile or debug the code using the VSC IDE. I have tried to configure the tasks.json file using the above suggested command from gstreamer tutorial like below.

enter image description here

When I try to run from the IDE by using ctr-f5, I get the below.

enter image description here

If I click show errors I get the below:

enter image description here

Any help is very much appreciated. Cheers!


Viewing all articles
Browse latest Browse all 22001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>