On Jan 18, 2010, at 1:22 PM, Hrvoje Prgeša wrote:
I finally managed to compile mapnik viewer under ubuntu 9.10 but I
can't get it to run properly.
[..snip..]
I can start the GUI, but at file/open it crashes within
mapnik::load_map deep inside boost:
viewer: /usr/include/boost/variant/detail/visitation_impl.hpp:203:
typename Visitor::result_type
boost::detail::variant::visitation_impl(int, int, Visitor&, VPCV,
mpl_::true_, NBF, W*, S*) [with W =
boost::detail::variant::visitation_impl(int, int, Visitor&, VoidPtrCV,
mpl_::false_, NoBackupFlag, Which*,
< ... a _lot_ of details cut ... >
boost::detail::variant::void_>::has_fallback_type_]: Assertion
`false' failed.
This code is deep inside boost variant (called by mapnik):
// should never be here at runtime:
BOOST_ASSERT(false);
[..snip...]
*But*, if I now modify the "viewer.pro" to compile *only* the modified
main.cpp (eg. I comment out all the HEADER and SOURCES except the
modified main.cpp) it will compile *and run* without error.
This makes me believe I've encountered some weird build/compiler bug
but I don't know where to go from here.
Yes, I think you are right. This looks like a linux compiler + boost +
templated code problem.
Try passing these extra CFLAGS:
-ansi -Wall -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -
DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG
my guess is that its the -ftemplate-depth-100 that is needed, but all
I know is that set of flags was left off the shapefile plugin compiler
lines at one point (0.6.1 release) and I hit that exact same boost
error whenever the shapefile plugin was touched, until those compiler
flags were re-instated.
Dane
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users