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 the Gstreamer for DM81xx processor

Hi,

I am trying to compile the  dm81xx_gsreamer code with the EZSDK package. I am getting the below error. That glibtoolize not found. I tried to install glib also. but I am not getting the solution.

***** Configuring plugins_base

if [ "true" = "true" ]; then cd gst-plugins-base-0.10.32 && ./autogen.sh --disable-gtk-doc --noconfigure; fi

./autogen.sh: line 14: git: command not found

ln: creating symbolic link `.git/hooks/pre-commit': No such file or directory

+ passing argument --disable-gtk-doc to configure

+ configure run disabled + options passed to configure: --disable-gtk-doc

+ check for build tools

checking for autoconf >= 2.60 ... found 2.65, ok.

checking for automake >= 1.10 ... found 1.11.1, ok.

checking for autopoint >= 0.17 ... found 0.17, ok.

checking for libtoolize >= 1.5.0 ... checking for glibtoolize >= 1.5.0 ... libtoolize not found !

You must have libtoolize installed to compile gst-plugins-base.

Download the appropriate package for your distribution,

or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/

checking for pkg-config >= 0.8.0 ... found 0.22, ok.

- Please get the right tools before proceeding.

- Alternatively, if you're sure we're wrong, run with --nocheck.

Please help me to solve this solution to compile and build the gstreamer.

Thanks in advance.
Regards,
Salih
  • Hi Salih

    You need to install build pakages like bison ,flex, libtool etc. so please update pakages before building gstreamer.

    sudo apt-get install libtool

    sudo apt-get install bison

    sudo apt-get install flex

    Regards

    Santosh Avati

  • 
    
    Hi Santhosh,
    
    
    Thanks. But, after that I am getting the below error while compiling. How can I solve this error. Please give me the solution for the below error.
    
    
    arm-none-linux-gnueabi-gcc is unable to create an executable file.
    C compiler test failed.

    If you think configure made a mistake, make sure you are using the latest
    version from SVN. If the latest version fails, report the problem to the
    ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.err" produced by configure as this will help
    solving the problem.
    config.status: error: Failed to configure embedded FFmpeg tree
    make[3]: *** [ffmpeg.configure] Error 1
    
    
    Thanks in advance.
    
    
    Regards,
    Salih
  • Hi Salih,

    Let me know which EZSDK version are you using.

    Please check below steps you followed.

    cd to EZSDK install directory and do

    make all

    after that go to gstreamer directory and do

    make clean

    make all install VERBOSE=true

    Please refer README.txt present in gstreamer  root directory for more information.

    Regards

    Santosh Avati


     

  • Hi Santhosh,

    I am using EZSDK dm816x-evm_5_01_01_80. And also I am following the same procedure whatever you said above. But the error occurring. Please let me know how to solve this error.

    I am also downloaded my source code from the below link. Inside I downloaded the whole directory gstreamer_ti_dm81xx.

    https://gstreamer.ti.com/gf/project/gstreamer_ti/scmsvn/?action=browse&path=%2Ftrunk%2F

    I can't able to dowload via SVN commands. So I downloaded each files seperately. Please give me the solution to solve this.

    Thanks in advance.

    Regards,

    Salih

  • Hi Salih,

    You are using very old version of EZSDK. Lot of changes and fixes happned .

    so please download latest version of EZSDK from below link

    http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html

    for more inforamtion about release

    http://e2e.ti.com/support/embedded/linux/f/354/t/152046.aspx

    Regards

    Santosh Avati

  • for SVN checkout use

    For DM81xx platforms:

    $ svn checkout --username anonymous https://gstreamer.ti.com/svn/gstreamer_ti/trunk/gstreamer_ti_dm81xx

    For other platforms:

    $ svn checkout --username anonymous https://gstreamer.ti.com/svn/gstreamer_ti/trunk/gstreamer_ti

    if you are using proxy than that also need to set

    svn checkout --username anonymous --config-option servers:global:http-proxy-host=yourProxy https://gstreamer.ti.com/svn/gstreamer_ti/trunk/gstreamer_ti_dm81xx

    enter a blank password (just hit enter) when prompted.

    Regards
    Santosh Avati

  • Hi Santhosh 

    I dowloaded the lateset version what you told before(ti-ezsdk_dm816x-evm_5_03_01_15).

    But while compiling I am getting this below error.

    /home/guest/ti-ezsdk_dm816x-evm_5_03_01_15/linux-devkit/arm-none-linux-gnueabi/usr/lib/libasound.so: file not recognized: File truncated
    collect2: ld returned 1 exit status
    make[6]: *** [libgstalsa.la] Error 1
    
    
    Thanks in advance.
    
    
    Regards,
    Salih
  • Hi Salih,

    are compiling gstreamer or EZSDK?

    let me know which toolchain are you using  . extract target file system before compiling EZSDK by executing ./setup.sh present in EZSDK install directory.   

    Regards

    Santosh

  • Hi Santhosh,

    I am compiling the Gstreamer. But while running ./setup.sh I am getting this below error.

    This step will extract the target filesystem to /root/targetfs

    Note! This command requires you to have administrator priviliges (sudo access)
    on your host.
    Press return to continue

    gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now
    Failed setup, aborting..
    Failed setup, aborting..
    
    
    Please let me give the solution for the above error.
    
    
    Thanks in advance.
    Regards,
    Salih

     

  • Hi Salih,

    Look your EZSDK is not installed properly. we need around 10GB space.

    make sure the your EZSDK is downloaded completely . check md5sum provided in release page with your downloaded file.

    Regards

    Santosh Avati

     

  • Hi Santhosh,

    I had around 10GB space. So I installed that package successfully.

    But while compiling the EZSDK package I am getting the below error.

    e674.c", line 48787: warning: variable "iStat" was declared but never referenced
    abnormal termination of /home/guest/ti-ezsdk_dm816x-evm_5_03_01_15/dsp-devkit/cgt6x_7_3_1/bin/cmp6x
    make[2]: *** [/home/guest/ti-ezsdk_dm816x-evm_5_03_01_15/component-sources/omx_05_02_00_30/bin/dm81xx/obj/ti816x-evm/c6xdsp/debug/DspAppMain_pe674.oe674] Error 1
    make[2]: Leaving directory `/home/guest/ti-ezsdk_dm816x-evm_5_03_01_15/component-sources/omx_05_02_00_30/examples/ti/omx/demos/dm81xx'
    make[1]: *** [dm81xx] Error 2
    make[1]: Leaving directory `/home/guest/ti-ezsdk_dm816x-evm_5_03_01_15/component-sources/omx_05_02_00_30/src'
    make: *** [omx] Error 2
    
    
    Also while compiling the gstreamer_ti81xx I am getting the same error  still. The error is given below.
    
    
    Unknown C compiler arm-none-linux-gnueabi-gcc
    arm-none-linux-gnueabi-gcc is unable to create an executable file.
    C compiler test failed.

    If you think configure made a mistake, make sure you are using the latest
    version from SVN. If the latest version fails, report the problem to the
    ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.err" produced by configure as this will help
    solving the problem.
    config.status: error: Failed to configure embedded FFmpeg tree
    make[3]: *** [ffmpeg.configure] Error 1
    make[3]: Leaving directory `/home/guest/PRDVF/SVN/User_Area/Salih/gstreamer_ti_dm81xx/opensource_build'
    make[2]: *** [.plugins] Error 2
    make[2]: Leaving directory `/home/guest/PRDVF/SVN/User_Area/Salih/gstreamer_ti_dm81xx/opensource_build'
    make[1]: *** [opensource_build] Error 2
    
    
    Also I don't know where I have to the find md5sum. Please give me the solution for this error. 
    I am struggling with this gstreamer compiling for more than 20 days. 
    Please help me to solve this error.
    
    
    Thanks in advance.
    
    
    Regards,
    Salih
  • Hi Salih,

    Don't compile gstreamer before EZSDK.

    Logs are corp. please attach the logs in a text file.

    MD5sum is present on release page only. search for ms5sum.txt on page

    http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html.

    Can you attach yours Rules.make file present in EZSDK install directory

    Regard

    Santosh

  • Hi Santhosh,
    I have attached my log file of EZSDK package compilation and Rules.make
    Please find the  attached and let me give the solution for this 
    Thanks in advance.
    Regards,
    Salih
  • not found any attachment. please attach files

  • Hi Santhosh,

    Please find the attached

    0081.log_ti.txt

    Regards,

    Salih

  • Hi Santhosh,

    Please find the attached Rule.make file.

    8750.Rules.make.txt

    Regards,

    Salih

  • not finding any error in attached log files. please rebuild and send complete error log. Execute below commands in EZSDK directory

    script build_log.txt (enbales log file)

    make clean (to clean previous build)

    make all (it build all)

    exit ( exit from script command)

    Now attach  build_log.txt present in same directory

    Regards

    Santosh

  • Hi Santhosh,

    Please find the attached log file. I did like whatever you said before. 

    Thanks in advance.

    Regards,

    Salih

    8233.build_log.txt

  • Hi Santhosh,

    I compiled the Gstreamer sucessfully. I am very happy to say you. But I don't how to run the video in my target. Which commands I need to give if I want to run video in my LCD or HDMI. Please help me to run this. I tried with some commands like given below:

    gst-launch -v filesrc location=seas.mov ! qtdemux name=demux demux.audio_00 ! queue ! faad ! alsasink demux.video_00 ! queue !  
    nal2bytestream_h264  !  omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60  ! gstperf ! omx_videosink
    
    
    But I am getting below error message.
    
    
    ERROR: pipeline could not be constructed: no element "filesrc".
    
    
    how can I run this. Please suggest me any solution.
    
    
    Thanks in advance.
    
    
    Regards,
    Salih
  • Hi Salih,

    if your gstreamer installed path is /opt/gstreamer

    execute below commands on target  before playback


    /etc/init.d/matrix-gui-e stop

    amixer set PCM 127 


    export GST_REGISTRY=/tmp/gst_registry.bin
    export LD_LIBRARY_PATH=/opt/gstreamer/lib
    export GST_PLUGIN_PATH=/opt/gstreamer/lib/gstreamer-0.10
    export PATH=/opt/gstreamer/bin:$PATH
    export GST_PLUGIN_SCANNER=/opt/gstreamer/libexec/gstreamer-0.10/gst-plugin-scanner
    cd /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    insmod ti81xxvo.ko

    if your installed path other that /opt/gstreamer, than replace with your installed path

    Regards

    Santosh

  • Hi santhosh,

    But I am not getting this binary any where gst_registry.bin.

    I don't why this binary is not creating.

    I set the below paths in my Makefile.common file as given below:

    TARGET_ROOT_DIR      = /home/ansaris/targetfs
    GSTREAMER_DIR = /usr
    GST_TI_PLATFORM = dm816x
    EZSDK_INSTALL_DIR = /home/ansaris/ti-ezsdk_dm816x-evm_5_03_01_15
    
    
    But I don't know why this gst_registry.bin is not creating. Please suggest me any solution for this.
    
    
    Thanks in advance,
    
    
    Regards,
    Salih
  • Hi Salih

    Its ok if you don't have it gst_registry.bin.

    from your setting gstreamer installed directory is /usr. so please export below PATH in target.

    execute below command on target for /usr

    /etc/init.d/matrix-gui-e stop
    amixer set PCM 127
    export GST_REGISTRY=/tmp/gst_registry.bin
    export LD_LIBRARY_PATH=/usr/lib
    export GST_PLUGIN_PATH=/usr/lib/gstreamer-0.10
    export PATH=/usr/bin:$PATH
    export GST_PLUGIN_SCANNER=/usr/libexec/gstreamer-0.10/gst-plugin-scanner
    cd /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/
    insmod ti81xxvo.ko

    Regards

    santosh

  • 
    
    Hi Santhosh,
    
    
    While executing below command, I am getting below error. I don't know why I am getting this. Please suggest the solution for this.
    
    
    root@dm816x-evm:~# amixer set PCM 127
    amixer: Mixer attach default error: No such file or directory
    
    
    I installed the module after that how can I run the video using gstreamer. Which commands I should use. Still I am struggling. Please give the solution.
    
    
    Thanks in advance,
    Regards,
    Salih