mapbox / mapnik-vector-tile

Mapnik implemention of Mapbox Vector Tile specification
BSD 3-Clause "New" or "Revised" License
552 stars 117 forks source link

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

Open aberenyi opened 1 year ago

aberenyi commented 1 year ago

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 https://github.com/mapbox/mapnik-vector-tile/issues/261 even though it's been some time since that issue has been closed.

Any suggestion how to resolve/work around the issue?

ashksmith commented 1 year ago

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

cuchio commented 10 months ago

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 commented 3 weeks ago

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