learn PCL 02 How to use pcl in your own project.
2012-03-21 18:28
573 查看
资料来源http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config pcl官网的tutorial。 以及以下csdn博客文章,在此感谢:http://blog.csdn.net/a2008301610258/article/details/6557371 http://blog.csdn.net/halfwet/article/details/6927682因为我是从这个网址http://pointclouds.org/downloads/windows.html直接下载的all in one installer。所以安装就不在赘述,openNI貌似要自己双击安装。第一篇csdn bolg 已经说的很清楚了。我在这边再说一次,只是把自己在使用过程中,碰到的小错误分享给大家,小提醒而已。 在第一篇文章第四部CMAKE编译时发生了错误,不能generate。原因是 第一步写的***.cpp 文件名要发到第三步
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) project(MY_GRAND_PROJECT) find_package(PCL 1.3 REQUIRED COMPONENTS common io) include_directories(${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) add_definitions(${PCL_DEFINITIONS}) add_executable(pcd_write_test pcd_write.cpp) target_link_libraries(pcd_write_test ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})要把pcd_write_test 以及 pcd_write.cpp 改成 *** 及 ***.cpp。 改好了就可以configure 和 generate。 生成的.sln在build下。 但如果修改代码,加入了新的pcl函数,就需要用cmake重新generate。
add_executable(*** ***.cpp)
相关文章推荐
- Sharing with Git,Learn how to use Git to share your Xcode projects
- How to use cocoa pod in your iOS project
- How to use cocoa pod in your iOS project
- how-to-create-and-use-your-own-icon-fonts
- How to use user’s location in your app?
- Google App Engine问题之Your project must be configured to use a JDK in order to use JSPs
- How to learn on your own
- How to implement Tags in your web project.
- How to Reference and Use JSTL in your Web Application
- [XAF] How to use the Allow/Deny permissions policy in the existing project
- How to build & install GLFW 3 and use it in a Linux project
- How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?
- Learn how to Use UIPageViewController in iOS
- HOWTO: How to Provide Your Own DllMain in an MFC Regular DLL
- how to use MongoDB Java driver in your env
- How To Write Your Own Ebook(r) In 7 Days!
- How to use another indicator in your code?
- How to add QuartzCore.framework for your project in xcode?
- How to Set Up Your Own Home Seedbox (in Windows)
- How to do android emma coverage test in your own ant scipts