build errors
springmeyer opened this issue · 6 comments
springmeyer commented
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
CXX(target) Release/obj.target/node_sqlite3/src/database.o
CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o
CXX(target) Release/obj.target/_mapnik/src/mapnik_grid.o
CXX(target) Release/obj.target/node_sqlite3/src/statement.o
SOLINK_MODULE(target) Release/node_sqlite3.node
clang: error: no such file or directory: 'Release/sqlite3.node'
make: *** [Release/node_sqlite3.node] Error 1
npm WARN engine eio@0.2.0: wanted: {"node":">=0.8.x"} (current: {"node":"0.6.21-pre","npm":"1.1.37"})
> eio@0.2.0 install /Volumes/Flex/build-2013-06-03-172431/tilemill/node_modules/tilelive-mapnik/node_modules/eio
> node-gyp rebuild
../src/eio.cc:18:18: fatal error: 'eio.h' file not found
#include <eio.h>
^
npm http 200 https://registry.npmjs.org/request/-/request-2.14.0.tgz
1 error generated.
make: *** [Release/obj.target/eio/src/eio.o] Error 1
$ /Volumes/Flex/build-2013-06-03-172431/bin/node -v
v0.6.21-pre
springmeyer commented
eio fix: mapbox/node-eio@72dcc25
springmeyer commented
libtool breakage should be fixed by nuking the mapnik-sdk based libtool that starting appearing on path after f319e31:
rm /Volumes/Flex/mapnik-packaging/osx/build/bin/libtool*
springmeyer commented
also hitting:
>>> import ctypes
>>> ctypes.CDLL('node_modules/mapnik/lib/_mapnik.node')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(node_modules/mapnik/lib/_mapnik.node, 6): Symbol not found: __ZN6mapnik8hit_gridIiE9base_maskE
Referenced from: node_modules/mapnik/lib/_mapnik.node
Expected in: dynamic lookup
springmeyer commented
hmm, above is happening because the mapnik-config --cflags
are not being set. That is happening because of a buggy node-gyp. Upgrading node-gyp like npm explore npm -g -- npm install node-gyp@latest
as per https://github.com/TooTallNate/node-gyp/wiki/Updating-npm's-bundled-node-gyp breaks because node v0.6.21 reports -pre
with node -v
. You can edit out the -pre
with vim (leaving space intact) but that is not sustainable. fuuuuu
springmeyer commented
going to solve by rolling back to node v0.6.20:
$ /opt/node-v0.6.20/bin/node -v
v0.6.20
springmeyer commented
fixed, closing.