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
Fresh install: undefined reference to `mapnik::feature_style_processor<mapnik::cairo_renderer<std::shared_ptr<_cairo> > >::apply(double) #4243
Comments
@yohanboniface - I don't see anything obvious from configure stderr. Could you re-post link to full log, I'm getting |
Hi @artemp :) Here you go! Thanks :) |
Could you post output from
|
Sure :)
Thanks! |
@yohanboniface so the symbol in question is defined |
I do have a bunch of
I had the intuition that the issue could be something like that, this is why I reclonned mapnik ( |
@yohanboniface Were you able to figure out what the problem was? I'm experiencing the same issue. In my case it's a RHEL 8 system and the only thing on it is mapnik (a single libmapnik.so). |
Very similar issue. CentOS 8, Postgres13, postgis, libpq, gdal, proj from postgresql.org (PGDG) repo. Boost169 from CentOS.
Built from commit 69911ad Configured with:
and compiled with |
I have similar issue and I managed to workaround it by removing |
@gravicappa , I have same problem. |
I switched to cmake build and goes well now. |
Cmake build doesn't generate |
Hi everyone, diff --git a/include/mapnik/agg_renderer.hpp b/include/mapnik/agg_renderer.hpp
index d73ea3e8e..1c5ba141d 100644
--- a/include/mapnik/agg_renderer.hpp
+++ b/include/mapnik/agg_renderer.hpp
@@ -196,6 +196,7 @@ class MAPNIK_DECL agg_renderer : public feature_style_processor<agg_renderer<T0>
void setup(Map const& m, buffer_type& pixmap);
};
+extern template class MAPNIK_DECL feature_style_processor<agg_renderer<image_rgba8>>;
extern template class MAPNIK_DECL agg_renderer<image<rgba8_t>>;
} // namespace mapnik
diff --git a/include/mapnik/cairo/cairo_renderer.hpp b/include/mapnik/cairo/cairo_renderer.hpp
index 94bbec037..6ed4afd68 100644
--- a/include/mapnik/cairo/cairo_renderer.hpp
+++ b/include/mapnik/cairo/cairo_renderer.hpp
@@ -137,6 +137,7 @@ class MAPNIK_DECL cairo_renderer : public feature_style_processor<cairo_renderer
void setup(Map const& m);
};
+extern template class MAPNIK_DECL feature_style_processor<cairo_renderer<cairo_ptr>>;
extern template class MAPNIK_DECL cairo_renderer<cairo_ptr>;
} // namespace mapnik feature_style_processor template class is not marked as visible by MAPNIK_DECL macro, so it is hidden by default, and it gets instantiated by cairo_renderer and agg_renderer templates due to inheritance. This can be fixed either by declaring external feature_style_processor templates with correct visibility, or by marking feature_style_processor template class as visible: diff --git a/include/mapnik/feature_style_processor.hpp b/include/mapnik/feature_style_processor.hpp
index a8047fd0e..07f65a337 100644
--- a/include/mapnik/feature_style_processor.hpp
+++ b/include/mapnik/feature_style_processor.hpp
@@ -47,7 +47,7 @@ struct layer_rendering_material;
enum eAttributeCollectionPolicy { DEFAULT = 0, COLLECT_ALL = 1 };
template<typename Processor>
-class feature_style_processor
+class MAPNIK_DECL feature_style_processor
{
public:
explicit feature_style_processor(Map const& m, double scale_factor = 1.0); |
Using fixes described in mapnik#4243 (comment)
Having the same problem still with the current development head (for proj-8) on RHEL/Oracle Linux 9. Just confirming the above patch fixed it for me as well. Need CXX_STD = '17' or BOOST_FILESYSTEM = True too, but same happens with both. |
I just had to apply the same patches to a fresh checkout. FYI running on Centos 9 stream and also had to use CXX_STD=17. |
Worked for me too, compiled mapnik on master branch with those two patches with success.
|
Using fixes described in mapnik#4243 (comment)
Using fixes described in mapnik#4243 (comment)
Using fixes described in mapnik#4243 (comment)
Using fixes described in mapnik#4243 (comment)
Using fixes described in mapnik#4243 (comment) Fixes mapnik#4243.
Using fixes described in mapnik#4243 (comment) Fixes mapnik#4243.
When I try to build Mapnik, after a fresh clone, it fails with this message:
Here is
./configure
output:Full log: https://paste.sh/3M9H30rh#fu25ZorcB9fD4bcBB5yvQ8_e
I'm running Archlinux. Python 3.9.6.
Any clue ?
Thanks!
The text was updated successfully, but these errors were encountered: