ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
target_link_libraries(prom2ROS ~/simulateur/lib/Linux/comm/libcomm_debug)
This is probably what isn't working for you. You've already specified the library search path with:
link_directories(~/simulateur/lib/Linux/comm)
target_link_libraries
now needs the individual library names you want to link, without the paths. This:
target_link_libraries(prom2ROS libcomm_debug)
would probably be enough.
2 | Some more points |
target_link_libraries(prom2ROS ~/simulateur/lib/Linux/comm/libcomm_debug)
This is probably what isn't working for you. You've already specified the library search path with:
link_directories(~/simulateur/lib/Linux/comm)
target_link_libraries
now needs the individual library names you want to link, without the paths. This:
target_link_libraries(prom2ROS libcomm_debug)
would probably be enough.
Besides that, there some things I'd do differently:
cwd
, which is fragileFindXXX
script (or write one, in this case for the libraries and include paths of your simulator)find_library
, find_path
, etc, instead of hard coding their locations3 | No.3 Revision |
target_link_libraries(prom2ROS ~/simulateur/lib/Linux/comm/libcomm_debug)
This is probably what isn't working for you. You've already specified the library search path with:
link_directories(~/simulateur/lib/Linux/comm)
target_link_libraries
now needs the individual library names you want to link, without the paths. This:
target_link_libraries(prom2ROS libcomm_debug)
would probably be enough.
Besides that, there some things I'd do differently:
cwd
, which is FindXXX
script (or write one, in this case for the libraries and include paths of your simulator)find_library
, find_path
, etc, instead of hard coding their locations4 | No.4 Revision |
target_link_libraries(prom2ROS ~/simulateur/lib/Linux/comm/libcomm_debug)
This is probably what isn't working for you. You've already specified the library search path with:
link_directories(~/simulateur/lib/Linux/comm)
target_link_libraries
now needs the individual library names you want to link, without the paths. This:
target_link_libraries(prom2ROS
libcomm_debug)comm_debug)
would probably be enough.
Besides that, there some things I'd do differently:
cwd
, which is fragile (not in this case, but in general they are)FindXXX
script (or write one, in this case for the libraries and include paths of your simulator)find_library
, find_path
, etc, instead of hard coding their locationsEDIT: Oops, forgot to remove the lib
prefix from the library. Updated my answer above.