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.

"make examples" error

idata
Employee
6,777 Views

Hello. I have newly installed Ubuntu 16.04 LTS.

 

I am following instructions on this page: https://developer.movidius.com/start

 

Executed these commands without error

 

mkdir -p ~/workspace cd ~/workspace git clone https://github.com/movidius/ncsdk.git cd ~/workspace/ncsdk make install

 

But when I am trying to run these commands on a new terminal window

 

cd ~/workspace/ncsdk make examples

 

Getting errors below. What should I do?:

 

/bin/sh: 1: ./get_ilsvrc_aux.sh: not found Makefile:9: recipe for target 'all' failed make[5]: *** [all] Error 127 make[5]: Leaving directory '/home/master/workspace/ncsdk/examples/data/ilsvrc12' Makefile:23: recipe for target 'prereqs' failed make[4]: *** [prereqs] Error 2 make[4]: Leaving directory '/home/master/workspace/ncsdk/examples/caffe/GoogLeNet' cp: '../../caffe/GoogLeNet/graph' durumlanamadı: Böyle bir dosya ya da dizin yok Makefile:9: recipe for target 'googlenet' failed make[3]: *** [googlenet] Error 1 make[3]: Leaving directory '/home/master/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/master/workspace/ncsdk/examples/apps' Makefile:12: recipe for target 'apps/.' failed make[1]: *** [apps/.] Error 2 make[1]: Leaving directory '/home/master/workspace/ncsdk/examples' Makefile:57: recipe for target 'examples' failed make: *** [examples] Error 2
0 Kudos
32 Replies
idata
Employee
1,726 Views

@Tome_at_Intel Hello could you help me out when i run make examples i get this error: make[3]: *** [profile] Aborted (core dumped)

 

make[3]: Leaving directory '/home/guru/workspace/ncsdk/examples/caffe/AlexNet'

 

Makefile:12: recipe for target 'AlexNet/.' failed

 

make[2]: *** [AlexNet/.] Error 2

 

make[2]: Leaving directory '/home/guru/workspace/ncsdk/examples/caffe'

 

Makefile:12: recipe for target 'caffe/.' failed

 

make[1]: *** [caffe/.] Error 2

 

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

 

Makefile:57: recipe for target 'examples' failed

 

make: *** [examples] Error 2
0 Kudos
idata
Employee
1,726 Views

Hi @kabare

 

Try uninstalling by running make uninstall, then make clean, then reinstall the ncsdk2 by running make install.

 

Be sure to set new pythonpath environment variables, then close the terminal and re open a new one to run make examples.

 

Please let me know if this information is helpful.

 

Regards,

 

Sahira
0 Kudos
idata
Employee
1,726 Views

@Sahira_at_Intel , Thank you for your response ,i have done as you instructed but i am still getting this error:

 

making 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/guru/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/guru/workspace/ncsdk/examples/apps/multistick_cpp'

 

Makefile:13: recipe for target 'multistick_cpp/.' failed

 

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

 

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

 

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

 

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

 

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

 

Makefile:57: recipe for target 'examples' failed

 

make: *** [examples] Error 2

 

I'll highly appreciate if you would help me out.

0 Kudos
idata
Employee
1,726 Views

Hi @kabare

 

Please try performing an uninstall again, making sure to delete the ncsdk folder and all its contents after running make uninstall (I apologize for not mentioning this step earlier). Then download a fresh copy of the NCSDK from https://github.com/movidius/ncsdk or do a Git clone https://github.com/movidius/ncsdk. Navigate to the NCSDK folder then run make install. Open a new terminal and then run make examples.

 

If the file was originally corrupted, running make install without deleting the NCSDK folder first would have corrupted the installation again and resulted in the error. Please let me know if this was helpful.

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
1,725 Views

Hello @Sahira_at_Intel ,i tried what you advised me to do but unfortunately i am still getting this error:

 

make[3]: *** [profile] Aborted (core dumped)

 

make[3]: Leaving directory '/home/guru/ncsdk/examples/caffe/AlexNet'

 

Makefile:12: recipe for target 'AlexNet/.' failed

 

make[2]: *** [AlexNet/.] Error 2

 

make[2]: Leaving directory '/home/guru/ncsdk/examples/caffe'

 

Makefile:12: recipe for target 'caffe/.' failed

 

make[1]: *** [caffe/.] Error 2

 

make[1]: Leaving directory '/home/guru/ncsdk/examples'

 

Makefile:57: recipe for target 'examples' failed

 

make: *** [examples] Error 2

 

what could be the problem?

0 Kudos
idata
Employee
1,725 Views

Hi @kabare

 

A couple questions so I can help you work through this issue:

 

     

  1. What OS/machine are you using?
  2.  

  3. Are you using the NCS or NCS2?
  4.  

  5. Are you using NCSDK1 or NCSDK2?
  6.  

  7. From the logs from your original post, it looks like the mvNCCompile command was not found. This leads me to believe that the NCSDK install is not completing successfully. Can you please post the output after you run make install?
  8.  

  9. Can you navigate to the ncsdk/examples/caffe/GoogLeNet OR ncsdk/examples/apps/ (then go to either hello_ncs_cpp or hello_ncs_py), plug in your NCS, then make run. Please let me know if the example executed successfully or not. This will let us know if the NCSDK installed successfully or not.
  10.  

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
1,725 Views

Hello @Sahira_at_Intel , i am running on UBUNTU 16.04 LTS and i am running on NCSDK .When i run make install this is the output:

 

7ffb81b28000-7ffb81b2a000 rw-p 00022000 08:01 2766221 /usr/local/lib/python3.5/dist-packages/scipy/optimize/_nnls.cpython-35m-x86_64-linux-gnu.so

 

7ffb81b2a000-7ffb81b2d000 r-xp 00000000 08:01 2766213 /usr/local/lib/python3.5/dist-packages/scipy/optimize/_zeros.cpython-35m-x86_64-linux-gnu.so./install-ncsdk.sh: line 393: 3659 Aborted (core dumped) python3 -c "import caffe" 2> /dev/null

 

ssd-caffe present and we're currently pointing to it

 

Caffe already installed, skipping…

 

Removing previous references to previous caffe installation…done

 

Adding caffe to PYTHONPATH

 

export PYTHONPATH="${PYTHONPATH}:/opt/movidius/caffe/python"

 

Removing NCSDK toolkit file…/usr/local/bin/mvNCCheck

 

Removing NCSDK toolkit file…/usr/local/bin/mvNCProfile

 

Removing NCSDK toolkit file…/usr/local/bin/mvNCCompile

 

Removing NCSDK toolkit file…/usr/local/bin/ncsdk

 

dpkg-query: package 'python3-mvnc' is not installed and no information is available

 

Use dpkg --info (= dpkg-deb --info) to examine archive files,

 

and dpkg --contents (= dpkg-deb --contents) to list their contents.

 

dpkg-query: package 'mvnc-dev' is not installed and no information is available

 

Use dpkg --info (= dpkg-deb --info) to examine archive files,

 

and dpkg --contents (= dpkg-deb --contents) to list their contents.

 

dpkg-query: package 'mvnc' is not installed and no information is available

 

Use dpkg --info (= dpkg-deb --info) to examine archive files,

 

and dpkg --contents (= dpkg-deb --contents) to list their contents.

 

Processing ./NCSDK/ncsdk-x86_64/api

 

Installing collected packages: mvnc

 

Found existing installation: mvnc 1.12.1.1

 

Uninstalling mvnc-1.12.1.1:

 

Successfully uninstalled mvnc-1.12.1.1

 

Running setup.py install for mvnc: started

 

Running setup.py install for mvnc: finished with status 'done'

 

Successfully installed mvnc-1.12.1.1

 

You are using pip version 9.0.3, however version 18.1 is available.

 

You should consider upgrading via the 'pip install --upgrade pip' command.

 

Processing ./NCSDK/ncsdk-x86_64/api

 

Installing collected packages: mvnc

 

Found existing installation: mvnc 1.12.1.1

 

Uninstalling mvnc-1.12.1.1:

 

Successfully uninstalled mvnc-1.12.1.1

 

Running setup.py install for mvnc: started

 

Running setup.py install for mvnc: finished with status 'done'

 

Successfully installed mvnc-1.12.1.1

 

You are using pip version 9.0.3, however version 18.1 is available.

 

You should consider upgrading via the 'pip install --upgrade pip' command.

 

NCS Libraries have been installed in /usr/local/lib

 

NCS Toolkit binaries have been installed in /usr/local/bin

 

NCS Include files have been installed in /usr/local/include

 

NCS Python API has been installed in /opt/movidius, and PYTHONPATH environment variable updated

 

Updating udev rules…

 

Adding user 'guru' to 'users' group

 

Setup is complete.

 

The PYTHONPATH enviroment variable was added to your .bashrc as described in the Caffe documentation.

 

Keep in mind that only newly spawned terminals can see this variable!

 

This means that you need to open a new terminal in order to be able to use the NCSDK.

 

Please provide feedback in our support forum if you encountered difficulties.

 

When i run hello_ncs.py i get:

 

Hello NCS! Device opened normally.

 

Goodbye NCS! Device closed normally.

 

NCS device working.

 

but when i run make examples i get this error:

 

7f91617dc000-7f91619dc000 ---p 0005f000 08:01 2765664 /usr/local/lib/python3.5/dist-packages/scipy/interpolate/dfitpack.cpython-35m-x86_64-linux-gnu.so

 

7f91619dc000-7f91619e3000 rw-p 0005f000 08:01 2765664 /usr/local/lib/python3.5/dist-packages/scipy/interpolate/dfitpack.cpython-35m-x86_64-linux-gnu.soMakefile:64: recipe for target 'profile' failed

 

make[3]: *** [profile] Aborted (core dumped)

 

make[3]: Leaving directory '/home/guru/ncsdk/examples/caffe/AlexNet'

 

Makefile:12: recipe for target 'AlexNet/.' failed

 

make[2]: *** [AlexNet/.] Error 2

 

make[2]: Leaving directory '/home/guru/ncsdk/examples/caffe'

 

Makefile:12: recipe for target 'caffe/.' failed

 

make[1]: *** [caffe/.] Error 2

 

make[1]: Leaving directory '/home/guru/ncsdk/examples'

 

Makefile:57: recipe for target 'examples' failed

 

make: *** [examples] Error 2

 

what could i be doing wrong?

0 Kudos
idata
Employee
1,725 Views

Hi @kabare

 

It looks like the NCSDK installed successfully! I still would recommend going into each example and make run instead of make examples. Sometimes running make examples can be a little problematic.

 

navigate to the ncsdk/examples/caffe/GoogLeNet, then make run.

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
1,725 Views

Hi,

 

I might encounter similar situations.

 

My system and equipment are:

 

     

  1. OS/machine: LXLE OS 16.04.4 ( It's based on Ubuntu 16.04)
  2.  

  3. Using the NCS
  4.  

  5. Using NCSDK2
  6.  

  7. Side note: I have to uninstall Anaconda to pass the installation of NCSDK
  8.  

 

The tail of the output after make install is (all the output looks good to me, there's no error messages):

 

NCS Toolkit binaries have been installed in /usr/local/bin NCS Include files have been installed in /usr/local/include Processing /opt/movidius/NCSDK/ncsdk-x86_64/api Installing collected packages: mvnc Running setup.py install for mvnc: started Running setup.py install for mvnc: finished with status 'done' Successfully installed mvnc-2.8.1.2 You are using pip version 8.1.1, however version 19.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Processing /opt/movidius/NCSDK/ncsdk-x86_64/api Installing collected packages: mvnc Running setup.py install for mvnc: started Running setup.py install for mvnc: finished with status 'done' Successfully installed mvnc-2.8.1.2 You are using pip version 8.1.1, however version 19.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. NCS Python API has been installed in /opt/movidius, and PYTHONPATH environment variable updated NCS Libraries have been installed in /usr/local/lib Updating udev rules... Adding user 'thk' to 'users' group Installation is complete. Please provide feedback in our support forum if you encountered difficulties. The PYTHONPATH environment variable was added to your .bashrc as described in the Caffe documentation. New bash processes including new terminals will use the updated value of PYTHONPATH. To use the NCSDK in this shell, set PYTHONPATH now: export PYTHONPATH="${PYTHONPATH}:/opt/movidius/caffe/python"

 

Run hello_ncs.py or hello_ncs.cpp shows the system detecting the NCS device without problems:

 

Hello NCS! Device opened normally. Goodbye NCS! Device Closed normally. NCS device working.

 

But make in other example directories always returns error. For instance, in the example of /ncsdk/examples/caffe/GoogLeNet, make compile, make profile, and make check gets the following error message, respectively:

 

making compile mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt Makefile:80: recipe for target 'compile' failed make: *** [compile] Illegal instruction (core dumped)

 

 

making profile mvNCProfile deploy.prototxt -s 12 Makefile:65: recipe for target 'profile' failed make: *** [profile] Illegal instruction (core dumped)

 

making check mvNCCheck -w bvlc_googlenet.caffemodel -i ../../data/images/nps_electric_guitar.png -s 12 -id 546 deploy.prototxt -S 255 -M 110 -metric top1 Makefile:85: recipe for target 'check' failed make: *** [check] Illegal instruction (core dumped)

 

Actually I had installed and run examples successfully about two months ago. The only difference might be that this time I'm running LXLE but last time I was using Lubuntu.

0 Kudos
idata
Employee
1,726 Views

Hi @hiankun

 

I also ran into some errors myself when I tried to run those commands (hello_ncs was working just fine for me too). Try Uninstalling the NCSDK (and manually deleting the folder), then reinstalling because this worked for me. All examples and make commands execute without errors. Please let me know if this was helpful.

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
1,726 Views

Hi @Sahira_at_Intel , I'm sorry for the late reply.

 

Yesterday I stared at the Illegal instruction (core dumped) error message when I tried to import tensorflow as tf in the Python3 prompt, and a faint memory came back to me: Downgrade to Tensorflow 1.5 as a workaround to this problem.

 

Actually I have encountered this problem last year and found the solution given in the thread which I even bookmarked: mvNCCompile Fails - Illegal instruction

 

My laptop has a pretty old CPU (Intel i3-m370) which doesn't support AVX instructions. It might be the reason for all the errors.

 

Something to add is: I ran the make install in my fresh new Lubuntu 16.04 so that the script handled all the installations of relevant libraries (include Caffe). Then I ran sudo pip3 uninstall tensorflow followed by sudo pip3 install tensorflow==1.5 to solve the make examples problem.

 

I also tried to install Tensorflow 1.5 before make install but somehow I messed up something that produced no module named caffe error. I have no enough time to try all the install combinations out, and just write down these for your reference.

0 Kudos
idata
Employee
1,726 Views

Hi @hiankun

 

Thank you for sharing your solution!

 

Best Regards,

 

Sahira
0 Kudos
Reply