版主: 51FPGA

分享到:
共1条 1/1 1   

关于Ubuntu虚拟机下SDSoC通过non-reVISION配置OpenCV的问题

    [您是本帖的第83位阅读者]
seulsj
我是GG
高级会员

最后登陆时间:2018-10-15 12:41:42

直达楼层
1# 发表于 2018-10-15 12:37:03

您好,最近在Ubuntu下配置xfopencv遇到了一些问题,希望能得到解答。

操作系统:主机为Windows10,虚拟机为ubuntu16.04.3 LTS 64位

软件平台:SDSoC 2016.4
硬件平台:ZYBO-Z7
按照Xilinx官方文档ug1233配置出现以下问题:

1、non-reVISION方式配置需要手动导入opencv的lib文件夹,这一步是要先安装OpenCV库,导入安装路径下的lib库还是直接可以使用SDSoC下载路径下HLS文件夹提供的库?

2、在SDSoC IDE上对工程指定xfopencv的include文件夹后project 上没有显示出此文件夹,进而在导入example project后出现unsolved include。比如我导入的是xfopencv/example/accumulate工程,工程名为test,build后报错为:
/xxx/test/src/accumulate/xf_accumulate_config.h:37:10: fatal error: 'common/xf_common.h' file not found
#include "common/xf_common.h"
         ^
ERROR: [SDSoC 0-0] clang exited with non-zero code processing /xxx/test/src/accumulate/xf_accumulate_image_accel.cpp
sds++ log file saved as ./test/Release/_sds/reports/sds_xf_accumulate_image_accel.log
ERROR: [SDSoC 0-0] Build failed
make: *** [src/accumulate/xf_accumulate_image_accel.o] Error 1


src/accumulate/subdir.mk:21: recipe for target 'src/accumulate/xf_accumulate_image_accel.o' failed

3、我选择了一个walk around的方式,在src文件夹下添加进了需要的头文件,同时在工程的属性中把xfopencv的include路径删除,编辑界面上错误消失,但之后再build出现了如下的错误:

../src/imgproc/xf_accumulate_image.hpp:96:134: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11
 void accumulate(xf::Mat<SRC_T, ROWS, COLS, NPC> & src1, xf::Mat<SRC_T, ROWS, COLS, NPC> & src2, xf::Mat<DST_T, ROWS, COLS, NPC> & dst)

ERROR: [SDSoC 0-0] Exiting sds++ : Error when calling 'arm-linux-gnueabihf-g++ -c -I../src -I/opt/Xilinx/opencv/opencv/include -Wall -O3 -fmessage-length=0 -MMD -MP -D __SDSCC__ -MT/xxx/test/Release/src/accumulate/xf_accumulate_image_accel.o -MF/xxx/test/Release/src/accumulate/xf_accumulate_image_accel.d -MT/xxx/test/Release/src/accumulate/xf_accumulate_image_accel.o     -I /opt/Xilinx/SDx/2016.4/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.4/Vivado_HLS/include /xxx/test/src/accumulate/xf_accumulate_image_accel.cpp -o src/accumulate/xf_accumulate_image_accel.o'
sds++ log file saved as /xxx/test/Release/_sds/reports/sds_xf_accumulate_image_accel.log
ERROR: [SDSoC 0-0] Build failed

make: *** [src/accumulate/xf_accumulate_image_accel.o] Error 1
src/accumulate/subdir.mk:21: recipe for target 'src/accumulate/xf_accumulate_image_accel.o' failed




关键词:SDSoC    xfopencv    
共1条 1/1 1   
快速回复主题
  • 匿名不能发帖!请先 [ 登陆 注册 ]