nangoon / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

Build Fails on Ubuntu 12.04 LTS due to failure to locate opencv libraries #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure
2. make
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
ehci-0.4
Ubuntu-12.04 LTS
opencv-2.4.9

Please provide any additional information below.
Fails to locate share opencv libraries

Original issue reported on code.google.com by ehoffman...@gmail.com on 3 Sep 2014 at 10:02

Attachments:

GoogleCodeExporter commented 8 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