Compiling GIMP 2.10 for Windows on AArch64
I decided to try compiling GIMP with msys64 on AArch64 (Windows-on-ARM). msys64 for aarch64 uses clang instead of gcc, which highlighted a few issues:
make[3]: Entering directory '/home/ender/gimp/gimp-2.10.34/aarch64/libgimp'
CC gimpprogressbar.lo
../../libgimp/gimpprogressbar.c:186:2: warning: gimp_window_get_native() unimplementable for the target windowing system [-W#warnings]
#warning gimp_window_get_native() unimplementable for the target windowing system
^
../../libgimp/gimpprogressbar.c:192:12: error: incompatible pointer to integer conversion returning 'HGDIOBJ' (aka 'void *') from a function with result
type 'guint32' (aka 'unsigned int') [-Wint-conversion]
return GDK_WINDOW_HWND (gtk_widget_get_window (GTK_WIDGET (window)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clangarm64/include/gtk-2.0/gdk/gdkwin32.h:52:28: note: expanded from macro 'GDK_WINDOW_HWND'
#define GDK_WINDOW_HWND(d) (gdk_win32_drawable_get_handle (d))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
Very similar problem also in app/widgets/gimpwidgets-utils.c
Another problem is that lld linker doesn't support -rpath command-line argument (used in app/Makefile: munix = -Wl,-rpath '-Wl,$$ORIGIN/../lib'
).