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.

Error while building OMTB package

Hi, We are trying enhance OMTB for other video codec as well. As first step we tried to build OMTB source present as part of EZSDK 05.05.02.00 as it is.

But we some header files are missing in the package and we are getting following error:

In file included from ./inc/omtbCommon.h:97,

                 from ./../../core/classes/adec/src/omtbAdecApi.c:59:

./../../core/classes/arecord/inc/omtbAlsaRecord.h:54:38: error: alsa/asoundlib.h: No such file or directory

In file included from ./inc/omtbCommon.h:97,

                 from ./../../core/classes/adec/src/omtbAdecApi.c:59:

./../../core/classes/arecord/inc/omtbAlsaRecord.h:103: error: expected specifier-qualifier-list before 'snd_pcm_t'

In file included from ./inc/omtbCommon.h:98,

                 from ./../../core/classes/adec/src/omtbAdecApi.c:59:

./../../core/classes/aplay/inc/omtbAlsaPlay.h:46:28: error: alsa/asoundlib.h: No such file or directory

In file included from ./inc/omtbCommon.h:98,

                 from ./../../core/classes/adec/src/omtbAdecApi.c:59:

./../../core/classes/aplay/inc/omtbAlsaPlay.h:101: error: expected specifier-qualifier-list before 'snd_pcm_t'

./../../core/classes/adec/src/omtbAdecApi.c: In function 'ADEC_FuncAdec':

./../../core/classes/adec/src/omtbAdecApi.c:376: warning: implicit declaration of function 'OMTB_GetHandle'

make[1]: *** [/u/users/EZSDK/example-applications/omtb_01_00_01_07/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbAdecApi.ov5T] Error 1

make[1]: Leaving directory `/u/users/EZSDK/example-applications/omtb_01_00_01_07/packages/ti/sdo/omtb/dm81xxbm/cortexA8'

make: *** [dm81xxbm] Error 2

Basically ALSA related header and library files are missing. 

Please provide these files and let me know where to place them as well.

  • Hello,

    Shashikiran Bhagavath said:
    /core/classes/arecord/inc/omtbAlsaRecord.h:54:38: error: alsa/asoundlib.h: No such file or directory

    Check here:

    /ti-ezsdk_dm814x-evm_5_05_02_00/example-applications/omtb_01_00_01_07/packages/ti/sdo/omtb/core/classes/arecord/inc

    Also check here:

    ti-ezsdk_dm814x-evm_5_05_02_00/example-applications/omtb_01_00_01_07

    OMTB_01_00_01_07_ReleaseNotes.pdf

    Chapter : Steps to build the executable

    Best Regards,

    Margarita

  • Hi Margarita,

    /ti-ezsdk_dm814x-evm_5_05_02_00/example-applications/omtb_01_00_01_07/packages/ti/sdo/omtb/core/classes/arecord/inc/omtbAlsaRecord.h file is giving error.

    It is not able to find alsa/asoundlib.h file.

    Can you please provide us asoundlib.h file and also tell us the path where to put this file.

    And we are using the same procdure to build the executable.

     

    Warm Regards,

    Tejaswini

     

  • Hello,

    This file asoundlib.h should be in:

    ti-ezsdk_dm814x-evm_5_05_02_00/linux-devkit/arm-none-linux-gnueabi/usr/include/alsa

    Best Regards,

    Margarita

  • Thanks Margarita

    We are able to build given OMTB package present in  EZSDK 5.05.02.00

    But while adding support to other video decoder, we are facing linking error:

    ----

    example-applications/omtb/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbCortexA8AppInit.ov5T:(.data.rel+0x188): undefined reference to `VC1DEC_SetTemplateDefVal'
    example-applications/omtb/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbCortexA8AppInit.ov5T:(.data.rel+0x7c4): undefined reference to `cmdEntryVC1decConfig'
    example-applications/omtb/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbCortexA8AppInit.ov5T:(.data.rel+0x83c): undefined reference to `cmdEntryOmtbSendCommandMarkVC1dec'
    example-applications/omtb/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbCortexA8AppInit.ov5T:(.data.rel+0x878): undefined reference to `cmdEntryFuncVC1dec'
    example-applications/omtb/bin/dm81xxbm/obj/ti814x-evm/a8host/debug/omtbCortexA8Common.ov5T: In function `OMTB_GetClassInitFuncPtr':
    example-applications/omtb/packages/ti/sdo/omtb/dm81xxbm/cortexA8/./src/omtbCortexA8Common.c:648: undefined reference to `VC1DEC_ClassInit'
    collect2: ld returned 1 exit status
    make[1]: *** [/example-applications/omtb/bin/dm81xxbm/bin/ti814x-evm/omtb_dm81xxbm_a8host.xv5T] Error 1
    make[1]: Leaving directory `/u/users/tejaswini/Desay_29_july/dst_sdk/example-applications/omtb/packages/ti/sdo/omtb/dm81xxbm/cortexA8'
    make: *** [dm81xxbm] Error 2

    ----

    Functionality is added similar to H.264

    Please let me know how to resolve this. (Is more changes required at build system level)

    If you have any guideline document to add new component to OMTB, please share.

    Regards,

    Shashikiran

  • Hello,

    Shashikiran Bhagavath said:

    If you have any guideline document to add new component to OMTB, please share.

    You could check here:

    ti-ezsdk_dm814x-evm_5_05_02_00/example-applications/omtb_01_00_01_07/packages/ti/sdo/omtb/docs

    OMTB_01_00_01_07_UserGuide.pdf

    Best Regards,

    Margarita

  • Hi Margarita,

    We are facing issue while running omtb script.

    Below are the console logs.

    OMTB> omx api init
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec framerate 60
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec numinbuf 4
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec inbufsize 8294400
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec frame_width 320
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec frame_height 240
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec numoutbuf 8
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec outbufsize 19922944
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec inbuf allocate
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec outbuf allocate
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec data_opmode file
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec infile /media/sda1/streams/foreman.264
    OK
    OMTB-    
    OMTB> omx setp 0 h264vdec outfile /media/sda1/streams/foreman.yuv
    OK
    OMTB-    
    OMTB> omx api gethandle h264vdec 0 0
    OMTB-     

    OMTB-h264vdec Instance #: 0

    OK
    OMTB-    
    OMTB> omx api sendcommand port h264vdec 0 enable 0
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx api sendcommand port h264vdec 0 waitforsem 0
    OMTB-In OMTB_ClientEventHandler: OMX_CommandPortEnable on 0 port
    OMTB-OMTB_OmxSendCommandPort: Obtained port enable/disable command completio
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx api sendcommand port h264vdec 0 enable 1
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx api sendcommand port h264vdec 0 waitforsem 1
    OMTB-In OMTB_ClientEventHandler: OMX_CommandPortEnable on 1 port
    OMTB-OMTB_OmxSendCommandPort: Obtained port enable/disable command completio
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx api sendcommand state h264vdec 0 idle
    OMTB-OMX_ErrorNone
    OK
    OMTB-    
    OMTB> omx api sendcommand state h264vdec 0 waitforsem
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 80001000
    OMTB-FAIL: OMX_ErrorInsufficientResources
    OK
    OMTB-    
    OMTB> sleep 500
    OMTB-OMTB script reading task sleeping for 500 msecs
    OMTB-OMTB script reading task resumed from sleep
    OMTB-    
    OMTB> omx api sendcommand state h264vdec 0 exec
    OMTB-FAIL: OMX_ErrorIncorrectStateTransition
    OMTB-    
    OMTB> omx api sendcommand state h264vdec 0 waitforsem
    OMTB-FAIL: OMX_ErrorBadParameter
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-In OMTB_ClientEventHandler: OMX_EventError - 8000101c
    OMTB-FAIL: OMX_ErrorPortUnpopulated
    OMTB-Error in Buffer allocation for i/p port
    OMTB-FAIL: OMX_ErrorBadParameter
    OK
    OMTB-    
    OMTB> sleep 120000
    OMTB-OMTB script reading task sleeping for 120000 msecs

    Please let us know what might be the reason.

    Also lets us know how to enable PRINT_DEBUG_MESSAGE.

    Thanks,

    Tejaswini