annoy-node icon indicating copy to clipboard operation
annoy-node copied to clipboard

[request] support for windows

Open xcapt opened this issue 4 years ago • 2 comments

installing on windows gives: ` addon.cc

annoyindexwrapper.cc

win_delay_load_hook.cc

...\node_modules\annoy\annoylib.h(46): fatal error C1083: Cannot open include file: 'mman.h': No such file or directory (compiling source file ..\addon.cc) [...node_modules\annoy\build\addon.vcxproj]

...\node_modules\annoy\annoylib.h(46): fatal error C1083: Cannot open include file: 'mman.h': No such file or directory (compiling source file ..\annoyindexwrapper.cc) [...\node_modules\annoy\build\addon.vcxproj]`

which I understand to be linked to mman.h not being available on windows as per https://stackoverflow.com/questions/29660492/windows-equivalent-for-sys-mman-h

Any chance this could be worked around ?

xcapt avatar Aug 23 '20 19:08 xcapt

I do not have a Windows machine, so I can't really try any workarounds. If you end up finding a mman.h equivalent that works, please let me know, and I can note it in the README!

jimkang avatar Aug 23 '20 20:08 jimkang

ty this -> https://www.npmjs.com/package/annoy-node

prathameshnetake avatar Jun 22 '21 14:06 prathameshnetake