Hi Andreas,<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, then most probably the layout of that binary installation differs<br>


from what the FindBoost.cmake file expects. So where is the boost thread<br>
library and how is it named?</blockquote><div><br>The latest available version of Boost offered by BoostPro is v1.38. The libraries are placed in:<br><br>  C:\Program Files\boost\boost_1_38\lib<br><br>The strange thing is that FindBoost *does* find Boost, but only if first run with no arguments, followed by explicitly setting BOOST_ROOT.<br>

<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Looking at this:<br>
<div class="im"></div> <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
&gt; <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/components/native/bf-cpp/CMakeLists.txt" target="_blank">https://skyking.microscopy.wisc.edu/svn/java/trunk/components/native/bf-cpp/CMakeLists.txt</a><br>


<br>
</div>The layout of that package seems to be utterly broken.<br></blockquote></div><br>Do you mean bf-cpp, or some other package? How is it &quot;broken&quot;? I am new to the CMake way of doing things, so would appreciate any advice for improvement.<br>

<br>Thanks,<br>Curtis<br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 1:26 PM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">On 23.06.09 13:09:25, Curtis Rueden wrote:<br>
&gt; First, I installed Boost using BoostPro&#39;s precompiled binaries at<br>
&gt; <a href="http://www.boostpro.com/download" target="_blank">http://www.boostpro.com/download</a>.<br>
&gt;<br>
&gt; Then I tried the following CMakeLists.txt file:<br>
&gt;<br>
&gt; ----------<br>
&gt; # Simple CMake build file for testing FindBoost. Fails on Windows with<br>
&gt; # Boost binaries from BoostPro computing (<a href="http://www.boostpro.com/" target="_blank">http://www.boostpro.com/</a>).<br>
&gt;<br>
&gt; cmake_minimum_required(VERSION 2.6)<br>
&gt;<br>
&gt; project(boostFail1)<br>
&gt;<br>
&gt; message(STATUS &quot;-- Boost:&quot;)<br>
&gt; set(Boost_USE_STATIC_LIBS OFF)<br>
&gt; set(Boost_USE_MULTITHREAD ON)<br>
&gt;<br>
&gt; find_package(Boost COMPONENTS thread REQUIRED)<br>
&gt;<br>
&gt; message(STATUS &quot;Boost_INCLUDE_DIR    : ${Boost_INCLUDE_DIR}&quot;)<br>
&gt; message(STATUS &quot;Boost_THREAD_LIBRARY : ${Boost_THREAD_LIBRARY}&quot;)<br>
&gt; ----------<br>
&gt;<br>
&gt; The error message I see is:<br>
&gt;<br>
&gt; ----------<br>
&gt; -- Boost:<br>
&gt; CMake Error at C:/Program Files/CMake<br>
&gt; 2.6/share/cmake-2.6/Modules/FindBoost.cmake:868 (message):<br>
&gt;   Unable to find the requested Boost libraries.<br>
&gt;<br>
&gt;   Boost version: 1.38.0<br>
&gt;<br>
&gt;   Boost include path: C:/Program Files/boost/boost_1_38<br>
&gt;<br>
&gt;   The following Boost libraries could not be found:<br>
&gt;<br>
&gt;           boost_thread<br>
&gt;<br>
&gt;   No Boost libraries were found.  You may need to set Boost_LIBRARYDIR to<br>
&gt; the<br>
&gt;   directory containing Boost libraries or BOOST_ROOT to the location of<br>
&gt;   Boost.<br>
&gt; Call Stack (most recent call first):<br>
&gt;   CMakeLists.txt:16 (find_package)<br>
&gt;<br>
&gt;<br>
&gt; Boost_INCLUDE_DIR    : C:/Program Files/boost/boost_1_38<br>
&gt; Boost_THREAD_LIBRARY : Boost_THREAD_LIBRARY-NOTFOUND<br>
&gt; ----------<br>
&gt;<br>
&gt; The problem does not occur on Linux or Mac OS X.<br>
<br>
</div></div>Well, then most probably the layout of that binary installation differs<br>
from what the FindBoost.cmake file expects. So where is the boost thread<br>
library and how is it named? Looking at this:<br>
<div class="im"><br>
&gt; <a href="https://skyking.microscopy.wisc.edu/svn/java/trunk/components/native/bf-cpp/CMakeLists.txt" target="_blank">https://skyking.microscopy.wisc.edu/svn/java/trunk/components/native/bf-cpp/CMakeLists.txt</a><br>


<br>
</div>The layout of that package seems to be utterly broken.<br>
<br>
Andreas<br>
<br>
--<br>
Caution: Keep out of reach of children.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>