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: 
Adventurer
Adventurer
178 Views
Registered: ‎12-18-2018

Resnet50 application error in sdsoc

Hi,

I am working on sdsoc development environment to build resnet50 as standalone applicatio.  When i build the project in sdosc I am facing below errors

:08:22 **** Build of configuration Debug for project resnet50 ****
make all
Building file: ../src/resnet50.cpp
Invoking: ARM A53 Linux g++ compiler
aarch64-linux-gnu-g++ -Wall -O2 -I"/home/administrator/AI_WORK/AI-sdsoc/include" -I/usr/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/gstreamer-1.0/include -c -fPIC -fpermissive -fmessage-length=0 -MT"src/resnet50.o" --sysroot= -MMD -MP -MF"src/resnet50.d" -MT"src/resnet50.o" -o "src/resnet50.o" "../src/resnet50.cpp"
Finished building: ../src/resnet50.cpp

Building target: resnet50.elf
Invoking: ARM A53 Linux g++ linker
aarch64-linux-gnu-g++ -L"/home/administrator/AI_WORK/AI-sdsoc/lib" --sysroot= -o "resnet50.elf" ./src/resnet50.o -ln2cube -ldputils -ldpucore -lopencv_core -lopencv_imgcodecs
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
makefile:45: recipe for target 'resnet50.elf' failed
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_core
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_imgcodecs
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lm
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lc
/home/administrator/SDSOC-SETUP/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/7.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [resnet50.elf] Error 1

I don't know from where opencv is taking in build I am  not able to find . Could any one suggest me how to build the project with out above errors.

Thanks,

Raghuram

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
144 Views
Registered: ‎08-20-2018

Re: Resnet50 application error in sdsoc

Hi @raghuram1a

 

Right click on your project and navigate to C/C++ build settings-> Settings-> SDS++ linker -> libraries

library_sdsoc.PNG

 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos