zoukankan      html  css  js  c++  java
  • PCL编译历程

    boost 编译安装包下载地址: http://boost.teeks99.com/

    boost安装:http://blog.sina.com.cn/s/blog_7c48b0f10102v0zj.html

    boost 源码包:https://sourceforge.net/projects/boost/files/boost/

    1.问题

    libboost_thread-vc100-mt-gd-1_50.lib(thread.obj) : error LNK2019: external symbol "public: static class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,10000000> > > __cdecl boost::chrono::system_clock::now(void)" (?now@system_clock@chrono@boost@@SA?AV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0JIJGIA@@boost@@@23@@23@XZ)not resolved in function "public: bool __thiscall boost::thread::try_join_until(class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const &)" (?try_join_until@thread@boost@@QAE_NABV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@2@@Z) 
    3>C:PCLinpcl_octree_debug.dll : fatal error LNK1120: 1 external not risolved

    将cmake/pcl_find_boost.cmake文件里的

    # Required boost modules  
    find_package(Boost 1.40.0 REQUIRED COMPONENTS system filesystem thread date_time iostreams) 

    修改为

    # Required boost modules  
    find_package(Boost 1.40.0 REQUIRED COMPONENTS system filesystem thread date_time iostreams chrono)  

    cmake/pcl_find_boost.cmake文件中相应内容为

    # Required boost modules  
    set(BOOST_REQUIRED_MODULES system filesystem thread date_time iostreams)  
    # Starting with Boost 1.50, boost_thread depends on chrono. As this is not  
    # taken care of automatically on Windows, we add an explicit dependency as a  
    # workaround.  
    if(WIN32 AND Boost_VERSION VERSION_GREATER "104900")  
      set(BOOST_REQUIRED_MODULES ${BOOST_REQUIRED_MODULES} chrono)  
    endif(WIN32 AND Boost_VERSION VERSION_GREATER "104900")  

    参考:http://blog.csdn.net/lming_08/article/details/19114417

  • 相关阅读:
    android 属性动画
    android EventBus
    android gson使用
    Date、String、Calendar类型之间的转化
    2020-08-26:裸写算法:树的非递归先序遍历。
    2020-08-25:BloomFilter的原理以及Zset的实现原理。
    2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
    2020-08-23:描述HTTPS和HTTP的区别。
    2020-08-22:I/O多路复用中select/poll/epoll的区别?
    2020-08-21:网络IO模型有哪些?
  • 原文地址:https://www.cnblogs.com/lwngreat/p/5728117.html
Copyright © 2011-2022 走看看