'boost_thread' not being found during installation

Asked by Jack

During installation, boost_thread is not being found and consequently, the dolfin install doesn't complete. This has never happened before. This is on a Mac (Snow Leopard).

I've set Boost_LIBRARYDIR, BOOST_ROOT, BOOST_DIR, with the same result.

Here's the error message:

CMake Error at /opt/local/share/cmake-2.8/Modules/FindBoost.cmake:1123 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.44.0

  Boost include path: /opt/local/include

  The following Boost libraries could not be found:

          boost_thread

  Some (but not all) of the required Boost libraries were found. You may
  need to install these additional Boost libraries. Alternatively, set
  Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.

Jack

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Andre Massing
Solved:
Last query:
Last reply:
Revision history for this message
Best Andre Massing (massing) said :
#1

Den 13.11.10 15.27, skrev Jack:
> New question #133882 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/133882
>
> During installation, boost_thread is not being found and consequently, the dolfin install doesn't complete. This has never happened before. This is on a Mac (Snow Leopard).
>
> I've set Boost_LIBRARYDIR, BOOST_ROOT, BOOST_DIR, with the same result.
>
Are you compiling dolfin via dorsal or on you own? In the latter case
you could add -DBoost_USE_MULTITHREADED:BOOL=ON
during the cmake configuration step. I had the same problem a couple of
days ago and Johannes pointed out the flag to be added.
Hope that helps you as well.
--
Andre

> Here's the error message:
>
> CMake Error at /opt/local/share/cmake-2.8/Modules/FindBoost.cmake:1123 (message):
> Unable to find the requested Boost libraries.
>
> Boost version: 1.44.0
>
> Boost include path: /opt/local/include
>
> The following Boost libraries could not be found:
>
> boost_thread
>
> Some (but not all) of the required Boost libraries were found. You may
> need to install these additional Boost libraries. Alternatively, set
> Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
> to the location of Boost.
>
> Jack
>
>

Revision history for this message
Jack (attacking-chess) said :
#2

Thanks. That worked.

How do I enable GMP?

Jack

Revision history for this message
Andre Massing (massing) said :
#3

Den 13.11.10 16.36, skrev Jack:
> Question #133882 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/133882
>
> Jack posted a new comment:
> Thanks. That worked.
>
> How do I enable GMP?
>
> Jack
>
I have no idea whether there is an appropriate cmake flag, but as a
quick hack you could probably comment out
line 85
set(DOLFIN_ENABLE_GMP OFF)
in the CMakeList.txt in your dolfin src path.
But I guess there is a more elegant way to activate or deactivate
certain optional packages.
--
Andre

Revision history for this message
Jack (attacking-chess) said :
#4

Thank you.

Jack

Revision history for this message
Jack (attacking-chess) said :
#5

Thanks Andre Massing, that solved my question.

Revision history for this message
Benjamin Kehlet (benjamik) said :
#6

I think you can do cmake -DDOLFIN_ENABLE_GMP=true on the command line as well.