Gst RTSP server programming

前端 未结 4 1123
南旧
南旧 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条回答
  •  梦毁少年i
    2021-01-20 09:43

    After running

    apt-get install libgstrtspserver-0.10-dev
    

    the command

    pkg-config --libs gstreamer-rtsp-0.10
    

    returns

    -pthread -lgstrtsp-0.10 -lgstreamer-0.10 -lgstsdp-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lxml2 -lglib-2.0 
    

    But

    ls /usr/lib/libgstrtsp*
    

    returns

    /usr/lib/libgstrtspserver-0.10.so
    /usr/lib/libgstrtspserver-0.10.so.0.0.0
    /usr/lib/libgstrtspserver-0.10.so.0
    

    So, replacing the flag -lgstrtsp-0.10 by -lgstrtspserver-0.10 solved this issue for me.

提交回复
热议问题