<div>Actually I have built boost from source with the version I downloaded, and I've run the install script given by boost. However, I just cannot let CMake find it.</div><div><div><br></div><div>[ D:/Program Files/CMake/share/cmake-3.9/Modules/FindBoost.cmake:1450 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = D:/Program Files/PCL 1.8.0/3rdParty/Boost/include/boost-1_61/lib; ...(many other directories)</div><div>[ D:/Program Files/CMake/share/cmake-3.9/Modules/FindBoost.cmake:1595 ] Searching for THREAD_LIBRARY_RELEASE: libboost_thread-vc141-mt-1_61;libboost_thread-vc141-mt;libboost_thread-vc140-mt-1_61;libboost_thread-vc140-mt;libboost_thread-mt-1_61;libboost_thread-mt;libboost_thread </div><div><br></div><div></div><div>These are two lines in the output message, and I'm sure there is a file named "libboost_thread-vc141-mt-1_61.lib" in the lib directory listed in the first line where CMake will search for in.</div><div><br></div><div>However, the error message told me:</div><div><br></div><div><div><span style=" color:#ff0000;">Could not find the following static Boost libraries: boost_thread</span></div><div><br></div><div>I don't know how this happened since it seems that CMake had already found the lib files. The attached log file shows the detail.</div><div><br></div><div>(PS: really sorry to reply again, I'm new to mailing list service)</div><div><br></div><div>Thanks,</div><div>Jacob Zhong</div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Bo Zhou";<bo.schwarzstein@gmail.com>;</div><div><b>发送时间:</b> 2017年8月4日(星期五) 中午12:19</div><div><b>收件人:</b> "钟元鑫"<cmpute@qq.com>; <wbr></div><div><b>抄送:</b> "cmake"<cmake@cmake.org>; <wbr></div><div><b>主题:</b> Re: [CMake] Not able to find boost with cmake</div></div><div><br></div><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:7DFA70E3@D4E6C253.E50D8559" style="border:none"></div><div><img src="cid:A56076E6@D317FD5B.E50D8559" 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 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></div></div><div><br></div><div></div>