Open mbmshafraz opened 3 years ago
I believe only node 10 is supported at the moment.
I made it working with
node v10.24.1
and small change regarding this post https://github.com/mapbox/mapbox-gl-native/issues/16418#issuecomment-621127219
in file platform/node/CMakeLists.txt
add to EXCLUDE_NODE_ABIS number of abi above 83 that now represent version in my case it was mbgl-node.abi-93.dir so I add 93 to excluded abis
add_node_module(
mbgl-node
INSTALL_PATH ${PROJECT_SOURCE_DIR}/lib/{node_abi}/mbgl.node
NAN_VERSION 2.10.0
EXCLUDE_NODE_ABIS
46
47
48
51
59
67
72
79
83
93 <-- new
)
but I see there is a forked package with binaries for node 10+ check it!
https://github.com/mapbox/mapbox-gl-native/issues/16418#issuecomment-706800136
I am trying to build this in MacOS 11.2.3 npn version 6.14.11 node version v12.22.0/v15.13.0 (Tried in both)
It compiles up to 99% and fails at last moment Following is the error log