CMake error : Attempt to add a custom rule to output
Hi everybody,
I am trying to migrate the face_recognition package to catkin but I have lots of problems.
I tried with : http://wiki.ros.org/catkin/migrating_...
but it doesn't work. So I create a new catkin workspace and I tried to add every folder one by one as if it was a new project. When I try to do a catkin_make I have this message :
CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/include/face_recognition/FaceRecognitionAction.h.rule" which already has a custom rule.
CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/share/common-lisp/ros/face_recognition/msg/FaceRecognitionAction.lisp.rule" which already has a custom rule.
CMake Error: Attempt to add a custom rule to output "/home/www/ros/devel/lib/python2.7/dist-packages/face_recognition/msg/_FaceRecognitionAction.py.rule" which already has a custom rule.
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Erreur 1
Invoking "make cmake_check_build_system" failed
My Cmakelist.txt is like this:
cmake_minimum_required(VERSION 2.8.3)
project(face_recognition)
find_package(catkin REQUIRED COMPONENTS
actionlib
actionlib_msgs
cv_bridge
image_transport
#opencv2
roscpp
roslib
rospy
std_msgs
)
add_message_files(
FILES
FaceRecognitionAction.msg
#FaceRecognitionActionFeedback.msg
#FaceRecognitionActionGoal.msg
#FaceRecognitionActionResult.msg
#FaceRecognitionFeedback.msg
#FaceRecognitionGoal.msg
#FaceRecognitionResult.msg
#FRClientGoal.msg
)
find_package( OpenCV REQUIRED )
add_action_files(
FILES
FaceRecognition.action
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
actionlib_msgs
std_msgs
)
include_directories( ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} )
add_executable(Fserver src/face_recognition.cpp)
add_executable(Fclient src/face_rec_client.cpp)
Can somebody help me please? thank you
Please post your CMakeLists.txt
I edited my post