[Mapnik-users] Building mapnik, boost_thread not found?
jburgess777 at googlemail.com
Thu Oct 30 21:09:13 CET 2008
On Thu, 2008-10-30 at 12:12 -0700, Jeff Burton wrote:
> Sent this before but from the wrong address...
> I'm trying to build mapnik in a shared hosting environment and having
> The webhost IT support suggested using pkgsrc to install mapnik. the
> package on pkgsrc is 0.4.something, so I did not use that.
> So I've tried to install all the required packages and then build
> mapnik, and things have been going ok, but now I am stuck:
> Checking for C++ library boost_system-mt... yes
> Checking for C++ library boost_filesystem-mt... yes
> Checking for C++ library boost_regex-mt... yes
> Checking for C++ library boost_iostreams-mt... yes
> Checking for C++ library boost_program_options-mt... yes
> Checking for C++ library boost_thread-mt... no
> Could not find header or shared library for boost thread, exiting!
> libboost_thread-mt.so and etc is in the lib dir with the rest of the
> libraries, so I am at a loss to understand why it is not found.
Sometimes the scons system gets a little confused. Try doing:
$ rm -fR .scons*
Then run scons again.
If it still fails then take a look at the end of the config.log. This
will tell you all the commands that scons is executing while performing
the checks above. The relevant lines for the boost_thread-mt check
should look something like...
scons: Configure: Checking for C++ library boost_thread-mt...
g++ -o .sconf_temp/conftest_16.o -c -DHAVE_CAIRO -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr
/local/include -I/usr/include/gdal -I/usr/include/freetype2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo .sconf_temp/conftest_16.cpp
g++ -o .sconf_temp/conftest_16 .sconf_temp/conftest_16.o -Lagg -Lsrc -L/usr/lib64 -L/usr/local/lib64 -lfreetype -lcairomm-1.0 -lcairo -lm -lltdl -lpng -ltiff -lz -lj
peg -lproj -lpq -licuuc -licudata -lgdal -lboost_filesystem-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_program_options-mt -lboost_thread-mt
scons: Configure: yes
If you are still stuck, send us this config.log.
More information about the Mapnik-users