cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,056 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
Highlighted
Xilinx Employee
Xilinx Employee
1,053 Views
Registered: ‎01-21-2014
Looks like you probably need to change the referenced platform to the one local on your machine, and also set SYSROOT properly.

View solution in original post

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

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor
1,001 Views
Registered: ‎05-01-2018

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.

Highlighted
Contributor
Contributor
959 Views
Registered: ‎05-03-2016

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
Highlighted
Contributor
Contributor
953 Views
Registered: ‎05-01-2018

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}?

Highlighted
Contributor
Contributor
934 Views
Registered: ‎05-03-2016

Thanks a lot. It works for me too..

0 Kudos
Highlighted
Contributor
Contributor
851 Views
Registered: ‎05-16-2014

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
Highlighted
Contributor
Contributor
834 Views
Registered: ‎05-03-2016

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