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

Windows support ?

Open darkyen opened this issue 11 years ago • 16 comments

Maybe use node-pre-gyp for distributing windows packages ? [building for windows is a pita]

darkyen avatar Sep 13 '14 21:09 darkyen

+1

hayleyxyz avatar Mar 08 '15 16:03 hayleyxyz

+1

chinajuanbob avatar Apr 23 '15 07:04 chinajuanbob

+1

Malkiz avatar Jun 25 '15 12:06 Malkiz

+1

pararuk avatar Sep 14 '15 14:09 pararuk

Is there any plan to support windows platform?

yangpu avatar Jan 12 '16 07:01 yangpu

I managed to get this library running in windows.just install node-gyp in windows as given here or here then install node-phash using npm.

Rafi993 avatar May 10 '16 04:05 Rafi993

@darkyen please close the issue once you are able to proceed

Rafi993 avatar May 10 '16 04:05 Rafi993

@Rafi993 still can't install on windows. It seems there's a missing header file </usr/include/complex.h>. How to solve this issue?

yf-hk avatar Jun 28 '16 03:06 yf-hk

If you are using mac please refere here

Rafi993 avatar Jun 28 '16 05:06 Rafi993

It's too difficult to install this module, I've switched to a better module ghash which utilizes sharp for image decoding. It works pretty well!

yf-hk avatar Jun 28 '16 05:06 yf-hk

@Rafi993 Obviously windows version has an issue.

P.S. node-gyp installed properly

e:\javascript\node-phash\deps\phash\ph_fft.h(32): fatal error C1083: Cannot open include file: '/usr/include/complex.h': No such file or directory (compiling source file ......\deps\pHash\ph_fft.c) [e:\JavaSc ript\node-phash\build\deps\pHash\phash.vcxproj]

Think problem is here inside deps/pHash/ph_fft.h

#include </usr/include/complex.h>

P.S. I changed dependency to file which you have and it's not compiled any more.

ystarikovich avatar Oct 27 '16 22:10 ystarikovich

I changed source for pHash (using last one from pHash.org 0.9.4) and tried to build artifact, but now have another errors, might be you can help me with these errors.

Creating library e:\JavaScript\node-phash\build\Release\pHashBinding.lib and object e:\JavaScript\node-phash\build\Release\pHashBinding.exp phash.lib(pHash.obj) : error LNK2001: unresolved external symbol readdir [e:\JavaScript\node-phash\build\pHashBinding.vcxproj] phash.lib(pHash.obj) : error LNK2001: unresolved external symbol rewinddir [e:\JavaScript\node-phash\build\pHashBinding.vcxproj] phash.lib(pHash.obj) : error LNK2001: unresolved external symbol closedir [e:\JavaScript\node-phash\build\pHashBinding.vcxproj] phash.lib(pHash.obj) : error LNK2001: unresolved external symbol opendir [e:\JavaScript\node-phash\build\pHashBinding.vcxproj] e:\JavaScript\node-phash\build\Release\pHashBinding.node : fatal error LNK1120: 4 unresolved externals [e:\JavaScript\node-phash\build\pHashBinding.vcxproj]

ystarikovich avatar Oct 27 '16 23:10 ystarikovich

I need this as well :+1: Windows 7 64bit

Muqito avatar Oct 31 '16 10:10 Muqito

@Muqito I made a fork and compile it on Win 10 64bit. You can try to use my fork, this is not final solution, but it's working for me.

ystarikovich avatar Nov 06 '16 15:11 ystarikovich

I guess it is the commit that was made later that is causing the issue. node libraries with c/c++ bindings generally tend to have a problem in windows some permanent solution for this kind of bindings has to be found. so that we don't need to compile these dependencies manually but just do npm install.

Rafi993 avatar Nov 06 '16 16:11 Rafi993

Пидорасы! Сделайте под винтоуз!!111

nok3250 avatar Aug 05 '19 08:08 nok3250