[英]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. 我是OpenVX的新手,正在尝试安装教程包进行学习。 I follow the instruction in Khronos OpenVX Tutorial Material to build it on my Ubuntu 16.4, the process is as followed.
我按照Khronos OpenVX教程资料中的说明在我的Ubuntu 16.4上进行构建,过程如下。
1----- Download the tutorial package at the above link and extract it to ~/openvx_tutorial directory 1 -----在上面的链接中下载教程包,并将其解压缩到〜/ openvx_tutorial目录中
2----- Download and install OpenCV 3.1 library: successful. 2 -----下载并安装OpenCV 3.1库:成功。 The output files are placed at ~/opencv/build .
输出文件位于〜/ opencv / build 。
3----- Install CMAKE: successful 3 -----安装CMAKE:成功
4----- Download and install Open-source OpenVX from AMD: successful 4 -----从AMD下载并安装开源OpenVX:成功
4.1. 4.1。 Download the open source at Open-source OpenVX on GitHub and extract it to ~/openvx_tutorial/tutorial_exercises/amdovx-core directory.
在GitHub上的Open-source OpenVX中下载开源,并将其解压缩到〜/ openvx_tutorial / tutorial_exercises / amdovx-core目录。
4.2. 4.2。 Compiling
编译中
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 -----下载并安装Khronos OpenVX资源
5.1. 5.1。 Download the OpenVX 1.1 Sample Implementation at Khronos OpenVX Resources and extract it to ~openvx_sample
从Khronos OpenVX资源下载OpenVX 1.1示例实现,并将其解压缩到〜openvx_sample
5.2. 5.2。 Installing
正在安装
cd ~/openvx_sample
make
make install
The output files are at ~/openvx_sample/out/LINUX/x86_64/release . 输出文件位于〜/ openvx_sample / out / LINUX / x86_64 / release中 。 Then the following test commands are successful
然后以下测试命令成功
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
cd ~/openvx_tutorial
mkdir build-open-source
cd build-open-source
cmake ../tutorial_exercises
make
The the errors happen, reporting that the variable type vx_tensor and the value VX_TYPE_TENSOR are not declared. 发生错误,报告未声明变量类型vx_tensor和值VX_TYPE_TENSOR 。
I have also tried to build the package with QT but the same errors happened. 我也尝试过使用QT构建软件包,但是发生了同样的错误。 Is there anyone encountered these errors before?
有人遇到过这些错误吗? How can I fix it?
我该如何解决?
Thank you. 谢谢。
you have to use the khronos headers v1.2 您必须使用khronos标头v1.2
Copy this headers into your tutorial_exercises/include/VX
and rebuild all. 将此标头复制到您的
tutorial_exercises/include/VX
然后重新生成所有标头。
PS. PS。 some variables are undefined eg.
一些变量是不确定的,例如。
VX_TENSOR_FIXED_POINT_POS
& VX_TENSOR_NUM_OF_DIMS
this should be VX_TENSOR_FIXED_POINT_POSITION
& VX_TENSOR_NUMBER_OF_DIMS
respectively. VX_TENSOR_FIXED_POINT_POS
和VX_TENSOR_NUM_OF_DIMS
,分别应为VX_TENSOR_FIXED_POINT_POSITION
和VX_TENSOR_NUMBER_OF_DIMS
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.