Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6460 Discussions

NCSDK API-only install on Raspberry Pi fails

idata
Employee
692 Views

I was installing the NCSDK API-only version after looking at https://movidius.github.io/blog/ncs-apps-on-rpi/ and when I try these commands:

 

sudo apt-get install -y libusb-1.0-0-dev cd ~/workspace/ncsdk/api/src make <=== fails here sudo make install

 

I get the below:

 

pi@raspberrypi:~/workspace/ncsdk/api/src $ make cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c mvnc_api.c -o obj-armv6l/mvnc_api.o mvnc_api.c:457:12: warning: ‘deviceGetNumberOfDevices’ defined but not used [-Wunused-function] static int deviceGetNumberOfDevices() ^~~~~~~~~~~~~~~~~~~~~~~~ cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c fp16.c -o obj-armv6l/fp16.o cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c /home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/usb_boot.c -o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/usb_boot.o cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c /home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLink.c -o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLink.o cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c /home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLinkDispatcher.c -o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLinkDispatcher.o cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c -o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.o /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c: In function ‘shellThreadWriter’: /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c:44:33: warning: pointer targets in passing argument 2 of ‘XLinkWriteData’ differ in signedness [-Wpointer-sign] XLinkWriteData(cId, str, bytes); ^~~ In file included from /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c:18:0: /home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLink.h:54:14: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘char *’ XLinkError_t XLinkWriteData(streamId_t streamId, const uint8_t* buffer, int size); ^~~~~~~~~~~~~~ /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c: In function ‘shellThreadReader’: /home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.c:81:5: warning: implicit declaration of function ‘pthread_create’ [-Wimplicit-function-declaration] pthread_create(&shellWriter, NULL, shellThreadWriter, (void*) context); ^~~~~~~~~~~~~~ cc -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/shared -I/home/pi/workspace/ncsdk/api/src/common/components/XLink/pc -I/home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc -I /home/pi/workspace/ncsdk/api/src/common/swCommon/include/ -I /home/pi/workspace/ncsdk/api/src/common/shared/include/ -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"`cat ./version.txt`\"" -DDEVICE_SHELL_ENABLED -DEXCLUDE_HIGHCLASS -O2 -Wall -pthread -fPIC -MMD -MP -I. -I../include -I/usr/include/libusb-1.0 -c /home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/XLinkPlatform.c -o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/XLinkPlatform.o if [ ! -e ./version.txt ] ; then echo "missing version.txt file"; exit 1; fi; cc -shared obj-armv6l/mvnc_api.o obj-armv6l/fp16.o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/usb_boot.o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLink.o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/shared/XLinkDispatcher.o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLinkConsole/pc/XLinkConsole.o obj-armv6l//home/pi/workspace/ncsdk/api/src/common/components/XLink/pc/XLinkPlatform.o -o obj-armv6l/libmvnc.so.0 -lpthread -lusb-1.0 -ldl ln -fs obj-armv6l/libmvnc.so.0 libmvnc.so ln -fs obj-armv6l/libmvnc.so.0 libmvnc.so.0 Error firmware, ncsdk-armv6l/fw/, not found in tar file NCSDK-2.08.01.02.tar.gz. Will try to restore existing firmware Error restoring old firmware - directory ./mvnc.old doesn't exist. Will exit Makefile:81: recipe for target 'get_mvcmd' failed make: *** [get_mvcmd] Error 1

 

My Raspberry Pi info:

 

Linux raspberrypi 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux

 

pi@raspberrypi:~/workspace/ncsdk/api/src $ lscpu Architecture: armv6l Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model: 7 Model name: ARMv6-compatible processor rev 7 (v6l) CPU max MHz: 700.0000 CPU min MHz: 700.0000 BogoMIPS: 697.95 Flags: half thumb fastmult vfp edsp java tls

 

Is arm6l not supported anymore? The plan is to use the Intel Movidius Stick on it.

 

Any tips will be helpful. I also found a no. of small doc. issues across your site and the above link as well.

0 Kudos
1 Reply
idata
Employee
447 Views

Hi @neomatrix369

 

The guide lists a Raspberry Pi 3 Model B as a prerequisite, which Raspberry Pi model do you have?

 

Also, have you install all the dependencies?

 

sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev git automake byacc lsb-release cmake libgflags-dev libgoogle-glog-dev liblmdb-dev swig3.0 graphviz libxslt-dev libxml2-dev gfortran python3-dev python-pip python3-pip python3-setuptools python3-markdown python3-pillow python3-yaml python3-pygraphviz python3-h5py python3-nose python3-lxml python3-matplotlib python3-numpy python3-protobuf python3-dateutil python3-skimage python3-scipy python3-six python3-networkx python3-tk

 

Regards,

 

Jesus
0 Kudos
Reply