[Gridflow-dev] small issue with OpenCV on Debian Etch

Claude Heiland-Allen claudiusmaximus at goto10.org
Tue Nov 27 09:10:59 EST 2007


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:

[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)

Seems Debian Etch has the version number in the library name:

minimus:~# ls -1 /usr/lib/libcv*

This patch fixes it:

--- 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")}) + 
         test proc {

Hope this is useful to someone,



More information about the Gridflow-dev mailing list