Open
Description
sharp is a fast low-memory image resizer that uses libvips. The error when compiling is in GNOME glib, it does look like some work has been done in glib for Android.
I created a minimal repo to repro the error, which is:
In file included from ../src/common.cc:25:
In file included from /usr/local/include/vips/vips8:35:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib-object.h:23:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/gobject/gbinding.h:28:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib.h:30:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/galloca.h:32:
/usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/gtypes.h:423:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/gmacros.h:241:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~~~~~~~~~
../src/common.cc:374:25: warning: comparison 'int' > 2147483647 is always false [-Wtautological-constant-compare]
if (image.width() > 2147483647 || image.height() > 2147483647) {
~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../src/common.cc:374:56: warning: comparison 'int' > 2147483647 is always false [-Wtautological-constant-compare]
if (image.width() > 2147483647 || image.height() > 2147483647) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
2 warnings and 1 error generated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
Metadata
Metadata
Assignees
Labels
No labels