{"action":"created","issue":{"url":"https://api.github.com/repos/graspit-simulator/graspit/issues/15","labels_url":"https://api.github.com/repos/graspit-simulator/graspit/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/graspit-simulator/graspit/issues/15/comments","events_url":"https://api.github.com/repos/graspit-simulator/graspit/issues/15/events","html_url":"https://github.com/graspit-simulator/graspit/pull/15","id":126628614,"number":15,"title":"Cmake files added","user":{"login":"JenniferBuehler","id":12842634,"avatar_url":"https://avatars.githubusercontent.com/u/12842634?v=3","gravatar_id":"","url":"https://api.github.com/users/JenniferBuehler","html_url":"https://github.com/JenniferBuehler","followers_url":"https://api.github.com/users/JenniferBuehler/followers","following_url":"https://api.github.com/users/JenniferBuehler/following{/other_user}","gists_url":"https://api.github.com/users/JenniferBuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/JenniferBuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JenniferBuehler/subscriptions","organizations_url":"https://api.github.com/users/JenniferBuehler/orgs","repos_url":"https://api.github.com/users/JenniferBuehler/repos","events_url":"https://api.github.com/users/JenniferBuehler/events{/privacy}","received_events_url":"https://api.github.com/users/JenniferBuehler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-14T10:44:54Z","updated_at":"2016-01-29T18:27:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/graspit-simulator/graspit/pulls/15","html_url":"https://github.com/graspit-simulator/graspit/pull/15","diff_url":"https://github.com/graspit-simulator/graspit/pull/15.diff","patch_url":"https://github.com/graspit-simulator/graspit/pull/15.patch"},"body":"This pull request only adds the cmake files. No changes to original source included yet."},"comment":{"url":"https://api.github.com/repos/graspit-simulator/graspit/issues/comments/176898188","html_url":"https://github.com/graspit-simulator/graspit/pull/15#issuecomment-176898188","issue_url":"https://api.github.com/repos/graspit-simulator/graspit/issues/15","id":176898188,"user":{"login":"jvarley","id":1675542,"avatar_url":"https://avatars.githubusercontent.com/u/1675542?v=3","gravatar_id":"","url":"https://api.github.com/users/jvarley","html_url":"https://github.com/jvarley","followers_url":"https://api.github.com/users/jvarley/followers","following_url":"https://api.github.com/users/jvarley/following{/other_user}","gists_url":"https://api.github.com/users/jvarley/gists{/gist_id}","starred_url":"https://api.github.com/users/jvarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvarley/subscriptions","organizations_url":"https://api.github.com/users/jvarley/orgs","repos_url":"https://api.github.com/users/jvarley/repos","events_url":"https://api.github.com/users/jvarley/events{/privacy}","received_events_url":"https://api.github.com/users/jvarley/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T18:27:04Z","updated_at":"2016-01-29T18:27:04Z","body":"So I am able to get this to build just fine when using cmake. \r\n\r\nWhen I use catkin_make, I get:\r\n\r\nCMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:291 (message):\r\n  catkin_package() absolute include dir '/usr/include/qhull/qhull' does not\r\n  exist\r\nCall Stack (most recent call first):\r\n  /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)\r\n  graspit/CMakeLists.txt:692 (catkin_package)\r\n\r\nshould this line in CMakeMacros/FindQhull.cmake:\r\nset(QHULL_INCLUDE_DIRS \"${QHULL_INCLUDE_DIR}/qhull;${QHULL_INCLUDE_DIR}\")\r\nbe:\r\nset(QHULL_INCLUDE_DIRS \"${QHULL_INCLUDE_DIR}\")\r\n\r\nIf I change the above, then it builds fine with cmake and catkin_make.  I am on 12.04 not 14.04 on the machine I am currently testing this perhaps that accounts for the difference?\r\n\r\nIf I make this change, and then I build with catkin_make, It compiles just fine when it is alone. \r\n\r\nIf I have a graspit plugin in my workspace, then catkin_make fails.  I have not been able to figure out exactly why yet.  As a minimal example, I make a workspace with\r\n1) graspit\r\n2) graspit_msgs https://github.com/CURG/graspit_msgs.git\r\n3) graspit_moveit_plugin https://github.com/CURG/graspit_moveit_plugin.git\r\n\r\nfor the moveit plugin, I have to comment out everythin inside grasp_msg_publisher.cpp sendPickupRequest function this has to do with another PR.  \r\nhttps://github.com/graspit-simulator/graspit/pull/9\r\n\r\nWith this workspace, caktin_make fails with:\r\n\r\n> CMake Error at /home/jvarley/ros/temp_ws/build/graspit_msgs/cmake/graspit_msgs-genmsg.cmake:65 (add_custom_target):\r\n>   add_custom_target cannot create target \"graspit_msgs_generate_messages_cpp\"\r\n>   because another target with the same name already exists.  The existing\r\n>   target is a custom target created in source directory\r\n>   \"/home/jvarley/ros/temp_ws/src/graspit_moveit_plugin\".  See documentation\r\n>   for policy CMP0002 for more details.\r\n> Call Stack (most recent call first):\r\n>   /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)\r\n>   graspit_msgs/CMakeLists.txt:66 (generate_messages)\r\n> \r\n> \r\n> CMake Error at /home/jvarley/ros/temp_ws/build/graspit_msgs/cmake/graspit_msgs-genmsg.cmake:124 (add_custom_target):\r\n>   add_custom_target cannot create target\r\n>   \"graspit_msgs_generate_messages_lisp\" because another target with the same\r\n>   name already exists.  The existing target is a custom target created in\r\n>   source directory \"/home/jvarley/ros/temp_ws/src/graspit_moveit_plugin\".\r\n>   See documentation for policy CMP0002 for more details.\r\n> Call Stack (most recent call first):\r\n>   /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)\r\n>   graspit_msgs/CMakeLists.txt:66 (generate_messages)\r\n> \r\n> \r\n> CMake Error at /home/jvarley/ros/temp_ws/build/graspit_msgs/cmake/graspit_msgs-genmsg.cmake:183 (add_custom_target):\r\n>   add_custom_target cannot create target \"graspit_msgs_generate_messages_py\"\r\n>   because another target with the same name already exists.  The existing\r\n>   target is a custom target created in source directory\r\n>   \"/home/jvarley/ros/temp_ws/src/graspit_moveit_plugin\".  See documentation\r\n>   for policy CMP0002 for more details.\r\n> Call Stack (most recent call first):\r\n>   /opt/ros/hydro/share/genmsg/cmake/genmsg-extras.cmake:299 (include)\r\n>   graspit_msgs/CMakeLists.txt:66 (generate_messages)\r\n> \r\n> \r\n> -- Configuring incomplete, errors occurred!\r\n> \r\n\r\nBut if I run it with the graspit-ros package rather than the graspit package, everything builds just fine.  The graspit_moveit_plugin does not generate any messages or have the targets that the error message is saying it does. I know the error doesn't mention anything to do with the graspit package, but it is causing the problem.   I am not sure what exactly is causing the problem. "}}