Hi,

I just did a fresh check-out of the 2.1 branch, and when I re-ran CMake,
I had the unpleasant surprise that Boost was no longer found (before
then, it was found in the cache, and evidently the flags were set as
they should have been). (this is an Ubuntu 6.06).

I copied the FindBoost.cmake from /usr/local/share/cmake-2.4/Modules
(the 2.4.5 I installed yesterday) and it is working again.

I had a look why, and it seems that in the system FindBoost, we take
account of the version numbers in the libraries - for example (with
strace) here's the list of places we search for libboost-filesystem:

/lib/libboost_filesystem-gcc-mt.so
/lib/libboost_filesystem-gcc-mt.a
/usr/lib/libboost_filesystem-gcc-mt.so
/usr/lib/libboost_filesystem-gcc-mt.a
/usr/local/lib/libboost_filesystem-gcc-mt.so
/usr/local/lib/libboost_filesystem-gcc-mt.a
/usr/lib/w32api/libboost_filesystem-gcc-mt.so
/usr/lib/w32api/libboost_filesystem-gcc-mt.a
/usr/X11R6/lib/libboost_filesystem-gcc-mt.so
/usr/X11R6/lib/libboost_filesystem-gcc-mt.a
/usr/lib/X11/libboost_filesystem-gcc-mt.so
/usr/lib/X11/libboost_filesystem-gcc-mt.a
/opt/local/lib/libboost_filesystem-gcc-mt.so
/opt/local/lib/libboost_filesystem-gcc-mt.a
/usr/pkg/lib/libboost_filesystem-gcc-mt.so
/usr/pkg/lib/libboost_filesystem-gcc-mt.a
/opt/csw/lib/libboost_filesystem-gcc-mt.so
/opt/csw/lib/libboost_filesystem-gcc-mt.a
/opt/lib/libboost_filesystem-gcc-mt.so
/opt/lib/libboost_filesystem-gcc-mt.a
/usr/lib/libboost_filesystem-gcc-mt.so
/usr/lib/libboost_filesystem-gcc-mt.a
/usr/local/lib/libboost_filesystem-gcc-mt.so
/usr/local/lib/libboost_filesystem-gcc-mt.a
/opt/local/lib/libboost_filesystem-gcc-mt.so
/opt/local/lib/libboost_filesystem-gcc-mt.a
/sw/lib/libboost_filesystem-gcc-mt.so
/sw/lib/libboost_filesystem-gcc-mt.a

And here's the contents of /usr/lib/libboost_filesystem*:
/usr/lib/libboost_filesystem.a
/usr/lib/libboost_filesystem-gcc-1_33_1.so.1.33.1
/usr/lib/libboost_filesystem-gcc-mt-1_33_1.so.1.33.1
/usr/lib/libboost_filesystem-gcc-1_33_1.a
/usr/lib/libboost_filesystem-gcc-mt-1_33_1.a
/usr/lib/libboost_filesystem.so
/usr/lib/libboost_filesystem-gcc-1_33_1.so
/usr/lib/libboost_filesystem-gcc-mt-1_33_1.so

I'm not sure when the FindBoost.cmake was added to cmake/Modules in svn,
but it doesn't appear to work well in general.

Cheers,
Dave.

-- 
Dave Neary
OpenWengo Community Development Manager
Email: [EMAIL PROTECTED]
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to