← Back to team overview

dolfin team mailing list archive

Re: CMake fails to find Boost libraries

 

On Thu, Aug 26, 2010 at 12:19:28PM +0200, Johannes Ring wrote:
> On Thu, Aug 26, 2010 at 12:10 PM, Benjamin Kehlet
> <benjamik@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > Hello!
> >
> > CMake currently fails to find the Boost libraries on my computer.
> >
> > I'm running Ubuntu Karmic and the Boost libraries are installed with
> > apt-get.
> >
> > If I change the Boost_USE_MULTITHREADED option to ON in CMakeLists.txt:136
> > it works.
>
> I have been looking at this since one of the buildbot slaves also has
> this problem. However, I couldn't find a way to search for both
> multithreaded and non-multithreaded Boost libraries using the
> FindBoost CMake module, so I ended up setting the
> Boost_USE_MULTITHREADED option to ON on the buildbot.

Will this break on other operating systems if we make it the default?

--
Anders


> Johannes
>
> > In /usr/lib/ all the the Boost libraries files have the "-mt" suffix :
> >
> > benjamik@SRL1185:~$ ls -l /usr/lib/libboost_program_options*
> > [...]
> > -rw-r--r-- 1 root root  135962 2010-04-15 05:45
> > /usr/lib/libboost_filesystem-mt.a
> > lrwxrwxrwx 1 root root      32 2010-08-23 23:35
> > /usr/lib/libboost_filesystem-mt.so -> libboost_filesystem-mt.so.1.38.0
> > -rw-r--r-- 1 root root   75632 2010-04-15 05:45
> > /usr/lib/libboost_filesystem-mt.so.1.38.0
> > -rw-r--r-- 1 root root  995632 2010-04-15 05:45 /usr/lib/libboost_graph-mt.a
> > [...]
> >
> > Benjamin
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dolfin
> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dolfin
> > More help   : https://help.launchpad.net/ListHelp
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp

--
Anders



Follow ups

References