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.

Caffe make error in raspbian stretch.

idata
Employee
972 Views
I am following this to install SDK [https://developer.movidius.com/start](https://developer.movidius.com/start "https://developer.movidius.com/start") But after some time i am getting this error , _[ 75%] Built target caffe make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' Scanning dependencies of target upgrade_solver_proto_text make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' [ 75%] Building CXX object tools/CMakeFiles/upgrade_solver_proto_text.dir/upgrade_solver_proto_text.cpp.o [ 76%] Linking CXX executable upgrade_solver_proto_text ../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned int)' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' collect2: error: ld returned 1 exit status tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:128: recipe for target 'tools/upgrade_solver_proto_text' failed make[3]: *** [tools/upgrade_solver_proto_text] Error 1 make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' CMakeFiles/Makefile2:467: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed make[2]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2 make[2]: Leaving directory '/opt/movidius/bvlc-caffe/build' Makefile:127: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/opt/movidius/bvlc-caffe/build' Installing caffe... make[1]: Entering directory '/opt/movidius/bvlc-caffe/build' make[2]: Entering directory '/opt/movidius/bvlc-caffe/build' make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' [ 1%] Built target proto make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' [ 75%] Built target caffe make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' make[3]: Entering directory '/opt/movidius/bvlc-caffe/build' [ 76%] Linking CXX executable upgrade_solver_proto_text ../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned int)' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()' ../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' collect2: error: ld returned 1 exit status tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:128: recipe for target 'tools/upgrade_solver_proto_text' failed make[3]: *** [tools/upgrade_solver_proto_text] Error 1 make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build' CMakeFiles/Makefile2:467: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed make[2]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2 make[2]: Leaving directory '/opt/movidius/bvlc-caffe/build' Makefile:127: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/opt/movidius/bvlc-caffe/build' Installation failed. Error on line 522 _ i have downloaded Raspbian stretch image from here [https://raspberrypi.org/downloads/raspbian/](https://www.raspberrypi.org/downloads/raspbian/ "https://raspberrypi.org/downloads/raspbian/") My raspbian strectch config is like that: Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Model: 4 Model name: ARMv7 Processor rev 4 (v7l) CPU max MHz: 1200.0000 CPU min MHz: 600.0000 BogoMIPS: 38.40 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 will you please help me where i am doing wrong. @AshwinVijayakumar @Tome_at_Intel @ramana.rachakonda
0 Kudos
8 Replies
idata
Employee
673 Views

Hi all

 

@AshwinVijayakumar @Tome_at_Intel @ramana.rachakonda

 

Sir atlist update me anything .
0 Kudos
idata
Employee
673 Views

@imran Try to remove whole caffe build and install it again. Once I had similar issue with compiling caffe (although it was different error) and reinstalling helped. The best is to get also raspbian stretch clean image and begin the procedure from scratch.

0 Kudos
idata
Employee
673 Views

My pi is crashing at 4% of install. Did you resolve @imran ?

0 Kudos
idata
Employee
673 Views

yes @robmarkcole. Follow these tutorial for installing Raspbian stretch.

 

https://raspberrypi.org/documentation/installation/installing-images/linux.md

 

And for mvnc follow this tutorial.

 

https://developer.movidius.com/start

 

No issue now :smile:

0 Kudos
idata
Employee
673 Views

Ok on a fresh install of Stretch (version from 29-11-2017) **sudo make install **fails with the error below:

 

make[3]: Entering directory '/opt/movidius/bvlc-caffe/build'

 

[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 for instructions.

 

python/CMakeFiles/pycaffe.dir/build.make:62: recipe for target 'python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o' failed

 

make[3]: *** [python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o] Error 4

 

make[3]: Leaving directory '/opt/movidius/bvlc-caffe/build'

 

CMakeFiles/Makefile2:1117: recipe for target 'python/CMakeFiles/pycaffe.dir/all' failed

 

make[2]: *** [python/CMakeFiles/pycaffe.dir/all] Error 2

 

make[2]: Leaving directory '/opt/movidius/bvlc-caffe/build'

 

Makefile:127: recipe for target 'all' failed

 

make[1]: *** [all] Error 2

 

make[1]: Leaving directory '/opt/movidius/bvlc-caffe/build'

 

Installation failed. Error on line 522

0 Kudos
idata
Employee
673 Views

@robmarkcole The regular installation should not need sudo, just 'make install' and after that at some point it will ask you for password because install script uses combination of sudo and non-sudo commands.

0 Kudos
idata
Employee
673 Views

@georgievm_cms I receive the same error with make install (no sudo) unfortunately..

0 Kudos
idata
Employee
673 Views

Hi @robmarkcole .are you trying with lite, Because if you had fallow all the above steps, then it is supposed to work. Let me see, will revert you back

0 Kudos
Reply