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.

TDA2EVM5777: Required vision sdk version with sys/bios version 6.41

Part Number: TDA2EVM5777
Other Parts Discussed in Thread: SYSBIOS, TDA2

Hi ,

Presently iam using the TDA2x board and vision sdk 2.10 version with sys/bios version 6.46.

and iam running opencv example in the above sdk .

My requirement is to run the opencv with the olderversion of sys/bios version 6.41

For the above requirement which version vision sdk need to be use for sys/bios version 6.41 and provide the vision datasheet for the version.

  • hi ,

    Need to download vision sdk 2.02.00.00 download which is having sys/bios version 6.41

  • Hi Venkata,

    Vision SDK 2.07 uses bios 6.41 (ver. 2.08 uses uses higher version of bios: 6.42).

    Please note that it is quite old version of VisionSDK and it is recommended to use more resent version of the SDK which have more features and bug fixes.

    Regards,
    Yordan
  • Hi,

    you can download VisionSDK versions 2.xx from CDDS (ver 3.00 is available publicly at ti.com).
    You need to contact your local ti FAE to get access to CDDS if you do not have it.

    Regards,
    Yordan
  • hi yordan,

    Thanks for the input i want to know whether the opencv of vision sdk has any dependency of sys/bios version .
  • Hi Venkata,

    I have forwarded your question to OpenCV expert to comment.

    Regards,
    Yordan
  • Hi jordan,

    Thanks for your feed back can u suggest some opencv expert at earliest .

    MY Ideas is:

    To build the opencv library for the vision sdk 2.07 of sysbios verison 6.41.I want to know how to move forward in doing the opencv task for vision sdk 2.07. Can you please provide some doucment or support how to build opencv for the vision sdk 2.07.
  • Hi Venkata,
    OpenCV of Vision SDK depends on SysBios version 6.45.01.29 (build failure observed with other versions)

    Regards
    Surya
  • hi suryamani,

    Can you explian how exactly is it related to the sysbios and whether you have tried to build with the olderversion of sysbios 6.41 with vision sdk 2.07 .can you let me know the steps to build.
  • Hi Venkata,
    OpenCV supported on Vision SDK from 2.9.1 onwards,
    That time We tried with different component versions, We are getting some random compilation issues
    Below are the list of components it depends upon
    GCC 4.9
    BIOS 6.45.01.29
    XDC in vision sdk ti_components
    FATLIB from starterware in vision sdk ti_components
    Starterware in vision sdk ti_components
    Vision SDK itself
    OpenCL (part of VSDK ti_components)
    DSP CG tools

    We never tried with vision SDK 2.7

    Building OpenCV part of Vision SDK
    Enable Flag ENABLE_OPENCV=yes & build

    Building OpenCV without Vision SDK
    Follow the steps shared in doc in below path
    ti_components\algorthim_codecs\opencv\opencv-3.1.0\docs

    Regards
    Surya
  • hi suyamani,
    I have downloaded the vision_sdk 2.10 and enable the opencv and try to build for the windows version but iam getting the build errors.I have applied the patches also released by TI and try to build but still i have opencv errors like.


    Refrence errors:

    bs_bios/libopencv_core.a(ocl.cpp.obj): In function `cv::ocl::OpenCLAllocator::do
    wnload(cv::UMatData*, void*, int, unsigned int const*, unsigned int const*, unsi
    gned int const*, unsigned int const*) const':
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S
    6_[_ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_]+0x21c):
    undefined reference to `clEnqueueReadBufferRect'
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S
    6_[_ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_]+0x380):
    undefined reference to `clEnqueueReadBuffer'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libopencv_core.a(ocl.cpp.obj): In function `cv::ocl::OpenCLAllocator::un
    map(cv::UMatData*) const':
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15Op
    enCLAllocator5unmapEPNS_8UMatDataE]+0xd8): undefined reference to `clEnqueueUnma
    pMemObject'
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15Op
    enCLAllocator5unmapEPNS_8UMatDataE]+0x1c4): undefined reference to `clEnqueueWri
    teBuffer'
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15Op
    enCLAllocator5unmapEPNS_8UMatDataE]+0x2b8): undefined reference to `clFinish'
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15Op
    enCLAllocator5unmapEPNS_8UMatDataE]+0x348): undefined reference to `clFinish'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libopencv_core.a(ocl.cpp.obj): In function `cv::ocl::OpenCLAllocator::ma
    p(cv::UMatData*, int) const':
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi[_ZNK2cv3ocl15Ope
    nCLAllocator3mapEPNS_8UMatDataEi]+0xc8): undefined reference to `clEnqueueReadBu
    ffer'
    ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi[_ZNK2cv3ocl15Ope
    nCLAllocator3mapEPNS_8UMatDataEi]+0x218): undefined reference to `clEnqueueMapBu
    ffer'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libopencv_core.a(ocl.cpp.obj): In function `cv::ocl::Program::create(cv:
    :ocl::ProgramBinary const&, cv::String&)':
    ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0x13
    c): undefined reference to `clCreateProgramWithBinary'
    ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0x15
    c): undefined reference to `clBuildProgram'
    ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0x19
    0): undefined reference to `clReleaseProgram'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_fflush':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:25: undefin
    ed reference to `File_flush'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_fputs':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:72: undefin
    ed reference to `File_puts'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_printf':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:81: undefin
    ed reference to `File_vprintf'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_fprintf':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:90: undefin
    ed reference to `File_vprintf'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_ftell':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:103: undefi
    ned reference to `File_tell'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_fseek':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:112: undefi
    ned reference to `File_tell'
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:118: undefi
    ned reference to `File_size'
    C:/VISION_SDK_02_10_00_00/ti_components/algorithms_codecs/opencv/opencv-3.1.0/li
    bs_bios/libgenericio.a(generic_io.c.obj): In function `generic_frewind':
    /user/a0132418/ti/opencv/tiopencv/modules/genericio/src/generic_io.c:135: undefi
    ned reference to `File_rewind'
    gmake[6]: *** [C:/VISION_SDK_02_10_00_00/vision_sdk/binaries/vision_sdk/bin/tda2
    xx-evm/vision_sdk_a15_0_release.xa15fg] Error 1
    gmake[5]: *** [a15_0] Error 2
    gmake[4]: *** [apps_a15] Error 2
    gmake[3]: *** [apps] Error 2
    gmake[2]: *** [apps] Error 2
    gmake[1]: *** [vision_sdk_apps] Error 2
    gmake: *** [vision_sdk] Error 2


    Please let meknow any windows patch need to apply for build the opencv with windows platform.
  • Hi Venkata,

    I am installing vision_sdk_2_10 windows installer, will update you shortly

    I already have vision_sdk_2_10 linux installer, I verified with that it is able to build without any issues (after applying shared opencv patches)

    Meanwhile Could you please run "gmake config" & share ?

    Regards

    Surya

  • hi surya ,

    Please find my gmake config

    C:\VISION_SDK_02_10_00_00\vision_sdk>gmake config
    #
    # Platform config,
    # VSDK_BOARD_TYPE=TDA2XX_EVM [options: TDA2XX_EVM TDA3XX_EVM TDA2XX_MC TDA2EX_EV
    M]
    # PLATFORM=tda2xx-evm
    # DDR_MEM=DDR_MEM_512M [options: DDR_MEM_512M]
    # DUAL_A15_SMP_BIOS=no [options: yes no]
    #
    # Build config,
    # IPU_PRIMARY_CORE=ipu1_0 [options: ipu1_0 ipu2]
    # IPU_SECONDARY_CORE=ipu2 [options: ipu1_0 ipu2]
    # BUILD_OS=Windows_NT [options: Windows_NT Linux]
    # A15_TARGET_OS=Bios [options: Bios Linux]
    # PROFILE=release [options: debug release]
    # BUILD_DEPENDANCY_ALWAYS=no
    # BUILD_ALGORITHMS=no
    #
    # CPU config,
    # PROC_IPU1_0_INCLUDE=yes
    # PROC_IPU1_1_INCLUDE=yes
    # PROC_IPU2_INCLUDE=no
    # PROC_DSP1_INCLUDE=yes
    # PROC_DSP2_INCLUDE=yes
    # PROC_EVE1_INCLUDE=yes
    # PROC_EVE2_INCLUDE=yes
    # PROC_EVE3_INCLUDE=no
    # PROC_EVE4_INCLUDE=no
    # PROC_A15_0_INCLUDE=yes
    #
    # Safety Module config,
    # ALG_CRC_INCLUDE=no
    # RTI_INCLUDE=no
    # ECC_FFI_INCLUDE=no
    # DCC_ESM_INCLUDE=no
    #
    # Video Module config,
    # IVAHD_INCLUDE=yes
    # VPE_INCLUDE=yes
    # ISS_INCLUDE=no
    # ISS_ENABLE_DEBUG_TAPS=no
    # DSS_INCLUDE=yes
    #
    # Other Module config,
    # NDK_PROC_TO_USE=a15_0
    # AVBRX_INCLUDE=yes
    # FATFS_PROC_TO_USE=ipu1_0
    # DCAN_INCLUDE=no
    # HCF_INCLUDE=no
    # RADAR_INCLUDE=no
    # CPU_IDLE_ENABLED=yes
    # FAST_BOOT_INCLUDE=no
    # ALG_SV_INCLUDE=yes
    # DATA_VIS_INCLUDE=no
    # ENABLE_OPENCV=yes
    # OPENCL_INCLUDE=no
    # SRV_FAST_BOOT_INCLUDE=no
    # LENS_MODULE=imi
  • Hi Venkata,

    Installed vision sdk 2.10 release on windows machine & able to build binaries with config shared by you

    Could you please  run "where gmake" & confirm gmake is picked from xdc pkg shared with Vision SDK 2.10 release ?

    If not, set path in cmd prompt where you building vision sdk (check cmd in TDA2xx UG)

    Regards

    Surya

  • hi surya,

    When i build without opencv enable in the windows platform i not getting any issues.

    But iam getting issues when iam building with opencv enabled in the vision sdk 2.10
  • That is strange

    Anyway I am attaching OpenCV patch shared with Vision SDK 2.10

    Please compare & check if any differences with whatever you already applied?

    openCV.zip

  • Hi ,

    Thanks for your patch.

    I need help to port the opencv to vision sdk 2.7 by referring vision sdk 2.10 for windows version whether it is possible are it has a dependency of bios ,startware,bsp platforms
  • Hi Venkata,
    We only verified with bios 6.45.01.29, please check with that first on vision sdk 2.7
    & from staterware , bsp side no such dependency
  • hi surymanani,

    I trying to build the opencv on the a15 platform as per the doucment given the path

    C:\VISION_SDK_02_12_00_00\ti_components\algorithms_codecs\opencv\opencv-3.1.0\docs

    Documentname:

    OpenCV_cross_compile_Steps_for_A15_BIOS.pdf

    I facing the building issues and getting errors at the pthread in the system.cpp dependency.

    Can you share the cmake file for the generic to build on a15 platform.

  • PFA cmake file

    Not allowed to upload ".cmake" file so renamed to ".txt", Please rename back to ".cmake"

    arm-gnueabi_baremetal.toolchain.txt
    include(CMakeForceCompiler)
    
    set(CMAKE_SYSTEM_NAME Generic)
    set(CMAKE_SYSTEM_VERSION 1)
    set(CMAKE_SYSTEM_PROCESSOR arm)
    
    set(CMAKE_SIZEOF_VOID_P 32)
    set(GENERIC 1)
    set(TI_TDA2XX_ARM_A15 1)
    
    set(GCC_COMPILER_VERSION "4.7" CACHE STRING "GCC Compiler version")
    
    set(FLOAT_ABI_SUFFIX "")
    
    set(ARM_NONE_SYSROOT /opt/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4${FLOAT_ABI_SUFFIX} CACHE PATH "ARM cross compilation system root")
    
    set(CMAKE_LINKER "${ARM_NONE_SYSROOT}/bin/arm-none-eabi-ld" CACHE PATH "linker")
    set(CMAKE_AR "${ARM_NONE_SYSROOT}/bin/arm-none-eabi-ar" CACHE PATH "archiver")
    #set(CMAKE_C_COMPILER "${ARM_NONE_SYSROOT}/bin/arm-none-eabi-gcc" CACHE PATH "C compiler")
    #set(CMAKE_CXX_COMPILER "${ARM_NONE_SYSROOT}/bin/arm-none-eabi-g++" CACHE PATH "C++ compiler")
    
    cmake_force_c_compiler(${ARM_NONE_SYSROOT}/bin/arm-none-eabi-gcc GNU)
    cmake_force_cxx_compiler(${ARM_NONE_SYSROOT}/bin/arm-none-eabi-g++ GNU)
    
    ##########################################################################
    #                   Cmake C and CXX flags                                #
    ##########################################################################
    
    set(CMAKE_CXX_FLAGS           "-DGENERIC_ARM -DGENERIC -D_POSIX_THREADS -O3"                    CACHE STRING "c++ flags")
    set(CMAKE_C_FLAGS             "-DGENERIC_ARM -DGENERIC -D_POSIX_THREADS -O3"                    CACHE STRING "c flags")
    
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=cortex-a15 -mtune=cortex-a15 -mfpu=neon -mfloat-abi=hard -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi")
    set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -mcpu=cortex-a15 -mtune=cortex-a15 -mfpu=neon -mfloat-abi=hard -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi")
    
    ##########################################################################
    #                       Cmake linker flags                               #
    ##########################################################################
    
    set(CMAKE_SHARED_LINKER_FLAGS "--specs=rdimon.specs -lgcc -lc -lm -lgloss-linux -lrdimon -lnosys"                    CACHE STRING "shared linker flags")
    set(CMAKE_MODULE_LINKER_FLAGS "--specs=rdimon.specs -lgcc -lc -lm -lgloss-linux -lrdimon  -lnosys"                    CACHE STRING "module linker flags")
    set(CMAKE_EXE_LINKER_FLAGS    "--specs=rdimon.specs -lgcc -lc -lm -lgloss-linux -lrdimon  -lnosys -Wl,-z,nocopyreloc"  CACHE STRING "executable linker flags")
    
    set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_SHARED_LINKER_FLAGS}")
    set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_MODULE_LINKER_FLAGS}")
    set(CMAKE_EXE_LINKER_FLAGS    "-Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_EXE_LINKER_FLAGS}")
    
    
    if(USE_NEON)
      message(WARNING "You use obsolete variable USE_NEON to enable NEON instruction set. Use -DENABLE_NEON=ON instead." )
      set(ENABLE_NEON TRUE)
    elseif(USE_VFPV3)
      message(WARNING "You use obsolete variable USE_VFPV3 to enable VFPV3 instruction set. Use -DENABLE_VFPV3=ON instead." )
      set(ENABLE_VFPV3 TRUE)
    endif()
    
    set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${ARM_NONE_SYSROOT})
    
    if(EXISTS ${CUDA_TOOLKIT_ROOT_DIR})
        set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${CUDA_TOOLKIT_ROOT_DIR})
    endif()
    
    set( CMAKE_SKIP_RPATH TRUE CACHE BOOL "If set, runtime paths are not added when using shared libraries." )
    set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
    
    # macro to find programs on the host OS
    macro( find_host_program )
     set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
     set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER )
     set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER )
     if( CMAKE_HOST_WIN32 )
      SET( WIN32 1 )
      SET( UNIX )
     elseif( CMAKE_HOST_APPLE )
      SET( APPLE 1 )
      SET( UNIX )
     endif()
     find_program( ${ARGN} )
     SET( WIN32 )
     SET( APPLE )
     SET( UNIX 1 )
     set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
     set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
     set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
    endmacro()
    
    # macro to find packages on the host OS
    macro( find_host_package )
     set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
     set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER )
     set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER )
     if( CMAKE_HOST_WIN32 )
      SET( WIN32 1 )
      SET( UNIX )
     elseif( CMAKE_HOST_APPLE )
      SET( APPLE 1 )
      SET( UNIX )
     endif()
     find_package( ${ARGN} )
     SET( WIN32 )
     SET( APPLE )
     SET( UNIX 1 )
     set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
     set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
     set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
    endmacro()
    

  • hi surya,

    I facing building issue in the cmake with the cmake you provided.

    I made minor changes to the cmake shared by you and please refer the errors and let me know the changes

    cmake below changes i did.

    set(CMAKE_CXX_FLAGS "-DGENERIC_ARM -DGENERIC -D_POSIX_THREADS -O3 -fpermissive -Wwrite-strings -w" CACHE STRING "c++ flags")

    set(CMAKE_C_FLAGS "-DGENERIC_ARM -DGENERIC -D_POSIX_THREADS -O3 -fpermissive -Wwrite-strings -w" CACHE STRING "c flags")

    Please find the cmake errors while building

    [ 5%] Built target zlib

    [ 10%] Built target libpng
    [ 10%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_decomp.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/out.cpp.obj
    [ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/dxt.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.obj
    [ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.obj
    [ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.obj
    In file included from /home/valeo/ti/opencv/modules/core/src/system.cpp:514:0:
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc:6:1: error: missing terminating " character
    " Host: sh: 0: getcwd() failed: No such file or directory
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc:8:1: error: too many decimal points in number
    4.4.0-31-generic sh: 0: getcwd() failed: No such file or directory
    ^~~~~
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc:9:7: error: stray '\' in program
    x86_64\n"
    ^
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc:9:9: error: missing terminating " character
    x86_64\n"
    ^
    [ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opengl.cpp.obj
    [ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.obj
    [ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.obj
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc: In function 'const cv::String& cv::getBuildInformation()':
    /home/valeo/ti/opencv/build_arm_bios/modules/core/version_string.inc:7:1: error: expected ',' or ';' before 'Linux'
    Linux sh: 0: getcwd() failed: No such file or directory
    ^~~~~
    /home/valeo/ti/opencv/modules/core/src/system.cpp: In constructor 'cv::Mutex::Impl::Impl()':
    /home/valeo/ti/opencv/modules/core/src/system.cpp:871:42: error: 'PTHREAD_MUTEX_RECURSIVE' was not declared in this scope
    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
    ^~~~~~~~~~~~~~~~~~~~~~~
    /home/valeo/ti/opencv/modules/core/src/system.cpp:871:65: error: 'pthread_mutexattr_settype' was not declared in this scope
    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
    ^
    make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.obj] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2

    Please have a look and update the changes

  • hi surya,

    Any update on the cmake file and the errors.

  • hi suryamani jena,

    When trying to build the opencv with cmake i am getting pthread issues as i referred the arm tool chain of ccs7 they is no library for pthread.so it is showing compiling problem in doing the opencv cross build for arm a15 paltform .

    Please help me out for building the openv 3.1.0 version

    https://git.ti.com/opencv/tiopencv

    opencv downloaded from the above link and 

    ccs7v arm toolchain used and cmake file provided.

    The errors facing are

    pthread issue due to libpthread is not availbale in the library folder of arm tool chain of ccs7

    dirent.h 

    Please try to build the opencv with arm a15 and provide some solution .