本文主要是介绍ROS编译报错 The dependency target “_gencpp“ of target “person_client“ does not exist.,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
ROS编译报错 The dependency target “_gencpp” of target “person_client” does not exist.
catkin_make报错:
在CMakelist.txt中增加以下字段后编译报错:CMake Error at learning_service/CMakeLists.txt:171 (add_dependencies):
The dependency target “_gencpp” of target “person_client” does not exist.
add_executable(person_server src/person_server.cpp)
target_link_libraries(person_server ${catkin_LIBRARIES})
add_dependencies(person_server ${PROJECT_NAEM}_gencpp)add_executable(person_client src/person_client.cpp)
target_link_libraries(person_client ${catkin_LIBRARIES})
add_dependencies(person_client ${PROJECT_NAEM}_gencpp)
报错:
解决办法
将CMakelist.txt第一行版本3.0.2修改为2.8.3,重新编译后解决。
这篇关于ROS编译报错 The dependency target “_gencpp“ of target “person_client“ does not exist.的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!