<div dir="ltr"><div>It's better not to use downloaded pre-built libraries, always build by yourself locally.<br></div><div><br></div><div>Before using Boost with CMake, please check <a href="https://cmake.org/cmake/help/v3.0/module/FindBoost.html">https://cmake.org/cmake/help/v3.0/module/FindBoost.html</a></div><div><br></div>If you're trying to use static boost libraries build by MSVC with shared runtime, please make sure the following statements exist in the PCL.<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>set(Boost_USE_STATIC_LIBS ON)</div></div><div><div>set(Boost_USE_MULTITHREADED ON)</div></div><div><div>set(Boost_USE_STATIC_RUNTIME OFF)</div></div></blockquote><div><div><br></div></div><div>Then if you properly set the Boost_INCLUDE_DIR, all the libraries should be ready then.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 4, 2017 at 1:05 PM, 钟元鑫 <span dir="ltr"><<a href="mailto:cmpute@qq.com" target="_blank">cmpute@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I'm trying to build PCL which has boost as dependency. However, when I download boost and build it, cmake cannot find it through any way.</div><div><br></div><div>I tried two version of boost, one is pre-build boost which was built by other person online and version is 1.61, another is one I downloaded whose version is 1.64. File structures of the two versions are the same:</div><div>[XXX]/include/boost-1_64/boost is the include dir and [XXX]/lib is the bin dir</div><div><img src="cid:475B1FF2@DAF68473.6FF28359" style="border:none"></div><div><img src="cid:EC7BE632@9C9BB14D.6FF28359" style="border:none"></div><div><br></div><div>I try to specify the Boost_INCLUDE_DIR to [XXX]/include/boost-1_64/<wbr>boost, the messages in output window is attached (I turned Boost_DEBUG on).</div><div><br></div><div>I'm on Window 10 and VS2017</div><div><br></div><div>Thanks,</div><div>Jacob Zhong</div></div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div><font size="4" face="楷体, 楷体_GB2312"><span style="line-height:27px">顺颂时祺</span></font></div><div><font face="黑体" size="4"><br></font></div><div><font face="黑体" size="4">钟元鑫  </font><font size="4">Yuanxin Zhong</font></div><div><span style="font-family:黑体">清华大学汽车工程系  </span><span style="line-height:1.5">Dept. of Automotive Engineering, Tsinghua Univ.</span></div><div>Ad:Haidian District, Beijing, P.R.China    100084</div><div>Tel:<a href="tel:+86%20178%208883%203119" value="+8617888833119" target="_blank">+86 17888833119</a></div><div><div style="line-height:23.7999992370605px">E-mail:cmpute<a href="mailto:wangtong19929@foxmail.com" style="outline:none;color:rgb(77,93,44)" target="_blank">@foxmail.com</a> / zhongyx<a href="mailto:tong-wan14@mails.tsinghua.edu.cn" style="outline:none;color:rgb(77,93,44)" target="_blank">14@mails.tsinghua.edu.<wbr>cn</a></div></div></div></div><div> </div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div>