g++ compiler not working for opencv installed inside ros-fuerte
Hi,
I have installed ros-fuerte-desktop-full
and with it opencv got installed. Opencv code is working inside any ros package that I create. However, some times I like to work outside ROS and have Geany installed. I have given the following set build command to geany for compilation
g++ "%f" `pkg-config --cflags --libs opencv` -o "%e"
When I try to build it says:
Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable. No package 'opencv' found.
My PKG_CONFIG_PATH already contains opencv.pc file. Here is the output of some flags:
#echo $PKG_CONFIG_PATH
/opt/ros/fuerte/lib/pkgconfig: //this path contains opencv.pc
#pkg-config --cflags --libs opencv
-I/opt/ros/fuerte/include/opencv -I/opt/ros/fuerte/include -L/opt/ros/fuerte/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab
#pkg-config --libs opencv
-L/opt/ros/fuerte/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab
Any help would be greatly appreciated.