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: 
Highlighted
Observer kohsenglee
Observer
796 Views
Registered: ‎07-10-2014

SDSoC face detection build fails for ug1331

Jump to solution

Hi,

I am trying to build face detection in ug1331. I already built dpu_zcu102 bitstream and proceeded to build face detection demo. I am getting the following error but do not know where to change. /home/yijianlong is the default path in the SDSoC project which cannot be modified in the C/C++ build settings.

Please advise!

11:20:59 **** Incremental Build of configuration Debug for project gstsdxfacedetect ****
make all
Building file: ../src/densebox.cpp
Invoking: ARM A53 Linux g++ compiler
aarch64-linux-gnu-g++ -Wall -O2 -I"/home/chriskoh/work/sdsoc_dpu/include" -I/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include -I/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include/glib-2.0 -I/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/lib/glib-2.0/include -I/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/include/gstreamer-1.0 -I/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux/usr/lib/gstreamer-1.0/include -c -fPIC -fpermissive -fmessage-length=0 -MT"src/densebox.o" --sysroot=/home/yijianlong/platform/2018.3/zcu102-rv-ss-2018-3/zcu102_rv_ss/sw/a53_linux/a53_linux/sysroot/aarch64-xilinx-linux -MMD -MP -MF"src/densebox.d" -MT"src/densebox.o" -o "src/densebox.o" "../src/densebox.cpp"
In file included from /opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu/bits/c++config.h:533:0,
                 from /opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/type_traits:38,
                 from /opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/ratio:38,
                 from /opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/chrono:38,
                 from ../src/densebox.h:52,
                 from ../src/densebox.cpp:49:
/opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/aarch64-linux-gnu/include/c++/7.3.1/aarch64-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory
src/subdir.mk:21: recipe for target 'src/densebox.o' failed
 #include <features.h>
          ^~~~~~~~~~~~
compilation terminated.
make: *** [src/densebox.o] Error 1

11:20:59 Build Finished (took 58ms)

 

Chris

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
793 Views
Registered: ‎01-21-2014

Re: SDSoC face detection build fails for ug1331

Jump to solution
Looks like you probably need to change the referenced platform to the one local on your machine, and also set SYSROOT properly.
0 Kudos
7 Replies
Xilinx Employee
Xilinx Employee
794 Views
Registered: ‎01-21-2014

Re: SDSoC face detection build fails for ug1331

Jump to solution
Looks like you probably need to change the referenced platform to the one local on your machine, and also set SYSROOT properly.
0 Kudos
Participant dehim
Participant
741 Views
Registered: ‎05-01-2018

Re: SDSoC face detection build fails for ug1331

Jump to solution

I'm on windows. I had set SYSROOT 'correctly' but it still gave the same error. What helped for me was to change SYSROOT from C:\path\to\sysroot to ${=C:}\path\to\sysroot.

EDIT: ${=C:} doesn't work. Try ${SystemDrive} instead. SYSROOT has to be on C drive for this to work though.

Contributor
Contributor
699 Views
Registered: ‎05-03-2016

Re: SDSoC face detection build fails for ug1331

Jump to solution

Hello sir,

I am facing the same problem.

I am using SDSoC 2018.3 and zcu102-rv-ss-2018-3-dnndk platform as mentioned in latest ug1331

Environment setting

sysroot_pic.PNGand build console log

console_log.PNG

Please let me know if any information is needed..

Thanks in advance

0 Kudos
Participant dehim
Participant
693 Views
Registered: ‎05-01-2018

Re: SDSoC face detection build fails for ug1331

Jump to solution

Apparently ${=C:} doesn't work either. ${SystemDrive} does work for me, but SYSROOT has to be on C drive in that case. For me that's no problem, but I get that you might want to have sysroot on a different drive. Can you try to move sysroot to C drive and see if it works when you use ${SystemDrive}?

Contributor
Contributor
674 Views
Registered: ‎05-03-2016

Re: SDSoC face detection build fails for ug1331

Jump to solution

Thanks a lot. It works for me too..

0 Kudos
Contributor
Contributor
591 Views
Registered: ‎05-16-2014

Re: SDSoC face detection build fails for ug1331

Jump to solution

Hi, can you  give us  a  screenshot   about  the  SYSROOT  of  SDx.  I dont  know how to do . I am facing  the  same problem.

Thank you  very much !

0 Kudos
Contributor
Contributor
574 Views
Registered: ‎05-03-2016

Re: SDSoC face detection build fails for ug1331

Jump to solution

In windows PC system
Control Panel -> System and Security -> System -> Advanced system settings -> Environment Variables and then click to add new one -

face_detect_sysroot.PNG

Variable value : ${SystemDrive}\zcu102-rv-ss-2018-3-dnndk\zcu102_rv_ss\sw\a53_linux\a53_linux\sysroot\aarch64-xilinx-linux\

Note: zcu102-rv-ss-2018-3-dnndk folder need to locate in C drive

0 Kudos