Results 1 to 3 of 3

Thread: Error: vx_tensor and VX_TYPE_TENSOR undeclared when installing OPENVX tuorial package

  1. #1
    Junior Member
    Join Date
    Sep 2017
    Posts
    4

    Error: vx_tensor and VX_TYPE_TENSOR undeclared when installing OPENVX tuorial package

    I am a newbie of OpenVX and am trying to install the tutorial package for learning. I follow the instruction in Khronos OpenVX Tutorial Material to build it on my Ubuntu 16.4, the process is as followed.

    1----- Download the tutorial package at https://github.com/rgiduthuri/openvx_tutorial and extract it to ~/openvx_tutorial directory


    2----- Download and install OpenCV 3.1 library: successful. The output files are placed at ~/opencv/build.


    3----- Install CMAKE: successful

    4----- Download and install Open-source OpenVX from AMD: no error

    4.1. Download the open source at https://github.com/GPUOpen-Professio...es/amdovx-core and extract it to ~/openvx_tutorial/tutorial_exercises/amdovx-core directory.

    4.2. Compiling: no error

    Code :
    cd ~/openvx_tutorial/tutorial_exercises/amdovx-core
    cmake ../amdovx-core/ -DOpenCV_DIR="~/opencv/build/ -DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=TRUE
    make


    5----- Download and Install Khronos OpenVX Resources

    5.1. Download the OpenVX 1.1 Sample Implementation at https://www.khronos.org/registry/Ope...le_1.1.tar.bz2 and extract it to ~openvx_sample

    5.2. Installing

    Code :
    cd ~/openvx_sample
    make
    make install

    The output files are at ~/openvx_sample/out/LINUX/x86_64/release. Then the following test commands are successful.

    Code :
    LD_LIBRARY_PATH="~/openvx_sample/out/LINUX/x86_64/release"
    cd raw
    ../out/LINUX/x86_64/release/vx_test
    ../out/LINUX/x86_64/release/vx_query
    ../out/LINUX/x86_64/release/vx_example


    6----- Compile the tutorial package
    Code :
    cd ~/openvx_tutorial
    mkdir build-open-source
    cd build-open-source
    cmake ../tutorial_exercises
    make

    Then the errors happen, reporting that the variable type vx_tensor and the value VX_TYPE_TENSOR are not declared in file "amdovx-core/openvx/include/VX/vx_khr_nn.h" and "amdovx-core/openvx/include/vx_ext_amd.h" respectively.
    I have also tried to build the package with QT but the same errors happened. Is there anyone encountered these errors before? How can I fix it?

    Thanks in advance.
    Last edited by Dan Do; 09-19-2017 at 03:58 AM.

  2. #2
    Hi Dan, Thanks for reporting the problem. The errors were due to header files getting out of sync.
    I updated the header files in openvx_tutorial repo from Khronos OpenVX registry and it fixed the problem.
    If you find any other issue, please file in issue on the github repo.

    Radha

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    4
    Thank Radha,

    Let me try it again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean