[Gridflow-cvs] [svn] commit: r6848 - /trunk/configure

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Nov 22 23:50:30 EST 2011


Author: matju
Date: Tue Nov 22 23:50:30 2011
New Revision: 6848

Log:
use pkg-config with opencv

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Nov 22 23:50:30 2011
@@ -401,9 +401,10 @@
 		return quicktime_open==0; }`}}
 Feature.add("opencv","Intel OpenCV") {
 	produces_o ["src/opencv.o"]
-	uses_so ["-lcv"]
-        uses_so ["-L/Users/pddev/lib","-lcv"] if OSX # for the build system used in 9.13
-       #uses_so ["-F/Users/pddev/Frameworks -framework OpenCV"] if OSX
+	uses_so `pkg-config --libs opencv`.split(/\s+/) if not OSX
+	#uses_so ["-lcv"]
+        #uses_so ["-L/Users/pddev/lib","-lcv"] if OSX # for the build system used in 9.13
+        uses_so ["-F/Users/pddev/Frameworks -framework OpenCV"] if OSX
 	action proc {DEFINES["OPENCV_SHARE_PATH"] =
 		File.dirname(C_INCLUDE_PATH.find {|x| File.exist?(x+"/opencv/cv.h")}) + "/share/opencv"}
 	test proc {c_test %`



More information about the Gridflow-cvs mailing list