Index: /trunk/saliency_detection/CMakeLists.txt
===================================================================
--- /trunk/saliency_detection/CMakeLists.txt	(revision 35)
+++ /trunk/saliency_detection/CMakeLists.txt	(revision 36)
@@ -22,4 +22,6 @@
 #rosbuild_gensrv()
 
+find_package(OpenCV REQUIRED)
+
 #common commands for building c++ executables and libraries
 #rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
@@ -33,8 +35,9 @@
 
 rosbuild_add_executable(saliencyDetectionHou src/saliencyDetectionHou.cpp)
+target_link_libraries(saliencyDetectionHou ${OpenCV_LIBS})
 rosbuild_add_executable(saliencyDetectionRudinac src/saliencyDetectionRudinac.cpp)
+target_link_libraries(saliencyDetectionRudinac ${OpenCV_LIBS})
 rosbuild_add_executable(saliencyDetectionItti src/saliencyDetectionItti.cpp)
-
-target_link_libraries(saliencyDetectionItti cvgabor)
+target_link_libraries(saliencyDetectionItti cvgabor ${OpenCV_LIBS})
 
 rosbuild_make_distribution(0.1.0)
Index: /trunk/saliency_detection/manifest.xml
===================================================================
--- /trunk/saliency_detection/manifest.xml	(revision 35)
+++ /trunk/saliency_detection/manifest.xml	(revision 36)
@@ -10,4 +10,5 @@
   <review status="unreviewed" notes=""/>
   <url>http://ros.org/wiki/saliency_detection</url>
+  <rosdep name="opencv2"/>
   <depend package="roscpp"/>
   <depend package="sensor_msgs"/>
Index: /trunk/saliency_detection/src/cvgabor.cpp
===================================================================
--- /trunk/saliency_detection/src/cvgabor.cpp	(revision 35)
+++ /trunk/saliency_detection/src/cvgabor.cpp	(revision 36)
@@ -311,5 +311,4 @@
     CvMat* kernel = cvCreateMat(Width, Width, CV_32FC1);
     double ve;
-    CvScalar S;
     switch(Type)
     {
@@ -503,4 +502,5 @@
         break;
     }
+    return NULL;
 }
 
