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

fatal error: 'mapnik/geometry/box2d.hpp' file not found #301

Open
aberenyi opened this issue Nov 16, 2022 · 3 comments
Open

fatal error: 'mapnik/geometry/box2d.hpp' file not found #301

aberenyi opened this issue Nov 16, 2022 · 3 comments

Comments

@aberenyi
Copy link

aberenyi commented Nov 16, 2022

Ran into this recetly, whilst trying to install @mapbox/spritezero

npm ERR! In file included from ../src/node_mapnik.cpp:7:
npm ERR! In file included from ../src/mapnik_vector_tile.hpp:7:
npm ERR! In file included from ../../mapnik-vector-tile/src/vector_tile_merc_tile.hpp:5:
npm ERR! ../../mapnik-vector-tile/src/vector_tile_tile.hpp:11:10: fatal error: 'mapnik/geometry/box2d.hpp' file not found
npm ERR! #include <mapnik/geometry/box2d.hpp>
npm ERR!          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Looks like it's related to #261 even though it's been some time since that issue has been closed.

Any suggestion how to resolve/work around the issue?

@ashksmith
Copy link

I'm having the same issue! Any fixes or workarounds?

@cuchio
Copy link

cuchio commented Aug 15, 2023

I am having the same problem when trying to compile python-mapnik.

src/mapnik_datasource.cpp:37:10: fatal error: 'mapnik/geometry/box2d.hpp' file not found

I have mapnik from Brew installed on my Mac. Looking at the /usr/local/include/mapnik directory I could not find the geometry directory. Instead box2d.hpp is in the mapnik directory.

FYI, I am compiling it in a python venv.

Is the missing directory the possible reason?

@benjazehr
Copy link

Hi @cuchio … I am running into the same issue. Did you ever find a solution for the missing geometry folder?

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

4 participants