Public bug reported:

I am trying to build https://github.com/sthalik/headtracker

but when it comes to linking I am getting the following error:

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8: undefined 
reference to symbol 'cvResize'
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8: error adding symbols: DSO 
missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [headtracker-ftnoir] Error 1
make[1]: *** [CMakeFiles/headtracker-ftnoir.dir/all] Error 2
make: *** [all] Error 2

I have tried uninstalling/purging and reinstalling opencv. The author of
the software suggested it may be conflicting versions of opencv, but I
can't see any sign of that on my system.

This is the cmake link.txt file:

/usr/bin/c++      CMakeFiles/headtracker-ftnoir.dir/ftnoir/main.cpp.o
CMakeFiles/headtracker-ftnoir.dir/ftnoir/compat.cpp.o  -o headtracker-
ftnoir  -L/home/james/Downloads/facetrack_noir2/headtracker -rdynamic
libheadtracker.a -lrt /usr/lib/x86_64-linux-
gnu/libopencv_videostab.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_ts.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_superres.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_stitching.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_ocl.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_gpu.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_photo.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_legacy.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_contrib.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_ml.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_calib3d.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_features2d.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_imgproc.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_objdetect.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_video.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_highgui.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_flann.so.2.4.8 /usr/lib/x86_64-linux-
gnu/libopencv_core.so.2.4.8 -lflandmark_static
-Wl,-rpath,/home/james/Downloads/facetrack_noir2/headtracker

** Affects: opencv (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1379965

Title:
  linking error with cmake

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1379965/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to