error with cpp_classification/standalone_classify.bin

42 views
Skip to first unread message

Александр Печкин

unread,
Dec 25, 2019, 10:30:46 AM12/25/19
to Caffe Users
I have no idea how to fix it

CXX/LD -o .build_release/examples/mnist/convert_mnist_data.bin
CXX examples/cpp_classification/standalone_classify.cpp
CXX/LD -o .build_release/examples/cpp_classification/standalone_classify.bin
/usr/bin/ld: .build_release/examples/cpp_classification/standalone_classify.o: undefined reference to symbol '_ZN2cv12VideoCaptureD1Ev'
/usr/bin/ld: //usr/lib/arm-linux-gnueabihf/libopencv_videoio.so.3.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:591: .build_release/examples/cpp_classification/standalone_classify.bin] Error 1

Александр Печкин

unread,
Dec 25, 2019, 10:52:34 AM12/25/19
to Caffe Users
compiling on raspberry PI with make all

E Merth

unread,
Dec 25, 2019, 10:19:22 PM12/25/19
to Caffe Users
It is telling you that the file "/usr/lib/arm-linux-gnueabihf//libopencv_videoio.so.3.2" is missing.

Is this file located some other place on your Raspberry Pi? If you can find it then either make a symlink to it's location in /usr/lib/arm-linux-gnueabihf/, or edit your Makefile to include the location in the list of library directories.

I don't know much about Linux on Raspberry, this is just a generic answer that should work on any Linux. It is possible the library was not installed, you may need to install it.
Reply all
Reply to author
Forward
0 new messages