This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Building application with gstreamer



Hi everyone,

I'm working on an application that needs to use gstreamer to play video.  When I do a #include <gst/gst.h> I get errors complaining about "No such file or directory".  I've added these lines to my qmake project file:

INCLUDEPATH += /home/marlon/ti-dvsdk_dm365-evm_4_01_00_09/linux-devkit/arm-none-linux-gnueabi/usr/include/gstreamer-0.10
INCLUDEPATH += /home/marlon/ti-dvsdk_dm365-evm_4_01_00_09/linux-devkit/arm-none-linux-gnueabi/usr/include/glib-2.0
INCLUDEPATH += /home/marlon/ti-dvsdk_dm365-evm_4_01_00_09/linux-devkit/arm-none-linux-gnueabi/usr/lib
INCLUDEPATH += /home/marlon/ti-dvsdk_dm365-evm_4_01_00_09/linux-devkit/arm-none-linux-gnueabi/usr/lib/gstreamer-0.10
INCLUDEPATH += /home/marlon/ti-dvsdk_dm365-evm_4_01_00_09/linux-devkit/arm-none-linux-gnueabi/usr/lib/glib-2.0/include

and that has fixed some of the include errors, but now it is complaining that it can't find libxml/parser.h.

I'm using the "source environment-setup" command before compiling, and my application does compile if I don't include gstreamer.

My understanding was that dvsdk came with gstreamer ready to go, but even after including some of these directories by hand I'm getting stuck.

Is there an easy way to build an application with the gstreamer libraries without having to track down all of these individual files?

Thanks!

 

Marlon

  • hello,

    dvsdk 4.x comes ready with gstreamer, did you read software developers guide on how to cross compile gst application. here is copy/paste

     

     

    The step above is very similar to what gst application manual refers http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-helloworld-compilerun.html

    You should use pkg-config to find gstreamer specific header and libs.

    HTH.

    Thanks

    Brijesh

     

    Compiling an application

    DVSDK Linux development kit includes the GStreamer development header files, libraries and package configs.

    1. First, configure your cross compilation environment #Setting_up_cross_compilation_environment


    2. Next, follow the typical GStreamer recommended method for compiling your application. e.g.

    host $ cd <directory where your application is>
    host $ gcc -o decode decode.c `pkg-config --libs --cflags gstreamer-0.10`
    
  • Thank you Brijesh, I actually figured it out on my own at the same time you responded to me :)

    My solution was similar but I modified my qmake file instead; my project is quite large and compiling it from the command line with gcc would be tedious.  Here are the lines I added to my .pro file:

    CONFIG += link_pkgconfig
    PKGCONFIG += gstreamer-0.10

    Hopefully this will help someone else in a similar situation.

    Thanks again!

    Marlon