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 targetError
- Granules of pga_aggregate_target 494 cannot be more than memory_target (497)
- Error in invoking target 'agent nmhs' of makefileError
- error in invoking target install of makefileError
- Error in invoking target 'irman ioracle' of makefileErrorOracle
- MTTR advisory is disabled because FAST_START_MTTR_TARGET is not setAST
- [Oracle] Error in invoking target 'agent nmhs' of makefileOracleError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- pod》error:The dependency `` is not used in any concrete targetError
- Exception String: Error in invoking target of makefileExceptionError
- memory_max_target,memory_target,pga_aggregate_target,sga_target
- memory_target、sga_target、pga_target的設定
- RMAN-20005: target database name is ambiguousDatabase
- Openfiler配置ISCSI Target及FC Target
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- 【故障處理】ORA-12545: Connect failed because target hostAI
- ORA-12545: Connect failed because target host or object does not existAIObject
- 啟動docker容器時報錯:iptables: No chain/target/match by that name.DockerAI
- Centos 7 docker 啟動容器 iptables 報 No chain/target/match by that nameCentOSDockerAI
- ROS報錯The target name "test" is reserved when CTest testing is enabledROS
- Import Error: cannot import name ‘export_saved_modelImportErrorExport
- Exception String: Error in invoking target install of makefileExceptionError
- jQuery :targetjQuery
- Error creating bean with name 解決ErrorBean
- “rman target /” 和 “rman nocatalog target /” 區別
- 關於memory_max_target,memory_target,sga_max_size,sga_target
- 【例項】之memory_target、sga_target,pga_aggregate_target關係
- Error in invoking target “install” of makefile 'ins_ctx.mk'Error
- Error in invoking target agent nmhs of makefile ins_emagent.mkError
- 【已解決】Error filter ListenerStartErrorFilter
- .NET 5 中 Target Framework 詳解Framework
- JSF中 Target Unreachable, returned null錯誤的解決JSNull
- linux上“rman can't open target”問題解決Linux
- Error:Cannot build artifact xxx:war exploded‘ because it is included into a circular dependencyErrorUI
- CSS E:targetCSS
- currentTarget VS target
- Dynamics CRM the field cannot be deleted because it is used in one or more process的解決方法delete