[OSM-dev] mapnik on Debian/Ubuntu

Graham Wall g.hamwall at gmail.com
Tue Jan 30 16:49:49 GMT 2007


> > >python scons/scons.py install
> >
> > fails with:
> >
> > >Checking for main() in C++ library boost_thread... no
> > >Checking for main() in C++ library boost_thread-gcc-mt... no
> > >Could not find header or shared library for boost thread, exiting!
> > Anyone using this package on Debian or Ubuntu?
>
>
> I modified line 73 of scons/scons-local-0.96.1/SCons/Tool/c++.py:
>
>      env['CXXFLAGS']   = SCons.Util.CLVar('$CCFLAGS')
> -    env['CXXCOM']     = '$CXX $CXXFLAGS $CPPFLAGS $_CPPDEFFLAGS
>      $_CPPINCFLAGS -c -o $TARGET $SOURCES'
> +    env['CXXCOM']     = '$CXX $CXXFLAGS $CPPFLAGS $_CPPDEFFLAGS
> $_CPPINCFLAGS -pthread -c -o $TARGET $SOURCES'
>      env['SHCXX']      = '$CXX'
>
> This allowed my build to succeed.
>
> Christopher Schmidt

Did this solve the problem for you Jens?

I am having the same issue on ubuntu (edgy) and the -pthread change
doesn't help.

Graham




More information about the dev mailing list