Open GoogleCodeExporter opened 9 years ago
Hi, I haven't tried compiling ehci with opencv 2.4.9 in Linux, but,
from your make output, it links with opencv through this line:
g++ -g -O2 /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_video.so
/usr/local/lib/libopencv_videostab.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 -o .libs/6dofhand 6dofhand.o -lglut -lSM
-lICE -lXmu -lXi -lGLU -lGL /usr/local/lib/libopencv_ts.a -ltbb -lrt -lpthread
-lm ../lib/.libs/libehci.so -ldl
It is missing opencv's linking flags, like
-lopencv_core -lopencv_features2d etc...
Please try adding all these libraries manually through hitting the same
command, but with them added, something like this:
g++ -g -O2 /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_video.so
/usr/local/lib/libopencv_videostab.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 -o .libs/6dofhand 6dofhand.o -lglut -lSM
-lICE -lXmu -lXi -lGLU -lGL /usr/local/lib/libopencv_ts.a -ltbb -lrt -lpthread
-lm ../lib/.libs/libehci.so -ldl -lopencv_core -lopencv_features2d etc... (add
other libraries here)
Also, pkg-config should correctly return those linking flags. Can you check if
that's working, please?
Kind regards,
Daniel
Original comment by danielba...@gmail.com
on 5 Sep 2014 at 4:42
Original issue reported on code.google.com by
ehoffman...@gmail.com
on 3 Sep 2014 at 10:02Attachments: