Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using mapnik build on Opensuse #4324

Open
BjoernRuff opened this issue Jul 6, 2022 · 0 comments
Open

using mapnik build on Opensuse #4324

BjoernRuff opened this issue Jul 6, 2022 · 0 comments

Comments

@BjoernRuff
Copy link

I have an old app (c++) using mapnik to do some rendering .
When compiling I always run into 2 errrors

/usr/local/include/mapnik/mapbox/variant.hpp:598:15: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
598 | typename Enable = typename std::enable_if<Traits::is_valid && !std::is_same<variant<Types...>, typename Traits::value_type>::value>::type >

and

In file included from /usr/local/include/mapnik/attribute.hpp:28,
from /usr/local/include/mapnik/symbolizer_base.hpp:34,
from /usr/local/include/mapnik/rule.hpp:28,
from /usr/local/include/mapnik/agg_renderer.hpp:30,
from generate.cpp:26:
/usr/local/include/mapnik/value.hpp: In instantiation of ‘mapnik::value_adl_barrier::value::value(T&&) [with T = const char* const&; U = const char* const&]’:
/usr/local/include/mapnik/feature.hpp:116:18: required from ‘void mapnik::feature_impl::put(const key_type&, const T&) [with T = const char*; mapnik::context<std::map<std::__cxx11::basic_string, long unsigned int> >::key_type = std::__cxx11::basic_string]’
generate.cpp:495:19: required from here
/usr/local/include/mapnik/value.hpp:59:45: error: no matching function for call to ‘mapbox::util::variant<mapnik::value_null, bool, int, double, icu_65_1::UnicodeString>::variant(const char* const&)’
59 | : value_base(U(std::forward(val))) {}
| ^
In file included from /usr/local/include/mapnik/util/variant.hpp:27,
from /usr/local/include/mapnik/params.hpp:29,
from /usr/local/include/mapnik/map.hpp:32,
from generate.cpp:24:

can anybody see whats wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant