前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >windows下编译pcl-master源码(带GPU)

windows下编译pcl-master源码(带GPU)

作者头像
点云PCL博主
发布2019-07-30 16:39:48
2.3K0
发布2019-07-30 16:39:48
举报
文章被收录于专栏:点云PCL

参考博客

1.http://pointclouds.org/documentation/tutorials/compiling_pcl_windows.php#compiling-pcl-windows

2. https://blog.csdn.net/artista/article/details/50897833

编译步骤

1. 第一步:下载pcl-master https://github.com/PointCloudLibrary/pcl

Eigen

Boost

Flann

Openni2

Qhull

Vtk

(第三方库我打算用pcl1.8的预编译库,即先安装好预编译的pcl1.8,因为预编译的1.8版本不包含gpu和cuda模块所以决定自己编译一遍)

2. 第二步:安装cuda

3.第三步:以管理员身份运行cmake(不知是否必要)

4.第四步:设置一些cmake找不到的变量

1.EIGEN_INCLUDE_DIR D:/pcl/3rdParty/Eigen/eigen3

Configure

2.Boost_INCLUDE_DIR D:/pcl/3rdParty/Boost/include/boost-1_59

5.CONFIGURE

全部勾选上

出现错误:

CMake Error at C:/ProgramFiles/CMake/share/cmake-3.11/Modules/FindBoost.cmake:2044 (message): Unable to find the requested Boost libraries. Boost version: 1.59.0 Boost include path: D:/pcl/3rdParty/Boost/include/boost-1_59 Could not find the following static Boost libraries: boost_filesystem boost_thread boost_date_time boost_iostreams boost_chrono

boost_system Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): cmake/pcl_find_boost.cmake:41 (find_package) CMakeLists.txt:419 (include)

解决办法:

手动将boost库一个一个添加进去

因为预编译的第三方库没有分好类,于是手动分类又添加了两个路径

CMake Error at C:/ProgramFiles/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137(message): Could NOT find Gtest (missing: GTEST_INCLUDE_DIR GTEST_SRC_DIR) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378(_FPHSA_FAILURE_MESSAGE) cmake/Modules/FindGtest.cmake:35 (find_package_handle_standard_args) test/CMakeLists.txt:11 (find_package)

取消掉globaltest

Cmake成功

-------------------------------------------------

打开vs2013工程再编译一下

Debug x64

1.All-build 重新生成

除了(example_nurbs_viewer_surface失败其他都成功了)

就不管那个了,因为主要用到gpu和cuda

2.INSTALL重新生成

Releasex64 进行同样的操作

---------------解析---------------

1.Cmake中CMAKE_INSTALL_PREFIX C:/Program Files/PCL

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2018-04-10,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 点云PCL 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档