UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer matifrenkel
Observer
440 Views
Registered: ‎01-11-2019

Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

When I try to load the Sobel filter Example using SDSoC environement for ZCU102 Evaluation board. I get some system error shown in the attached foile. When I try to compile the code it fails immedietaly. Any idea how to resolve this issue?

 

0 Kudos
15 Replies
Observer matifrenkel
Observer
424 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

When I try to compile other example like the Symthesizbale FIR I get this ERRORs during the Build, Any idea WHY????

 

12:05:27 **** Build of configuration Release for project test_1 ****
make all
make --no-print-directory pre-build
sdsoc_make_clean Release
' '
make --no-print-directory main-build
'Building file: ../src/cpp_FIR.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O3 -I"../src" -c -fmessage-length=0 -MT"src/cpp_FIR.o" -MMD -MP -MF"src/cpp_FIR.d" -MT"src/cpp_FIR.o" -o "src/cpp_FIR.o" "../src/cpp_FIR.cpp" -sds-hw cpp_FIR cpp_FIR.cpp -clkid 1 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu102"
Processing -sds-hw block for cpp_FIR
Analyzing source for RTL template usage
Create data motion intermediate representation

C:\Users\mfrenkel\US+MPSoC\test_1\Release>Q:\Xilinx\SDx\2019.1\llvm-clang\win64\llvm\bin\clang.exe -I../src -Wall -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I Q:/Xilinx/SDx/2019.1/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I Q:/Xilinx/Vivado/2019.1/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0 -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/aarch64-linux-gnu -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/backward -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include-fixed -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.cpp -o C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.llvm/src/cpp_FIR.s
../src/cpp_FIR.h:128:5: warning: unused label 'loop' [-Wunused-label]
loop: for (i = N-1; i >= 0; i--) {
^~~~~~

C:\Users\mfrenkel\US+MPSoC\test_1\Release>exit /b 0
Performing accelerator source linting for cpp_FIR
Performing pragma generation

C:\Users\mfrenkel\US+MPSoC\test_1\Release>Q:\Xilinx\SDx\2019.1\llvm-clang\win64\llvm\bin\clang.exe -E -IC:/Users/mfrenkel/US+MPSoC/test_1/src -Wall -fmessage-length=0 -MMD -MP -D __SDSCC__ -m64 -D HLS_NO_XIL_FPO_LIB -I Q:/Xilinx/SDx/2019.1/target/aarch64-linux/include -IC:/Users/mfrenkel/US+MPSoC/test_1/src -D __SDSVHLS__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -w -I Q:/Xilinx/SDx/2019.1/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I Q:/Xilinx/Vivado/2019.1/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0 -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/aarch64-linux-gnu -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/backward -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include-fixed -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.cpp -o C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/vhls/cpp_FIR_pp.cpp

C:\Users\mfrenkel\US+MPSoC\test_1\Release>exit /b 0
INFO: [PragmaGen 83-3231] Successfully generated tcl script: C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/vhls/cpp_FIR.tcl
Moving function cpp_FIR to Programmable Logic
sds++ log file saved as C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/reports/sds_cpp_FIR.log

'Finished building: ../src/cpp_FIR.cpp'
' '
'Building file: ../src/cpp_FIR_test.cpp'
'Invoking: SDS++ Compiler'
sds++ -Wall -O3 -I"../src" -c -fmessage-length=0 -MT"src/cpp_FIR_test.o" -MMD -MP -MF"src/cpp_FIR_test.d" -MT"src/cpp_FIR_test.o" -o "src/cpp_FIR_test.o" "../src/cpp_FIR_test.cpp" -sds-hw cpp_FIR cpp_FIR.cpp -clkid 1 -sds-end -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu102"
Analyzing source for RTL template usage
Create data motion intermediate representation

C:\Users\mfrenkel\US+MPSoC\test_1\Release>Q:\Xilinx\SDx\2019.1\llvm-clang\win64\llvm\bin\clang.exe -I../src -Wall -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -I Q:/Xilinx/SDx/2019.1/target/aarch64-linux/include -D HLS_NO_XIL_FPO_LIB -I Q:/Xilinx/Vivado/2019.1/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0 -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/aarch64-linux-gnu -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include/c++/8.2.0/backward -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/include-fixed -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IQ:/Xilinx/SDK/2019.1/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include -std=c++11 -emit-llvm -S C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR_test.cpp -o C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.llvm/src/cpp_FIR_test.s
../src/cpp_FIR.h:128:5: warning: unused label 'loop' [-Wunused-label]
loop: for (i = N-1; i >= 0; i--) {
^~~~~~
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR_test.cpp:104:1: warning: unused function 'print_impulse_response' [-Wunused-function]
print_impulse_response()
^

C:\Users\mfrenkel\US+MPSoC\test_1\Release>exit /b 0
Compiling C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR_test.cpp
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h: In instantiation of 'data_T CFir<coef_T, data_T, acc_T>::operator()(data_T) [with coef_T = int; data_T = int; acc_T = int]':
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR_test.cpp:91:19: required from here
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h:128:5: warning: label 'loop' defined but not used [-Wunused-label]
loop: for (i = N-1; i >= 0; i--) {
^~~~
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR_test.cpp:104:1: warning: 'void print_impulse_response()' defined but not used [-Wunused-function]
print_impulse_response()
^~~~~~~~~~~~~~~~~~~~~~
sds++ log file saved as C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/reports/sds_cpp_FIR_test.log

'Finished building: ../src/cpp_FIR_test.cpp'
' '
'Building target: test_1.elf'
'Invoking: SDS++ Linker'
sds++ --remote_ip_cache C:/Users/mfrenkel/US+MPSoC/ip_cache -o "test_1.elf" ./src/cpp_FIR.o ./src/cpp_FIR_test.o -dmclkid 1 -sds-sys-config a53_linux -sds-proc a53_linux -sds-pf "zcu102"
Analyzing object files
... C:/Users/mfrenkel/US+MPSoC/test_1/Release/src/cpp_FIR.o
... C:/Users/mfrenkel/US+MPSoC/test_1/Release/src/cpp_FIR_test.o
Generating data motion network

C:\Users\mfrenkel\US+MPSoC\test_1\Release>Q:\Xilinx\SDx\2019.1\llvm-clang\win64\llvm\bin\llvm-link.exe -o C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.llvm/sds_all.o C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.llvm/./src/cpp_FIR.s C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.llvm/./src/cpp_FIR_test.s

C:\Users\mfrenkel\US+MPSoC\test_1\Release>exit /b 0

C:\Users\mfrenkel\US+MPSoC\test_1\Release\_sds\.llvm>opt -disable-output -mem2reg -basicaa -XidanePass --dmclkid 1 --repo C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/.cdb/xd_ip_db.xml --dmdb Q:/Xilinx/SDx/2019.1/data/DM.db -os linux -processor cortex-a53 -partition 0 0<sds_all.o
INFO: [DMAnalysis 83-4494] Analyzing hardware accelerators...
INFO: [DMAnalysis 83-4497] Analyzing callers to hardware accelerators...
INFO: [DMAnalysis 83-4444] Scheduling data transfer graph for partition 0
INFO: [DMAnalysis 83-4446] Creating data motion network hardware for partition 0
INFO: [DMAnalysis 83-4448] Creating software stub functions for partition 0
INFO: [DMAnalysis 83-4450] Generating data motion network report for partition 0
INFO: [DMAnalysis 83-4454] Rewriting caller code
Creating block diagram (BD)
Creating top.bd.tcl
Rewrite caller functions
Compile caller rewrite file C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/swstubs/cpp_FIR_test.cpp
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h: In instantiation of 'data_T CFir<coef_T, data_T, acc_T>::operator()(data_T) [with coef_T = int; data_T = int; acc_T = int]':
C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/swstubs/cpp_FIR_test.cpp:91:19: required from here
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h:128:5: warning: label 'loop' defined but not used [-Wunused-label]
loop: for (i = N-1; i >= 0; i--) {
^~~~
C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/swstubs/cpp_FIR_test.cpp:105:1: warning: 'void print_impulse_response()' defined but not used [-Wunused-function]
print_impulse_response()
^~~~~~~~~~~~~~~~~~~~~~
Prepare hardware access API functions
Create accelerator stub functions
Compile hardware access API functions
Compile accelerator stub functions
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h: In instantiation of 'data_T CFir<coef_T, data_T, acc_T>::operator()(data_T) [with coef_T = int; data_T = int; acc_T = int]':
cpp_FIR.cpp:96:18: required from here
C:/Users/mfrenkel/US+MPSoC/test_1/src/cpp_FIR.h:128:5: warning: label 'loop' defined but not used [-Wunused-label]
loop: for (i = N-1; i >= 0; i--) {
^~~~
Preliminary link application ELF
Enable generation of hardware programming files
Enable generation of boot files
Calling VPL

****** vpl v2019.1 (64-bit)
**** SW Build 2552052 on Fri May 24 14:49:42 MDT 2019
** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

Attempting to get a license: ap_opencl
WARNING: [VPL 17-301] Failed to get a license for 'ap_opencl'. Explanation: The license feature ap_opencl could not be found.
Resolution: Check the status of your licenses in the Vivado License Manager. For debug help search Xilinx Support for "Licensing FAQ".
Attempting to get a license: ap_sdsoc
Feature available: ap_sdsoc
INFO: [VPL 60-895] Target platform: Q:/Xilinx/SDx/2019.1/platforms/zcu102/zcu102.xpfm
INFO: [VPL 60-423] Target device: zcu102
INFO: [VPL 60-1032] Extracting DSA to C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0/vivado/vpl/.local/dsa
[12:12:41] Run vpl: Step create_project: Started
Creating Vivado project.
[12:13:04] Run vpl: Step create_project: Completed
[12:13:04] Run vpl: Step create_bd: Started
[12:14:19] Run vpl: Step create_bd: RUNNING...
[12:15:35] Run vpl: Step create_bd: RUNNING...
[12:15:51] Run vpl: Step create_bd: Completed
[12:15:51] Run vpl: Step update_bd: Started
[12:15:53] Run vpl: Step update_bd: Completed
[12:15:53] Run vpl: Step generate_target: Started
[12:17:08] Run vpl: Step generate_target: RUNNING...
[12:18:24] Run vpl: Step generate_target: RUNNING...
[12:18:59] Run vpl: Step generate_target: Completed
[12:18:59] Run vpl: Step config_hw_runs: Started
[12:19:10] Run vpl: Step config_hw_runs: Completed
[12:19:10] Run vpl: Step synth: Started
[12:20:42] Block-level synthesis in progress, 0 of 3 jobs complete, 2 jobs running.
[12:21:13] Block-level synthesis in progress, 0 of 3 jobs complete, 2 jobs running.
[12:21:43] Block-level synthesis in progress, 0 of 3 jobs complete, 2 jobs running.
[12:22:14] Block-level synthesis in progress, 1 of 3 jobs complete, 1 job running.
[12:22:44] Block-level synthesis in progress, 2 of 3 jobs complete, 0 jobs running.
[12:23:15] Block-level synthesis in progress, 2 of 3 jobs complete, 0 jobs running.
[12:23:45] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:24:16] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:24:46] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:25:16] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:25:47] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:26:17] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:26:48] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:27:19] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:27:49] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:28:20] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:28:50] Block-level synthesis in progress, 2 of 3 jobs complete, 1 job running.
[12:29:17] Run vpl: Step synth: Failed
[12:29:17] Run vpl: FINISHED. Run Status: synth ERROR
ERROR: [VPL 60-704] Integration error, One or more synthesis runs failed during dynamic region dcp generation
ERROR: [VPL 60-704] Integration error, run 'synth_1' couldn't start because one or more of the prerequisite runs failed
ERROR: [VPL 60-704] Integration error, run 'zcu102_cpp_FIR_1_if_0_synth_1' failed, please look at the run log file 'C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0/vivado/vpl/prj/prj.runs/zcu102_cpp_FIR_1_if_0_synth_1/runme.log' for more information
ERROR: [VPL 60-1328] Vpl run 'vpl' failed
ERROR: [VPL 60-806] Failed to finish platform linker
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'Q:/Xilinx/SDx/2019.1/bin/vpl --iprepo C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/iprepo/repo --iprepo Q:/Xilinx/SDx/2019.1/data/ip/xilinx --platform Q:/Xilinx/SDx/2019.1/platforms/zcu102/zcu102.xpfm --temp_dir C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0 --output_dir C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0/vpl --input_file C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0/.xsd/top.bd.tcl --target hw --save_temps --kernels cpp_FIR:adapter --webtalk_flag SDSoC --remote_ip_cache C:/Users/mfrenkel/US+MPSoC/ip_cache --xp \"param:compiler.deleteDefaultReportConfigs=false\" '
sds++ log file saved as C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make[1]: *** [makefile:49: test_1.elf] Error 1
make: *** [makefile:40: all] Error 2

12:29:18 Build Finished (took 23m:50s.461ms)

0 Kudos
Contributor
Contributor
353 Views
Registered: ‎10-25-2017

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

For your first issue with the Sobel example, when I've run into similiar errors the following have typically worked for me.

  1. Right click on the project and select "Clean Project", then rebuild
  2. If that doesn't work then remove the Sobel function from the Hardware Functions list, then add the function back to the hardware function list
  3. If that doesn't work then manually delete the build folder (Release or Debug depending on your build configuration) and then rebuild

Even if you get past that build error, I think you will run into additional issues because the xfOpenCV examples expect additional libraries (OpenCV libraries compiled for ARM) that aren't included with the base ZCU102 platform that comes with the SDSoC install - see UG1233, Chapter 2, page 27.

Instead of using the base ZCU102 platform, you could download the reVISION platform, which has additional software libraries included in the root file system for image processing (i.e. OpenCV compiled for ARM A53).  You can download the reVISION platform for the ZCU102 here.

UG1233, Chapter 2, page 25 has getting started information for using the xfOpenCV library with the reVISION platforms.

Note:  the 2019.1 reVISION platform has not been released yet, so you may need to use the 2018.3 version of the Xilinx tools.

0 Kudos
Contributor
Contributor
345 Views
Registered: ‎10-25-2017

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

For the FIR build issue can you attach the
'C:/Users/mfrenkel/US+MPSoC/test_1/Release/_sds/p0/vivado/vpl/prj/prj.runs/zcu102_cpp_FIR_1_if_0_synth_1/runme.log'
log file. It looks like Vivado might have crashed during the build process.
0 Kudos
Observer matifrenkel
Observer
299 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

Hi All,

Seems like we have progress with new installation of SDSoC this time with Win10 OS. However, I would like to say that this time the ALL SDSoC installation resides locally under the C:\ PC hard disk. With the Win7 machine I did not have enough space for the installation so I use Networked Disk referredd as Q:\.... to store all the SDx, Vivado,...ect files in that storage. 

So now I don't get the C/C++ Index issue with the File I/O Sobel Filter example. Everything looks OK but when I compile I get other errors seems like missing some OpenCV files. Need help on that. See attached file for the comiple issues now.

0 Kudos
Contributor
Contributor
292 Views
Registered: ‎10-25-2017

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

You will need to

  1. Add the path to the OpenCV for ARM include directory (see figure below) and
    opencv_include.png

  2. Update your linker settings with the correct path to the OpenCV library compiled for ARM (see figure)
    opencv_libs.png

 

In the figures above, I'm pointing to the OpenCV library that I manually compiled.  

You could probably use the OpenCV binaries that come with the reVISION platform under the zcu102-rv-ss-2018-3\zcu102_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\usr\lib directory.  Or you could compile from source.  

OpenCV header files included with the reVISION platform are located under zcu102-rv-ss-2018-3\zcu102_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\usr\include

I haven't tried using the reVISION ARM libraries with a non-reVISION platform, so YMMV.  There could be additional dependencies that I haven't noted. 

0 Kudos
Observer matifrenkel
Observer
278 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

I am getting this crash after doing your steps.I don't see that the ../libs/opencv-3.3.1/include directory even exist

 

Xilinx SDx v2019.1 (64-bit)
SW Build 2552052 on Fri May 24 14:51:15 MDT 2019
Current time: Wed Aug 14 14:00:01 PDT 2019
Process ID (PID): 6828
User: MFrenkel
OS: Windows 10
This report is an indication that an internal application error occurred.
This information is useful for debugging. Please open a case with Xilinx.
Technical Support with this file and a testcase attached.
----------------------------------------------------------------------------------
java.lang.NullPointerException
com.xilinx.sdsoc.guideline.SDSGuidelineUtil.findCallerFunctions(SDSGuidelineUtil.java:134)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.isFunctionUnderRoot(SDSAcceleratorValidator.java:88)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.validateRootFunction(SDSAcceleratorValidator.java:76)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.runValidation(SDSAcceleratorValidator.java:34)
com.xilinx.sdx.core.validator.SDXValidator$2.run(SDXValidator.java:113)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

0 Kudos
Contributor
Contributor
273 Views
Registered: ‎10-25-2017

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

../libs/opencv-3.3.1 is the OpenCV library that I manually compiled and then copied into my workspace.  You would need to something similiar.

0 Kudos
Observer matifrenkel
Observer
257 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

I downloaded the revisionn package and included this library 

C:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\usr\lib"

But Rebuild project crashes same way

 

0 Kudos
Observer matifrenkel
Observer
247 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

When I try to compile I see less LINK errors now see attached fille

0 Kudos
Observer matifrenkel
Observer
239 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

I added this Library but no change very strange. I can clearly see the missing file error in this directoy

 

"C:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\lib"

 

0 Kudos
Contributor
Contributor
199 Views
Registered: ‎10-25-2017

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

Try adding the --sysroot (note 2 dashes instead of 1) to your miscellaneous linker settings.  See image below.

sdsoc_sysroot.png

 

0 Kudos
Observer matifrenkel
Observer
187 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

I did and no I get these errors

Link application ELF file
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/est/xf_sobel_tb.o: in function `void xf::imwrite<0, 2160, 3840, 1>(char const*, xf::Mat<0, 2160, 3840, 1>&)':
xf_sobel_tb.cpp:(.text._ZN2xf7imwriteILi0ELi2160ELi3840ELi1EEEvPKcRNS_3MatIXT_EXT0_EXT1_EXT2_EEE[_ZN2xf7imwriteILi0ELi2160ELi3840ELi1EEEvPKcRNS_3MatIXT_EXT0_EXT1_EXT2_EEE]+0x23c): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text._ZN2xf7imwriteILi0ELi2160ELi3840ELi1EEEvPKcRNS_3MatIXT_EXT0_EXT1_EXT2_EEE[_ZN2xf7imwriteILi0ELi2160ELi3840ELi1EEEvPKcRNS_3MatIXT_EXT0_EXT1_EXT2_EEE]+0x254): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/est/xf_sobel_tb.o: in function `main':
xf_sobel_tb.cpp:(.text.startup+0x270): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x38c): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x398): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x3cc): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x3d8): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x438): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x450): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x48c): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x4a4): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x650): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x668): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x6a4): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_sobel_tb.cpp:(.text.startup+0x6bc): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'aarch64-linux-gnu-g++ C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/est/sw_perf_est.o C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/est/xf_sobel_accel.o C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/est/xf_sobel_tb.o C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/swstubs/portinfo.o {-LC:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\lib} {-LC:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\usr\lib} {--sysroot=C:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux} -lopencv_videoio -lopencv_imgcodecs -lopencv_core -lopencv_imgproc -lopencv_features2d -lopencv_flann -lopencv_video -LC:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/swstubs -Wl,--start-group -Wl,--end-group -Wl,--start-group -lpthread -LC:/Xilinx/SDx/2019.1/target/aarch64-linux/lib -lsds_lib -lxlnk_stub -Wl,--end-group -o C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/swstubs/Sobel_Filter_Ex.elf '
sds++ log file saved as C:/Users/MFrenkel/ICB4/Sobel_Filter_Ex/Release/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make[1]: *** [makefile:49: Sobel_Filter_Ex.elf] Error 1
make: *** [makefile:40: all] Error 2

 

0 Kudos
Observer matifrenkel
Observer
184 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

I also want to mention that when I Rebuild the C/C++ Indexes I get this Java crash. I just wonder why???

Xilinx SDx v2019.1 (64-bit)
SW Build 2552052 on Fri May 24 14:51:15 MDT 2019
Current time: Thu Aug 15 09:45:13 PDT 2019
Process ID (PID): 21076
User: MFrenkel
OS: Windows 10
This report is an indication that an internal application error occurred.
This information is useful for debugging. Please open a case with Xilinx.
Technical Support with this file and a testcase attached.
----------------------------------------------------------------------------------
java.lang.NullPointerException
com.xilinx.sdsoc.guideline.SDSGuidelineUtil.findCallerFunctions(SDSGuidelineUtil.java:134)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.isFunctionUnderRoot(SDSAcceleratorValidator.java:88)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.validateRootFunction(SDSAcceleratorValidator.java:76)
com.xilinx.sdsoc.guideline.SDSAcceleratorValidator.runValidation(SDSAcceleratorValidator.java:34)
com.xilinx.sdx.core.validator.SDXValidator$2.run(SDXValidator.java:113)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

 

0 Kudos
Highlighted
Observer matifrenkel
Observer
164 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

What is the way to copy the Project Settings such that it will apply automaticaly to all the projects? I want to try someother File IO examples from clean page

0 Kudos
Observer matifrenkel
Observer
161 Views
Registered: ‎01-11-2019

Re: Zynq UltraScale+ MPSoC ZCU102 SDSoC Sobel filtering Example

Getting same link errors when compile the Stereopipeline Example. This time the C/C++ Index build was OK no crash.

Link application ELF file
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/est/xf_stereo_pipeline_tb.o: in function `xf::Mat<0, 1080, 1920, 1> xf::imread<0, 1080, 1920, 1>(char*, int)':
xf_stereo_pipeline_tb.cpp:(.text._ZN2xf6imreadILi0ELi1080ELi1920ELi1EEENS_3MatIXT_EXT0_EXT1_EXT2_EEEPci[_ZN2xf6imreadILi0ELi1080ELi1920ELi1EEENS_3MatIXT_EXT0_EXT1_EXT2_EEEPci]+0x68): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/est/xf_stereo_pipeline_tb.o: in function `main':
xf_stereo_pipeline_tb.cpp:(.text.startup+0xb0): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_stereo_pipeline_tb.cpp:(.text.startup+0xf4): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_stereo_pipeline_tb.cpp:(.text.startup+0x600): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_stereo_pipeline_tb.cpp:(.text.startup+0x63c): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
c:/xilinx/sdk/2019.1/gnu/aarch64/nt/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld.exe: xf_stereo_pipeline_tb.cpp:(.text.startup+0x654): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
collect2.exe: error: ld returned 1 exit status
ERROR: [SdsCompiler 83-5019] Exiting sds++ : Error when calling 'aarch64-linux-gnu-g++ C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/est/sw_perf_est.o C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/est/xf_stereo_pipeline_accel.o C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/est/xf_stereo_pipeline_tb.o C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/swstubs/portinfo.o {-LC:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\lib} {-LC:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\usr\lib} {--sysroot=C:\Xilinx\zcu102-rv-min-2018-3\zcu102_rv_min\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux} -lopencv_videoio -lopencv_imgcodecs -lopencv_core -lopencv_imgproc -lopencv_features2d -lopencv_flann -lopencv_video -LC:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/swstubs -Wl,--start-group -Wl,--end-group -Wl,--start-group -lpthread -LC:/Xilinx/SDx/2019.1/target/aarch64-linux/lib -lsds_lib -lxlnk_stub -Wl,--end-group -o C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/swstubs/Stereropipeline.elf '
sds++ log file saved as C:/Users/MFrenkel/ICB4/Stereropipeline/Release/_sds/reports/sds.log
ERROR: [SdsCompiler 83-5004] Build failed

make[1]: *** [makefile:49: Stereropipeline.elf] Error 1
make: *** [makefile:40: all] Error 2

11:41:55 Build Finished (took 9m:10s.496ms)

0 Kudos