{"action":"created","issue":{"url":"https://api.github.com/repos/mapnik/node-mapnik/issues/851","repository_url":"https://api.github.com/repos/mapnik/node-mapnik","labels_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/851/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/851/comments","events_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/851/events","html_url":"https://github.com/mapnik/node-mapnik/issues/851","id":296969940,"number":851,"title":"Compile Error: no member named 'spherical_mercator' in namespace 'mapnik::vector_tile_impl'","user":{"login":"tonny2v","id":4075851,"avatar_url":"https://avatars0.githubusercontent.com/u/4075851?v=4","gravatar_id":"","url":"https://api.github.com/users/tonny2v","html_url":"https://github.com/tonny2v","followers_url":"https://api.github.com/users/tonny2v/followers","following_url":"https://api.github.com/users/tonny2v/following{/other_user}","gists_url":"https://api.github.com/users/tonny2v/gists{/gist_id}","starred_url":"https://api.github.com/users/tonny2v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonny2v/subscriptions","organizations_url":"https://api.github.com/users/tonny2v/orgs","repos_url":"https://api.github.com/users/tonny2v/repos","events_url":"https://api.github.com/users/tonny2v/events{/privacy}","received_events_url":"https://api.github.com/users/tonny2v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-14T04:11:52Z","updated_at":"2018-02-14T20:18:17Z","closed_at":null,"author_association":"NONE","body":"On Mac OS, I succeeded in building all dependencies but when I finalize the compiling. I got the following errors:\r\n```bash\r\n../src/mapnik_vector_tile.cpp:5124:53: error: expected ';' after expression\r\n        mapnik::vector_tile_impl::spherical_mercator merc(closure->d->tile_size());\r\n                                                    ^\r\n                                                    ;\r\n../src/mapnik_vector_tile.cpp:5124:35: error: no member named 'spherical_mercator' in namespace 'mapnik::vector_tile_impl'\r\n        mapnik::vector_tile_impl::spherical_mercator merc(closure->d->tile_size());\r\n        ~~~~~~~~~~~~~~~~~~~~~~~~~~^\r\n../src/mapnik_vector_tile.cpp:5124:54: error: use of undeclared identifier 'merc'\r\n        mapnik::vector_tile_impl::spherical_mercator merc(closure->d->tile_size());\r\n                                                     ^\r\n../src/mapnik_vector_tile.cpp:5128:13: error: use of undeclared identifier 'merc'\r\n            merc.xyz(closure->x,closure->y,closure->z,minx,miny,maxx,maxy);\r\n            ^\r\n../src/mapnik_vector_tile.cpp:5132:13: error: use of undeclared identifier 'merc'\r\n            merc.xyz(closure->d->get_tile()->x(),\r\n            ^\r\n1 warning and 5 errors generated.\r\nmake[2]: *** [Release/obj.target/mapnik/src/mapnik_vector_tile.o] Error 1\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:160:13)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)\r\ngyp ERR! System Darwin 17.4.0\r\ngyp ERR! command \"/opt/local/bin/node\" \"/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--ENABLE_GLIBC_WORKAROUND=true\" \"--loglevel=error\" \"--clang\" \"--module=/Volumes/SSD/github/node-mapnik/lib/binding/mapnik.node\" \"--module_name=mapnik\" \"--module_path=/Volumes/SSD/github/node-mapnik/lib/binding\"\r\ngyp ERR! cwd /Volumes/SSD/github/node-mapnik\r\ngyp ERR! node -v v9.5.0\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok\r\nnode-pre-gyp ERR! build error\r\nnode-pre-gyp ERR! stack Error: Failed to execute '/opt/local/bin/node /opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --ENABLE_GLIBC_WORKAROUND=true --loglevel=error --clang --module=/Volumes/SSD/github/node-mapnik/lib/binding/mapnik.node --module_name=mapnik --module_path=/Volumes/SSD/github/node-mapnik/lib/binding' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Volumes/SSD/github/node-mapnik/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:160:13)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:943:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)\r\nnode-pre-gyp ERR! System Darwin 17.4.0\r\nnode-pre-gyp ERR! command \"/opt/local/bin/node\" \"/Volumes/SSD/github/node-mapnik/node_modules/.bin/node-pre-gyp\" \"configure\" \"build\" \"--ENABLE_GLIBC_WORKAROUND=true\" \"--loglevel=error\" \"--clang\"\r\nnode-pre-gyp ERR! cwd /Volumes/SSD/github/node-mapnik\r\nnode-pre-gyp ERR! node -v v9.5.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.39\r\nnode-pre-gyp ERR! not ok\r\nFailed to execute '/opt/local/bin/node /opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --ENABLE_GLIBC_WORKAROUND=true --loglevel=error --clang --module=/Volumes/SSD/github/node-mapnik/lib/binding/mapnik.node --module_name=mapnik --module_path=/Volumes/SSD/github/node-mapnik/lib/binding' (1)\r\nmake[1]: *** [release_base] Error 1\r\nmake: *** [release] Error 2"},"comment":{"url":"https://api.github.com/repos/mapnik/node-mapnik/issues/comments/365732230","html_url":"https://github.com/mapnik/node-mapnik/issues/851#issuecomment-365732230","issue_url":"https://api.github.com/repos/mapnik/node-mapnik/issues/851","id":365732230,"user":{"login":"flippmoke","id":1794907,"avatar_url":"https://avatars0.githubusercontent.com/u/1794907?v=4","gravatar_id":"","url":"https://api.github.com/users/flippmoke","html_url":"https://github.com/flippmoke","followers_url":"https://api.github.com/users/flippmoke/followers","following_url":"https://api.github.com/users/flippmoke/following{/other_user}","gists_url":"https://api.github.com/users/flippmoke/gists{/gist_id}","starred_url":"https://api.github.com/users/flippmoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flippmoke/subscriptions","organizations_url":"https://api.github.com/users/flippmoke/orgs","repos_url":"https://api.github.com/users/flippmoke/repos","events_url":"https://api.github.com/users/flippmoke/events{/privacy}","received_events_url":"https://api.github.com/users/flippmoke/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T20:18:17Z","updated_at":"2018-02-14T20:18:17Z","author_association":"OWNER","body":"It looks like you are using the latest version of `mapnik-vector-tile` which is `v1.6.0`, or you might be using the `master` branch on each. We do have prebuilt binaries for common linux uses available via `npm install`. Do they not work properly for you?\r\n\r\nAdditionally, the state of dependencies is a little wonky right now (I am sorry). \r\n\r\nMaster `mapnik`, master `node-mapnik`, and `mapnik-vector-tile` are under current development right now and no release of all them together has been achieved. We are waiting on an official mapnik release to begin to tag and release node-mapnik and mapnik-vector-tile.\r\n\r\nIf you want to use the last released Mapnik (v3.0.x series), there are `v3.0.x` branches in all of the stated libraries. The `v3.0.x` series should come to an end with a new official release of master on `mapnik`. \r\n\r\nAlso note that I recently updated `mapnik-vector-tile`, but I am still working towards patching in correctly the changes into `node-mapnik` correctly. See https://github.com/mapnik/node-mapnik/pull/850\r\n\r\nProbably the easiest thing you can do if you need to custom compile `node-mapnik` is to check out an older tag and build it. By default it should pull in the required binaries if you simply run `make`\r\n\r\n"}}
{"actor":{"display_login":"flippmoke"}}