Following https://github.com/movidius/ncappzoo/tree/master/apps/security-cam I run into the error:
pi@raspberrypi:~/workspace/ncappzoo/apps/security-cam $ make run
Making MobileNet SSD…
make: Entering directory '/home/pi/workspace/ncappzoo/caffe/SSD_MobileNet'
caffemodel already exists, skipping download.
Prototxt file already exists, skipping download.
/bin/sh: 6: mvNCCompile: not found
Makefile:87: recipe for target 'compile' failed
make: *** [compile] Error 127
make: Leaving directory '/home/pi/workspace/ncappzoo/caffe/SSD_MobileNet'
Makefile:11: recipe for target 'mobilenet-ssd' failed
make: *** [mobilenet-ssd] Error 2
@robmarkcole In the link you provided the user installs in api only mode. If you install in api only mode, you cannot use the toolkit to compile graph files on the RPi. An option you can choose is to install the ncsdk on your laptop, compile the graph files on your laptop or pc and transfer the files over to the Pi. Make sure and put them in the corresponding network directory (i.e. if you compiled mobilenet-ssd’s Graph file, put it in the ncsdk/caffe/mobilenet-ssd directory). You can use this method to generate graph files if you want to install in api only mode.
I recommend using the command “make install” to install the entire sdk to be able to compile graph files on your Pi. If you install the sdk using “make install”, you can compile the graph files directly on the pi.
Which ever method you choose you can use the command “make run” to run the app. If you are using a pi cam, use “make mobilenet-ssd” And then “python3 security-picam” to run the picam version of the app.
Hi @Tome_at_Intel I ran
pi@raspberrypi:~/workspace/ncsdk $ sudo make install and after a long while got the following error:
[100%] Building CXX object python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. python/CMakeFiles/pycaffe.dir/build.make:62: recipe for target 'python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o' failed make: *** [python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o] Error 4 make: Leaving directory '/opt/movidius/ssd-caffe/build' CMakeFiles/Makefile2:1245: recipe for target 'python/CMakeFiles/pycaffe.dir/all' failed make: *** [python/CMakeFiles/pycaffe.dir/all] Error 2 make: Leaving directory '/opt/movidius/ssd-caffe/build' Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 make: Leaving directory '/opt/movidius/ssd-caffe/build'
I put the full inputs and outputs of my session on https://hastebin.com/relinuyowe.java
@Tome_at_Intel I ran
make install and after apparently almost completing the
make my pi desktop has been frozen for the best part of a whole day at
[100%] BUILDING CXX ..., is this normal/recoverable?
@robmarkcole This is definitely not normal, but I have experienced a lockup one time during an sdk install. Not sure what causes it (heat, installation crash, or otherwise) since the install was left to run overnight, but the OS was not responsive and I had to unplug my Pi. I plugged the Pi back up and continued running make install and it seemed to continue successfully.
@robmarkcole Note: please allow sufficient time for the ncsdk to complete its installation process. The ncs installation should take well over an hour. The longest part is usually building Caffe. Building opencv (which is done manually afterwards by running the install-opencv script) can take over four hours. Thanks!