cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
738 Views
Registered: ‎06-04-2019

xfopencv cornertraker run in zcu104_rv_ss error

 i run the xfopencv_2018.3_release exsample with sdsoc 2018.3 on windows .

but somthing goes wrong.

10:17:51 **** Build of configuration Release for project cornerimport ****
make pre-build main-build
sdsoc_make_clean Release
' '
'Building file: ../src/xf_corner_tracker_accel.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O3 -I"../src" -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -c -fmessage-length=0 -MT"src/xf_corner_tracker_accel.o" -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -mstrict-align -hls-target 1 -MMD -MP -MF"src/xf_corner_tracker_accel.d" -MT"src/xf_corner_tracker_accel.o" -o "src/xf_corner_tracker_accel.o" "../src/xf_corner_tracker_accel.cpp" -sds-hw "xf::pyrDown <0,1080,1920,1>" xf_corner_tracker_accel.cpp -files D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/imgproc/xf_pyr_down.hpp -clkid 2 -sds-end -sds-hw "xf::cornerHarris <3,3,1,0,1080,1920,1>" xf_corner_tracker_accel.cpp -files D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/features/xf_harris.hpp -clkid 2 -sds-end -sds-hw "xf::cornerUpdate <10000,3,1080,1920,1>" xf_corner_tracker_accel.cpp -files D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/imgproc/xf_corner_update.hpp -clkid 2 -sds-end -sds-hw "xf::cornersImgToList <10000,0,1080,1920,1>" xf_corner_tracker_accel.cpp -files D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv/imgproc/xf_corner_img_to_list.hpp -clkid 2 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "D:\zcu104_rv_ss" -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include
Processing -sds-hw block for xf::pyrDown<0,1080,1920,1>
Processing -sds-hw block for xf::cornerHarris<3,3,1,0,1080,1920,1>
Processing -sds-hw block for xf::cornerUpdate<10000,3,1080,1920,1>
Processing -sds-hw block for xf::cornersImgToList<10000,0,1080,1920,1>
Analyzing source for RTL template usage
Create data motion intermediate representation

D:\ZCU104Workspace\cornerimport\Release>D:\XILINX~1.3\SDx\2018.3\llvm-clang\win64\llvm\bin\clang.exe -I../src -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include -Wall -fmessage-length=0 -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -mstrict-align -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -I D:/XilinxSDSoc18.3/SDx/2018.3/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I D:/XilinxSDSoc18.3/Vivado/2018.3/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1 -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/backward -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include-fixed -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S D:/ZCU104Workspace/cornerimport/src/xf_corner_tracker_accel.cpp -o D:/ZCU104Workspace/cornerimport/Release/_sds/.llvm/src/xf_corner_tracker_accel.s
D:/XilinxSDSoc18.3/Vivado/2018.3/include\ap_int_special.h:89:1: warning: 'complex' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
struct complex<ap_int<_AP_W> > {
^
D:/XilinxSDSoc18.3/Vivado/2018.3/include\ap_int_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
D:/XilinxSDSoc18.3/Vivado/2018.3/include\ap_fixed_special.h:89:1: warning: 'complex' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
struct complex<ap_fixed<_AP_W, _AP_I, _AP_Q, _AP_O, _AP_N> > {
^
D:/XilinxSDSoc18.3/Vivado/2018.3/include\ap_fixed_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct
D:/XilinxSDSoc18.3/Vivado/2018.3/include\ap_int_special.h:61:24: note: did you mean struct here?
template<typename _Tp> class complex;
^~~~~
struct

D:\ZCU104Workspace\cornerimport\Release>exit /b 0
Performing accelerator source linting for w0_xf_pyrDown
Performing accelerator source linting for w1_xf_cornerHarris
Performing accelerator source linting for w2_xf_cornerUpdate
Performing accelerator source linting for w3_xf_cornersImgToList
Performing pragma generation

D:\ZCU104Workspace\cornerimport\Release>D:\XILINX~1.3\SDx\2018.3\llvm-clang\win64\llvm\bin\clang.exe -E -ID:/ZCU104Workspace/cornerimport/src -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -ID:/zcu104_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include -Wall -fmessage-length=0 -Wno-overloaded-virtual -Wno-unused-label -Wno-strict-overflow -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -Wno-unknown-attributes -Wno-unused-local-typedefs -Wno-sign-compare -mstrict-align -MMD -MP -D __SDSCC__ -m64 -target aarch64-linux-gnu -I D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -D HLS_NO_XIL_FPO_LIB -I D:/XilinxSDSoc18.3/SDx/2018.3/target/aarch64-linux/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1 -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/backward -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include-fixed -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -ID:/ZCU104Workspace/cornerimport/src -D __SDSVHLS__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -w -I D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv -I D:/XilinxSDSoc18.3/SDx/2018.3/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I D:/XilinxSDSoc18.3/Vivado/2018.3/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1 -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/backward -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/7.3.1/include-fixed -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -ID:/XilinxSDSoc18.3/SDK/2018.3/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 D:/ZCU104Workspace/cornerimport/src/xf_corner_tracker_accel.cpp -o D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/xf_corner_tracker_accel_pp.cpp

D:\ZCU104Workspace\cornerimport\Release>exit /b 0
INFO: [PragmaGen 83-3231] Successfully generated tcl script: D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown.tcl
Moving function w0_xf_pyrDown to Programmable Logic
ERROR: [SYNCHK 200-79] Cannot find the top function 'w0_xf_pyrDown' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.
ERROR: [HLS 200-70] Synthesizability check failed.
command 'ap_source' returned error code
while executing
"source D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_run.tcl"
invoked from within
"hls::main D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_run.tcl -l w0_xf_pyrDown_vivado_hls.log"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
INFO: [Common 17-206] Exiting vivado_hls at Fri Aug 2 10:20:42 2019...
ERROR: [SdsCompiler 83-5031] Problem detected in Vivado HLS run - unable to find solution implementation directory for w0_xf_pyrDown D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown/solution/impl/ip. For possible causes, review D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown/solution/solution.log or D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_vivado_hls.log.
D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_vivado_hls.log (last 20 lines):
INFO: [HLS 200-489] Unrolling loop 'Loop-1' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:1073) in function 'void xf::xFSobel7x7<1, 1, 0, 3>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
INFO: [HLS 200-489] Unrolling loop 'Compute_Grad_Loop' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:567) in function 'void xf::xFSobel5x5<1, 1, 0, 3>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
INFO: [HLS 200-489] Unrolling loop 'Compute_Grad_Loop' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:167) in function 'void xf::xFSobel3x3<1, 1, 0, 3>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
INFO: [HLS 200-489] Unrolling loop 'Loop-1' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:1073) in function 'void xf::xFSobel7x7<1, 1, 0, 5>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
INFO: [HLS 200-489] Unrolling loop 'Compute_Grad_Loop' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:567) in function 'void xf::xFSobel5x5<1, 1, 0, 5>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
INFO: [HLS 200-489] Unrolling loop 'Compute_Grad_Loop' (D:/zcu104_rv_ss/sw/a53_linux/a53_linux/inc/xfopencv\imgproc/xf_sobel.hpp:167) in function 'void xf::xFSobel3x3<1, 1, 0, 5>(PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*, PixelType<FORWARD_REFERENCE>::name*)' completely with a factor of 1.
ERROR: [SYNCHK 200-79] Cannot find the top function 'w0_xf_pyrDown' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.
ERROR: [HLS 200-70] Synthesizability check failed.
command 'ap_source' returned error code
while executing
"source D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_run.tcl"
invoked from within
"hls::main D:/ZCU104Workspace/cornerimport/Release/_sds/vhls/w0_xf_pyrDown_run.tcl -l w0_xf_pyrDown_vivado_hls.log"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
INFO: [Common 17-206] Exiting vivado_hls at Fri Aug 2 10:20:42 2019...
sds++ log file saved as D:/ZCU104Workspace/cornerimport/Release/_sds/reports/sds_xf_corner_tracker_accel.log
ERROR: [SdsCompiler 83-5004] Build failed

make: *** [src/subdir.mk:23: src/xf_corner_tracker_accel.o] Error 1

10:20:43 Build Finished (took 2m:51s.505ms)

sdsoc.png

 

2.png

 

0 Kudos
13 Replies
Highlighted
Visitor
Visitor
724 Views
Registered: ‎06-04-2019

 
QQ图片20190802113042.png
0 Kudos
Highlighted
Moderator
Moderator
699 Views
Registered: ‎08-20-2018

Hi @milomilo

Please navigate to C/C++ build settings -> C/C++ General->Paths and Symbols

In Includes tab, Under GNU C++, Add below include path,

<revision platform folder path>/zcu104-rv-ss-2018-3/petalinux/sysroots/aarch64-xilinx-linux/usr/include

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Moderator
Moderator
697 Views
Registered: ‎08-20-2018

Hi @milomilo 

Please verify below settings too

1. Navigate to C/C++ build settings->C/C++ Build-> Settings->SDS++ Linker-> Libraries

    Add ${SYSROOT}/usr/lib and ${SYSROOT}/lib

2. Navigate to C/C++ build settings->C/C++ Build-> Settings->SDS++ Linker->Miscellaneous->Linker Flags

    Add below line before -sdcard ..src/data

    --sysroot=${SYSROOT} -L=/lib -L=/usr/lib -Wl,-rpath-link=${SYSROOT}/lib,-rpath-link=${SYSROOT}/usr/lib

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Visitor
Visitor
688 Views
Registered: ‎06-04-2019

the include path was wrong.

in petalinux, there is only 2 doc. sdk.sh 、 zcu104-prod-rv-ss.bsp
0 Kudos
Highlighted
Visitor
Visitor
685 Views
Registered: ‎06-04-2019

i did like u said,
but i met new question.

error log like this:
CHK 200-79] Cannot find the top function 'w0_xf_pyrDown' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.
ERROR: [HLS 200-70] Synthesizability check failed.
command 'ap_source' returned error code
while executing
"source D:/104WS/corner_zcu104/Debug/_sds/vhls/w0_xf_pyrDown_run.tcl"
invoked from within
"hls::main D:/104WS/corner_zcu104/Debug/_sds/vhls/w0_xf_pyrDown_run.tcl -l w0_xf_pyrDown_vivado_hls.log"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
INFO: [Common 17-206] Exiting vivado_hls at Mon Aug 5 18:18:07 2019...
0 Kudos
Highlighted
Moderator
Moderator
678 Views
Registered: ‎08-20-2018

Hi @milomilo 

yes, we need to run the sdk.sh script.

I hope you did it already

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Visitor
Visitor
674 Views
Registered: ‎06-04-2019

Does the file work on windows?

i tried to run the sdk.sh script

but it doesn't work.

$ sh sdk.sh
/usr/bin/env: ‘sdk.sh’: No such file or directory




0 Kudos
Highlighted
Moderator
Moderator
655 Views
Registered: ‎08-20-2018

Hi @milomilo 

Please set the SYSROOT to <reVISION Platform path>\zcu104-rv-ss-2018-3\zcu104_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux

In Windows you can set the SYSROOT as mentioned below.

Go to Start → Control Panel → System → Advanced → Environment Variables. Create an environment variable SYSROOT with the value <platform>/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Visitor
Visitor
649 Views
Registered: ‎06-04-2019

I have done it. But it still unwork.

CHK 200-79] Cannot find the top function 'w0_xf_pyrDown' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.
ERROR: [HLS 200-70] Synthesizability check failed.
command 'ap_source' returned error code
while executing
"source D:/104WS/corner_zcu104/Debug/_sds/vhls/w0_xf_pyrDown_run.tcl"
invoked from within
"hls::main D:/104WS/corner_zcu104/Debug/_sds/vhls/w0_xf_pyrDown_run.tcl -l w0_xf_pyrDown_vivado_hls.log"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
INFO: [Common 17-206] Exiting vivado_hls at Mon Aug 5 18:18:07 2019...

Do u have any other solutions?
0 Kudos
Highlighted
Moderator
Moderator
644 Views
Registered: ‎08-20-2018

Hi @milomilo 

I am also getting same error when I tried to build corner tracker example. I will get back to you after checking.

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Visitor
Visitor
642 Views
Registered: ‎06-04-2019

Thanks so much. Looking forward to your reply.
0 Kudos
Highlighted
Observer
Observer
272 Views
Registered: ‎04-04-2020

Hi everybody

I got the same error in SDSoC corner tracker example
how can I solve this?

best regards
0 Kudos
Highlighted
Observer
Observer
263 Views
Registered: ‎10-24-2018

我们也是感觉xfopencv问题很多,而且很多opencv的功能也没有。 有点感伤。

0 Kudos