Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers.

Undefined opencv symbol in module

0 votes

I have installed the SDK, used the command to clone the example module, wrote my own, and compiled.   Used the command to insert the video mapping into the configuration.

When I try to run the daemon with my module, I get an error during runtime, when it looks for the OpenCV symbol   findHomography:

INF Engine::Engine: Loaded 48 vision processing modes.
INF Engine::onParamChange: Using [stdio] hardware (4-pin connector) serial port
INF Engine::onParamChange: No USB serial port used
INF Engine::postInit: Initalizing Python...
INF Engine::postInit: Starting camera device /dev/video0
INF Camera::Camera: [9] V4L2 camera /dev/video0 card Integrated_Webcam_HD bus usb-0000:00:14.0-11
INF Engine::postInit: Using display for video output
INF Engine::setFormatInternal: OUT: YUYV 640x480 @ 28.5fps CAM: YUYV 640x480 @ 28.5fps MOD: amir:floortrack
INF Camera::setFormat: Camera set video format to 640x480 YUYV
INF Engine::setFormatInternal: Instantiating dynamic loader for /jevois/modules/amir/floortrack/floortrack.so
INF Engine::setFormatInternal: Module [floortrack] loaded, initialized, and ready.
INF Camera::streamOn: 6 buffers of 614400 bytes allocated
Score: 32520
jevois-daemon: symbol lookup error: /jevois/modules/amir/floortrack/floortrack.so: undefined symbol: _ZN2cv14findHomographyERKNS_11_InputArrayES2_idRKNS_12_OutputArrayEid

asked Aug 5 in Programmer Questions by Photon (320 points)

1 Answer

0 votes
Best answer
Seems that my assumption that the appropriate opencv libraries are automatically linked was incorrect.

The solution was to add the required library   opencv_calib3d  to the list of libraries in the CMakeLists.txt
answered Aug 5 by Photon (320 points)