-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build abb_libegm_samples on Windows #121
Comments
UPDATE: I read here the I have updated my CMakeList.txt accordingly (I think, please correct me if I've done something wrong), here it is: Click to expandcmake_minimum_required(VERSION 2.8.3)
project(abb_libegm_samples)
find_package(catkin REQUIRED COMPONENTS roscpp)
find_package(abb_libegm REQUIRED)
###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS roscpp
DEPENDS abb_libegm
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
)
#################################
# Build the basic level samples #
#################################
add_executable(${PROJECT_NAME}_joint_trajectory_node src/a1_joint_trajectory_node.cpp)
set_target_properties(${PROJECT_NAME}_joint_trajectory_node PROPERTIES OUTPUT_NAME a1_joint_trajectory_node PREFIX "")
add_dependencies(${PROJECT_NAME}_joint_trajectory_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_joint_trajectory_node ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_pose_trajectory_node src/a2_pose_trajectory_node.cpp)
set_target_properties(${PROJECT_NAME}_pose_trajectory_node PROPERTIES OUTPUT_NAME a2_pose_trajectory_node PREFIX "")
add_dependencies(${PROJECT_NAME}_pose_trajectory_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_pose_trajectory_node ${catkin_LIBRARIES})
########################################
# Build the intermediate level samples #
########################################
add_executable(${PROJECT_NAME}_joint_static_goal_node src/b1_joint_static_goal_node.cpp)
set_target_properties(${PROJECT_NAME}_joint_static_goal_node PROPERTIES OUTPUT_NAME b1_joint_static_goal_node PREFIX "")
add_dependencies(${PROJECT_NAME}_joint_static_goal_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_joint_static_goal_node ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_pose_static_goal_node src/b2_pose_static_goal_node.cpp)
set_target_properties(${PROJECT_NAME}_pose_static_goal_node PROPERTIES OUTPUT_NAME b2_pose_static_goal_node PREFIX "")
add_dependencies(${PROJECT_NAME}_pose_static_goal_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_pose_static_goal_node ${catkin_LIBRARIES})
####################################
# Build the advanced level samples #
####################################
add_executable(${PROJECT_NAME}_joint_controller_node src/c1_joint_controller_node.cpp)
set_target_properties(${PROJECT_NAME}_joint_controller_node PROPERTIES OUTPUT_NAME c1_joint_controller_node PREFIX "")
add_dependencies(${PROJECT_NAME}_joint_controller_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_joint_controller_node ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_pose_controller_node src/c2_pose_controller_node.cpp)
set_target_properties(${PROJECT_NAME}_pose_controller_node PROPERTIES OUTPUT_NAME c2_pose_controller_node PREFIX "")
add_dependencies(${PROJECT_NAME}_pose_controller_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_pose_controller_node ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_joint_velocity_controller_node src/c3_joint_velocity_controller_node.cpp)
set_target_properties(${PROJECT_NAME}_joint_velocity_controller_node PROPERTIES OUTPUT_NAME c3_joint_velocity_controller_node PREFIX "")
add_dependencies(${PROJECT_NAME}_joint_velocity_controller_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_joint_velocity_controller_node ${catkin_LIBRARIES})
add_executable(${PROJECT_NAME}_pose_velocity_controller_node src/c4_pose_velocity_controller_node.cpp)
set_target_properties(${PROJECT_NAME}_pose_velocity_controller_node PROPERTIES OUTPUT_NAME c4_pose_velocity_controller_node PREFIX "")
add_dependencies(${PROJECT_NAME}_pose_velocity_controller_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME}_pose_velocity_controller_node ${catkin_LIBRARIES})
The new error I get when running Click to expand
|
that's indeed the cause of the problem you encountered.
almost correct. The change to add a separate
your new error is caused by the fact you're missing: This will update the include paths to also include the location of the header files of It will also cause |
Note: this is actually a duplicate of the issue you already found. The solution is mentioned in #18 (comment), which I believe you'd already also found. As such, I'm going to close this issue. Feel free to keep commenting on it. |
Thanks for your response, #18 (comment) didn't seem to be an explicit solution (to me at least): what do I need to add in place of the "..." in Adding this: target_link_libraries(${PROJECT_NAME} PRIVATE
abb_libegm::abb_libegm
${catkin_LIBRARIES}
) gives me the following error: Click to expand
I'm hoping to correct the errors and re-upload the |
As I wrote in #121 (comment):
All targets built by the You could also add |
Thank you for your help @gavanderhoorn! I got the package to build correctly. I'm uploading the updated |
Hi,
I found these abb_libegm samples from issue #18 and want to experiment with them to see if they can help me out. I have a
catkin_ws
with onlyabb_libegm
andabb_libegm_samples
. When I runcatkin_make_isolated
abb_libegm
builds successfully butabb_libegm_samples
gives me this error:Click to expand
What could be going wrong?
EDIT: The updated
abb_libegm_samples
can be found here.The text was updated successfully, but these errors were encountered: