Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
450 Views

ROS Intel Movidius Build Error

Hi. I am using https://github.com/intel/ros_intel_movidius_ncs to create the compute stick ROS node and have been running into a lot of build errors. I am not experienced enough to dig into the build errors but have tried all sorts of troubleshooting with no luck.

 

These are the main errors I am getting (full terminal log attached):

 

**ros_intel_movidius_ncs/movidius_ncs_lib/CMakeFiles/movidius_ncs_lib.dir/build.make:62: recipe for target 'ros_intel_movidius_ncs/movidius_ncs_lib/CMakeFiles/movidius_ncs_lib.dir/src/ncs.cpp.o' failed

 

make[2]: *** [ros_intel_movidius_ncs/movidius_ncs_lib/CMakeFiles/movidius_ncs_lib.dir/src/ncs.cpp.o] Error 1

 

CMakeFiles/Makefile2:1394: recipe for target 'ros_intel_movidius_ncs/movidius_ncs_lib/CMakeFiles/movidius_ncs_lib.dir/all' failed

 

make[1]: *** [ros_intel_movidius_ncs/movidius_ncs_lib/CMakeFiles/movidius_ncs_lib.dir/all] Error 2

 

make[1]: *** Waiting for unfinished jobs….

 

[ 63%] Linking CXX executable /home/l3o/catkin_ws/devel/lib/movidius_ncs_lib/unittest_environment

 

[ 63%] Built target unittest_environment

 

[ 64%] Linking CXX executable /home/l3o/catkin_ws/devel/lib/movidius_ncs_example/movidius_ncs_example_stream_detection

 

[ 66%] Linking CXX executable /home/l3o/catkin_ws/devel/lib/movidius_ncs_example/movidius_ncs_example_stream_classification

 

[ 66%] Built target movidius_ncs_example_stream_detection

 

[ 66%] Built target movidius_ncs_example_stream_classification

 

Makefile:138: recipe for target 'all' failed

 

make: * [all] Error 2

 

Invoking "make -j4 -l4" failed

 

Every step in the above github link has been completed successfully but clearly something is off.

 

Any help appreciated!

Tags (2)
0 Kudos
1 Reply
idata
Community Manager
125 Views

Hi @krym1337

 

I went through the ros_intel_movidius_ncs instructions and successfully ran the classification demo. There may be an issue with your environment setup, I recommend trying the instructions on a fresh Ubuntu 16.04 install. Could you share more details about your environment (Ubuntu version, virtual machine?, RealSense Camera or standard USB Camera)?

 

Below are the commands I used with the Neural Compute Stick and a regular USB Cam.

 

Install Neural Compute SDK (1.12)

 

git clone https://github.com/movidius/ncsdk.git make install

 

Install Neural Compute Application Zoo

 

git clone https://github.com/movidius/ncappzoo.git make all

 

Install ROS Kinetic

 

Followed the ROS Kinetic installation instructions

 

Created a workspace for catkin

 

Followed setup instructions for kinetic

 

**Setup the environment **

 

cd /opt/movidius sudo ln -s <your-workspace>/ncappzoo /opt/movidius/ncappzoo sudo apt-get install ros-kinetic-usb-cam

 

Building and Installation

 

cd ~/catkin_ws/src git clone https://github.com/intel/object_msgs git clone https://github.com/intel/ros_intel_movidius_ncs.git cd ros_intel_movidius_ncs git checkout master cd ~/catkin_ws catkin_make catkin_make install source install/setup.bash cp ~/catkin_ws/src/ros_intel_movidius_ncs/data/labels/* /opt/movidius/ncappzoo/data/ilsvrc12/

 

Run the AlexNet Calssification for Video

 

#first terminal source ~/catkin_ws/install/setup.bash cd /opt/movidius/ncappzoo/caffe/AlexNet make roslaunch movidius_ncs_launch ncs_camera.launch cnn_type:=alexnet camera:=usb

 

#second terminal source ~/catkin_ws/install/setup.bash roslaunch movidius_ncs_launch ncs_stream_classification_example.launch camera_topic:="/usb_cam/image_raw"

 

By the way, I did not see your full error log attached to the post. Could you share it?

 

Regards,

 

Jesus
Reply