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

error during installation NC SDK on ubuntu 16.04

idata
Employee
999 Views

[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/ssd-caffe/build'

 

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

 

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

 

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

 

Makefile:127: recipe for target 'all' failed

 

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

 

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

 

Installation failed. Error on line 498

 

any ideas what's the problem?

0 Kudos
5 Replies
idata
Employee
679 Views

problem solved: I had to increase the memory on the virtual machine

0 Kudos
idata
Employee
679 Views

@ai4things Glad you got it to work. How much memory did you set your VM to use to make it work? I'm sure other users may find this information useful. Thanks.

0 Kudos
idata
Employee
679 Views

I'm getting the following error while installing on Ubuntu 16.04, I'm not using VM

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBAStrip@LIBTIFF_4.0' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyUnicodeUCS4_FromEncodedObject'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyNumber_InPlaceDivide' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyString_Size'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyString_FromStringAndSize' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFIsTiled@LIBTIFF_4.0'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyString_InternFromString' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyInt_AsLong'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyUnicodeUCS4_AsWideChar' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFWriteScanline@LIBTIFF_4.0'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFGetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFScanlineSize@LIBTIFF_4.0'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyString_AsString' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyString_FromFormat'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFClose@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyClass_Type' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyString_FromString'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyFile_AsFile' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPy_InitModule4_64'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFOpen@LIBTIFF_4.0' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyInt_Type'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyInt_FromLong' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyFile_FromString'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetField@LIBTIFF_4.0'

 

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference to PyNumber_Divide' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_python.so: undefined reference toPyString_Type'

 

/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetErrorHandler@LIBTIFF_4.0'

 

collect2: error: ld returned 1 exit status

 

tools/CMakeFiles/convert_annoset.dir/build.make:134: recipe for target 'tools/convert_annoset' failed

 

make[3]: *** [tools/convert_annoset] Error 1

 

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

 

CMakeFiles/Makefile2:555: recipe for target 'tools/CMakeFiles/convert_annoset.dir/all' failed

 

make[2]: *** [tools/CMakeFiles/convert_annoset.dir/all] Error 2

 

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

 

Makefile:127: recipe for target 'all' failed

 

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

 

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

 

Installation failed. Error on line 498
0 Kudos
idata
Employee
679 Views

system config is:

 

Memory : 16GB

 

Processor: Intel Core i7

 

OS: Ubuntu 16.04

 

Any idea how to resolve this ?

0 Kudos
idata
Employee
679 Views

@vikhanna

 

I think, It is not a problem of CPU, memory or OS.

 

Error installing caffe.

 

And probably there are conflicting versions of libraries other than Caffe that have already been introduced.

 

It is clear that there is a problem with /opt/movidius/caffe/Makefile .

 

Since it is very time consuming to solve problems one by one, I think, the fastest solution is to introduce NCSDK in a slim Ubuntu environment.

 

I have encountered the same problem many times.

 

If you do not want to destroy the environment, we recommend building an environment with VM (ex. OracleVM Virtualbox).

 

If you intend to do your best…

 

git clone https://github.com/BVLC/caffe.git

 

You need to modify Makefile.config by yourself, paying attention to GPU presence, CUDA presence, PYTHON version, OpenCV version.

 

Also, it is necessary to modify the environment variables.

 

Finally, do the following.

 

make -j4

 

I hope it will be helpful for you.

0 Kudos
Reply