Gst RTSP server programming

前端 未结 4 1120
南旧
南旧 2021-01-20 09:21

I\'ve installed gst-rtsp-server and I wanted to try a simple code. But on compilation I\'m getting the following error:

In function `main\':
te         


        
4条回答
  •  醉梦人生
    2021-01-20 09:34

    Initially I was using the below command to compile when I also got similar errors

    gcc -Wall test-server.c -o test-server $(pkg-config --cflags --libs gstreamer-1.0)
    

    After reading comments above, it looked like not linking to gstreamer-rtsp-server-1.0 lib was the issue so I changed the command as below

    gcc -Wall test-server.c -o test-server $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0)
    

    NOTE: My build environment is Ubuntu 19.04

提交回复
热议问题