opencv - Undefined reference in C with the open computer vision -


i'm trying test example using raspberry pi camera board opencv. code https://github.com/robidouille/robidouille/blob/master/raspicam_cv/raspicamcv.c

when typing make error :

undefined reference symbol cvsaveimage

i have header contains function cvsaveimage. when don't use cvsaveimage compiles successfully.

how know wich libraries missing? here output of pkg-config opencv --libs:

/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so /usr/local/lib/libopencv_viz.so /usr/lib/x86_64-linux-gnu/libxext.so /usr/lib/x86_64-linux-gnu/libx11.so /usr/lib/x86_64-linux-gnu/libice.so /usr/lib/x86_64-linux-gnu/libsm.so /usr/lib/x86_64-linux-gnu/libgl.so /usr/lib/x86_64-linux-gnu/libglu.so -ltbb -lrt -lpthread -lm -ldl

update: cvsaveimage in /usr/local/lib/libopencv_imgcodecs.so.3.0.0. have makefile don't know how resolve error it.

see output of pkg-config opencv --libs find out libraries you're missing, add them config. more information visit opencv 2.4.1 undefined references


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -