Ask Your Question
0

videoio not found error

asked 2017-07-27 06:33:09 -0600

zazazasaza gravatar image

/usr/bin/ld: /tmp/ccccrXWn.o: undefined reference to symbol '_ZN2cv11VideoWriterC1Ev' //usr/local/lib/libopencv_videoio.so.3.2: error adding symbols: DSO missing from command line

It also tells me that videoio.h not found when i build opencv even thou i have libv4l installed. How can i make opencv VideoWriter work properly?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-07-27 09:56:21 -0600

zazazasaza gravatar image

Solved. Just need a flag -lopencv_videoio

edit flag offensive delete link more

Comments

Hello @zazazasaza, I have the same error with 'libopencv_highgui'. An error example is posted below. Quick question you mention a way to solve this is to add a flag, well I have a makefile that has flag related syntax.

It looks like this:

Flag Line set(CMAKE_CXX_FLAGS "-DCPU_ONLY -std=c++0x -lopencv_videoio -lopencv_highgui -lz ${CMAKE_CXX_FLAGS}")

Q:How do I add the flag? Or is it in another program? Please let me thank you.

Below is [ERROR]:

usr/bin/ld: CMakeFiles/drive_train.dir/src/drive_train.cpp.o: undefined reference to symbol ‘_ZN2cv11VideoWriterC1Ev’ //usr/lib/libopencv_highgui.so.2.4: error adding symbols: DSO missing from command line

What I'm working with if software information is needed: *- Cuda 8.0, Caffe, CUDNN 7.05, ROS Kinetic, OpenCV 2.4.13

Joseguz101 gravatar imageJoseguz101 ( 2018-08-02 19:54:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-27 06:33:09 -0600

Seen: 1,861 times

Last updated: Jul 27 '17