Windows环境下PCL配置错误 can not be found on this machine
windows系统下pcl安装参考:
https://blog.csdn.net/knighthood2001/article/details/139197693?ops_request_misc=&request_id=&biz_id=102&utm_term=windows%20pcl&utm_medium=distribute.pc_search_result.none-task-blog-2 allsobaiduweb~default-1-139197693.142 v100pc_search_result_base8&spm=1018.2226.3001.4187
我是用clion,安装完成后,在cmakelists中配置:
cmake_minimum_required(VERSION 3.28)
project(testPcl)
set(CMAKE_CXX_STANDARD 17)
set(PCL_DIR "C:\\Program Files\\PCL 1.11.1\\cmake")
find_package(PCL COMPONENTS common REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(testPcl main.cpp)
运行报错:can not be found on this machine
找了一些方法,最后发现是编译器的问题,选择vs的编辑器即可。