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.
6503 Discussions

mvNCCompile: command not found when running make examples

idata
Employee
2,087 Views

Hi all, I am trying to get NCS to run on a CompactRIO.

 

The device is running a customized version of Linux developed by NI.

 

On paper it looks doable so I am giving it a try.

 

I have followed the getting started guide and ran 'make install' sucessfully.

 

When doing cd ~/workspace/ncsdk and 'make examples' I received the following message:

 

 

! admin@NI-cRIO-9039-Sync-01CB255E:~/workspace/ncsdk# make examples

 

!./install-opencv.sh

 

!OpenCV already setup for python

 

!\nmake examples starting.

 

!(cd examples; make)

 

!make[1]: Entering directory '/home/admin/workspace/ncsdk/examples'

 

!make -C apps/.

 

!make[2]: Entering directory '/home/admin/workspace/ncsdk/examples/apps'

 

!make -C hello_ncs_py/.

 

!make[3]: Entering directory '/home/admin/workspace/ncsdk/examples/apps/hello_ncs_py'

 

!nothing to make, use 'make run' to run.

 

!make[3]: Leaving directory '/home/admin/workspace/ncsdk/examples/apps/hello_ncs_py'

 

!make -C multistick_cpp/.

 

!make[3]: Entering directory '/home/admin/workspace/ncsdk/examples/apps/multistick_cpp'

 

!\nmaking googlenet

 

!(cd ../../caffe/GoogLeNet; make compile; cd ../../apps/multistick_cpp; cp ../../caffe/GoogLeNet/graph ./googlenet.graph;)

 

!make[4]: Entering directory '/home/admin/workspace/ncsdk/examples/caffe/GoogLeNet'

 

!\nmaking prereqs

 

!(cd ../../data/ilsvrc12; make)

 

!make[5]: Entering directory '/home/admin/workspace/ncsdk/examples/data/ilsvrc12'

 

!make[5]: Leaving directory '/home/admin/workspace/ncsdk/examples/data/ilsvrc12'

 

!\nmaking prototxt

 

!Prototxt file already exists

 

!\nmaking caffemodel

 

!caffemodel file already exists

 

!\nmaking compile

 

!mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt

 

!make[4]: mvNCCompile: Command not found

 

!Makefile:80: recipe for target 'compile' failed

 

!make[4]: *** [compile] Error 127

 

!make[4]: Leaving directory '/home/admin/workspace/ncsdk/examples/caffe/GoogLeNet'

 

!cp: cannot stat '../../caffe/GoogLeNet/graph': No such file or directory

 

!Makefile:9: recipe for target 'googlenet' failed

 

!make[3]: *** [googlenet] Error 1

 

!make[3]: Leaving directory '/home/admin/workspace/ncsdk/examples/apps/multistick_cpp'

 

!Makefile:12: recipe for target 'multistick_cpp/.' failed

 

!make[2]: *** [multistick_cpp/.] Error 2

 

!make[2]: Leaving directory '/home/admin/workspace/ncsdk/examples/apps'

 

!Makefile:12: recipe for target 'apps/.' failed

 

!make[1]: *** [apps/.] Error 2

 

!make[1]: Leaving directory '/home/admin/workspace/ncsdk/examples'

 

!Makefile:57: recipe for target 'examples' failed

 

!make: *** [examples] Error 2

 

!admin@NI-cRIO-9039-Sync-01CB255E:~/workspace/ncsdk# ncsdk

 

 

It looks like the mvNCCompile command is not found, resulting subsequent actions failing.

 

Is there anyway to check if the installation was successful and that this could be just a path issue?
0 Kudos
3 Replies
idata
Employee
1,532 Views

I read the caffe import error thread found my mvNCCompile under /opt/movidius/NCSDK/ncsdk-x86_64/tk/

 

admin@NI-cRIO-9039-Sync-01CB255E:~/workspace/ncsdk# find / -name mvNC* /opt/movidius/NCSDK/ncsdk-armv7l/tk/mvNCProfile.py /opt/movidius/NCSDK/ncsdk-armv7l/tk/mvNCCompile.py /opt/movidius/NCSDK/ncsdk-armv7l/tk/mvNCCheck.py /opt/movidius/NCSDK/ncsdk-x86_64/tk/mvNCProfile.py /opt/movidius/NCSDK/ncsdk-x86_64/tk/mvNCCompile.py /opt/movidius/NCSDK/ncsdk-x86_64/tk/mvNCCheck.py

 

and added the directory to PYTHONPATH (not sure if this is how you do it)

 

admin@NI-cRIO-9039-Sync-01CB255E:~/workspace/ncsdk# export PYTHONPATH=/opt/movidius/NCSDK/ncsdk-x86_64/tk/:$PYTHONPATH

 

but I still cannot get make examples to work. Please help!

0 Kudos
idata
Employee
1,532 Views

     

  1. 把movidius/NCSDK/ncsdk-x86_64下的tk文件夹复制到 /usr/local/bin 并改名ncsdk

     

    command:sudo cp –r tk /usr/local/bin/ncsdk
  2.  

  3. 把tk 文件夹下的mvNCCheck.py软连接到/usr/local/bin目录下

     

    command:sudo ln –s ncsdk/mvNCCheck.py ./mvNCCheck
  4.  

  5. 同样的方式把mvNCCompile.py mvNCProfile.py软连接到当下

     

    command:sudo ln –s ncsdk/mvNCCompile.py ./ mvNCCompile

     

    command:sudo ln –s ncsdk/ mvNCProfile.py ./ mvNCProfile
  6.  

0 Kudos
PJIA01
Beginner
1,532 Views
0 Kudos
Reply