[Gridflow-dev] small issue with OpenCV on Debian Etch
Claude Heiland-Allen
claudiusmaximus at goto10.org
Tue Nov 27 09:10:59 EST 2007
Hi,
I checked out the current GridFlow CVS, and (perhaps unwisely) wanted to
have all the possible options, including OpenCV. There was a slight
issue with Debian Etch which calls libcv.so libcv0.9.7.so instead.
Extract from config.log:
----8<----
[opencv] Intel OpenCV:
#include <opencv/cv.h>
int main () {return 0;}
/usr/bin/env g++ -I/usr/local/include -I/home/claude/include -I. -xc++
-fno-operator-names -fno-omit-frame-pointer -I/usr/X11R6/include
-I/usr/lib/ruby/1.8/i486-linux -I/usr/include/tcl8.4 tmp/4954.cpp -o tmp/49
54 -L/home/claude/lib -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib
-L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64 -L/usr/X11R6/lib
-L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64 -L/usr/X11R6/lib
-L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64 -L/usr/X11R6/lib
-L/opt/gnome/lib -L/usr/X11R6/lib64 -L/opt/gnome/lib64 -lcv
/usr/bin/ld: cannot find -lcv
collect2: ld returned 1 exit status
error #256
-------------------------------------------------------> missing (gcc
compilation error)
----8<----
Seems Debian Etch has the version number in the library name:
----8<----
minimus:~# ls -1 /usr/lib/libcv*
/usr/lib/libcv0.9.7.a
/usr/lib/libcv0.9.7.la
/usr/lib/libcv0.9.7.so
/usr/lib/libcv0.9.7.so.0
/usr/lib/libcv0.9.7.so.0.9.7
/usr/lib/libcvaux0.9.7.a
/usr/lib/libcvaux0.9.7.la
/usr/lib/libcvaux0.9.7.so
/usr/lib/libcvaux0.9.7.so.0
/usr/lib/libcvaux0.9.7.so.0.9.7
----8<----
This patch fixes it:
----8<----
--- configure.orig 2007-11-27 13:36:06.000000000 +0000
+++ configure 2007-11-27 13:36:42.000000000 +0000
@@ -740,7 +740,7 @@
tag :opencv
name "Intel OpenCV"
uses_o ["optional/opencv.o"]
- uses_so ["-lcv"]
+ uses_so ["-lcv0.9.7"]
options ["HAVE_OPENCV"]
defines {{:OPENCV_SHARE_PATH =>
File.dirname($C_INCLUDE_PATH.find {|x| File.exist?(x+"/opencv/cv.h")}) +
"/share/opencv"}}
test proc {
----8<----
Hope this is useful to someone,
Thanks,
Claude
--
http://claudiusmaximus.goto10.org
More information about the Gridflow-dev
mailing list