Closed MarcDenn closed 1 year ago
Hi. Looks like its the problem of case insensitive file system.
.S
(capital S) file extension stands for assembly code that must still pass through a pre-processor. That means it can have #include
and #define
among other macros. And .s
(lowercase s) is pure assembly code that can be compiled into an object.
In your case compiler tries to compile .S
-file as a pure assembly code. And fails.
Try to install png-img on case sensitive file system or may be enable case sensitivity
I encountered this same error when installing png-img@>3.3.4
on Windows 10 with msvs 2019 and node-gyp v9.0.0. I tried enabling case sensitivity on the libpng/build
and libpng
directories, but that didn't work. I think those directories are recreated whenever I try to install png-img
, so the case-sensitivity flag goes away. I also tried enabling case-sensitivity in the node_modules
parent folder containing libpng
, hoping that case-sensitivity inheritance would apply, but that didn't work either.
I tried locally changing the file extension from .S
to .sx
, and the build worked. This involved changing filter_neon.S
to filter_neon.sx
and updating the libpng.gyp
file to include the updated source file.
I made a change to libpng
, a dependency of png-img
, not png-img
itself, so I'm inclined to submit an issue to libpng
if the Windows build also doesn't work there. However, png-img
does include a copy of libpng
, so I'm not sure if it would be a good idea to modify that.
Try png-img@4.1.0
I try to install current or some older version of png-img using the following commands:
But i got errors see below.
Install the version 3.3.4 works without problems.
I suspect it has something to do with ARM code. I am using windows 11, X64, msvs2022 and node-gyp@9.1.0