CMake Error: add_executable cannot create target ““ because another target with the same name已解決
catkin_make報錯輸出如下:
CMake Error at experiment3/CMakeLists.txt:215 (add_executable):
add_executable cannot create target "track" because another target with the
same name already exists. The existing target is an executable created in
source directory "/home/zth/work_ws/src/experiment3". See documentation
for policy CMP0002 for more details.
解決方法:
CMakeLists.txt部分內容如下:
這裡有兩處忘記改了,改為如下內容即可:
add_executable(receive_process src/receive_process.cpp)
target_link_libraries(receive_process ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(show_img src/show_img.cpp)
target_link_libraries(show_img ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
相關文章
- iptables:No chain/target/match by the nameAI
- Error in invoking target 'agent nmhs' of makefileError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Openfiler配置ISCSI Target及FC Target
- Error in invoking target “install” of makefile 'ins_ctx.mk'Error
- ROS報錯The target name "test" is reserved when CTest testing is enabledROS
- Error creating bean with name 解決ErrorBean
- Error:Cannot build artifact xxx:war exploded‘ because it is included into a circular dependencyErrorUI
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- 已解決:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 問題
- 啟動docker容器時報錯:iptables: No chain/target/match by that name.DockerAI
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- CSS E:targetCSS
- currentTarget VS target
- .NET 5 中 Target Framework 詳解Framework
- 解決辦法:ORA-00845: MEMORY_TARGET not supported on thi
- JAVA 元註解 @Target @Retention @Documented @InheritedJava
- firewalld: zone的target
- iOS 配置多targetiOS
- JavaScript event.targetJavaScript
- CentOS7.6安裝oracle 11.2.0.4 Error in invoking target 'agent nmhs' of makefileCentOSOracleError
- 解決 ImportError: cannot import name 'imread' from 'scipy.misc'ImportError
- 【已解決】Error filter ListenerStartErrorFilter
- Dynamics CRM the field cannot be deleted because it is used in one or more process的解決方法delete
- ORA-00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET
- Eclipse——編譯已有工程出現“ No rule to make target”的解決方案Eclipse編譯
- MEMORY_TARGET not supported on this system
- Waiting for target device to come onlineAIdev
- currentTarget與target區別
- new.target 屬性
- iOS Swift 工程使用 TargetiOSSwift
- As 除錯 no target device found除錯dev
- JAVA元註解@interface詳解(@Target,@Documented,@Retention,@Inherited)Java
- NLog自定義Target之MQTTMQQT
- Xcode使用筆記之TargetXCode筆記
- [20210723]Minimum sga_target.txt
- 編譯opencv 提示opencv_sfm links to target absl::log but not found解決辦法編譯OpenCV
- ORA-00843,ORA-00849 When Trying To Change SGA_TARGET With MEMORY_MAX_TARGET=0