Can someone help me to compile alsa-sarlett-gui?

I am trying to compile the project below as not available in flathub but coming up with errors.

indy@MLRig~/alsa-scarlett-gui/src (master) $ make -j4
gcc -MT alsa-scarlett-gui-resources.o -MMD -MP -MF .deps/alsa-scarlett-gui-resources.d -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.2-7-g65c0\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -pthread -I/usr/include/libpng16 -c -o alsa-scarlett-gui-resources.o alsa-scarlett-gui-resources.c
gcc -MT error.o -MMD -MP -MF .deps/error.d -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.2-7-g65c0\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -pthread -I/usr/include/libpng16 -c -o error.o error.c
gcc -MT file.o -MMD -MP -MF .deps/file.d -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.2-7-g65c0\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -pthread -I/usr/include/libpng16 -c -o file.o file.c
gcc -MT gtkhelper.o -MMD -MP -MF .deps/gtkhelper.d -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.2-7-g65c0\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -pthread -I/usr/include/libpng16 -c -o gtkhelper.o gtkhelper.c
gcc -MT iface-mixer.o -MMD -MP -MF .deps/iface-mixer.d -Wall -Werror -ggdb -fno-omit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DVERSION=\"0.2-7-g65c0\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -pthread -I/usr/include/libpng16 -c -o iface-mixer.o iface-mixer.c
error.c: In function ‘show_error’:
error.c:12:3: error: ‘gtk_message_dialog_new’ is deprecated [-Werror=deprecated-declarations]
   12 |   GtkWidget *dialog = gtk_message_dialog_new(
      |   ^~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:188,
                 from error.h:6,
                 from error.c:4:
/usr/include/gtk-4.0/gtk/deprecated/gtkmessagedialog.h:81:12: note: declared here
   81 | GtkWidget* gtk_message_dialog_new      (GtkWindow      *parent,
      |            ^~~~~~~~~~~~~~~~~~~~~~
gtkhelper.c: In function ‘gtk_widget_add_class’:
gtkhelper.c:29:3: error: ‘gtk_widget_get_style_context’ is deprecated [-Werror=deprecated-declarations]
   29 |   GtkStyleContext *style_context = gtk_widget_get_style_context(w);
      |   ^~~~~~~~~~~~~~~
error.c:20:3: error: ‘gtk_widget_show’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead [-Werror=deprecated-declarations]
   20 |   gtk_widget_show(dialog);
      |   ^~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtkapplication.h:26,
                 from /usr/include/gtk-4.0/gtk/gtkwindow.h:32,
                 from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29,
                 from /usr/include/gtk-4.0/gtk/gtk.h:33,
                 from gtkhelper.h:6,
                 from gtkhelper.c:4:
/usr/include/gtk-4.0/gtk/gtkwidget.h:709:19: note: declared here
  709 | GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtkapplication.h:26,
                 from /usr/include/gtk-4.0/gtk/gtkwindow.h:32,
                 from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29,
                 from /usr/include/gtk-4.0/gtk/gtk.h:33:
/usr/include/gtk-4.0/gtk/gtkwidget.h:272:12: note: declared here
  272 | void       gtk_widget_show                (GtkWidget           *widget);
      |            ^~~~~~~~~~~~~~~
gtkhelper.c:30:3: error: ‘gtk_style_context_add_class’ is deprecated [-Werror=deprecated-declarations]
   30 |   gtk_style_context_add_class(style_context, class);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:260:
/usr/include/gtk-4.0/gtk/deprecated/gtkstylecontext.h:90:10: note: declared here
   90 | void     gtk_style_context_add_class    (GtkStyleContext *context,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘add_state_filter’:
file.c:65:3: error: ‘gtk_file_chooser_add_filter’ is deprecated [-Werror=deprecated-declarations]
   65 |   gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(native), filter);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:128,
                 from alsa.h:7,
                 from file.c:4:
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:136:22: note: declared here
  136 | void                 gtk_file_chooser_add_filter          (GtkFileChooser       *chooser,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘load_response’:
file.c:78:3: error: ‘gtk_file_chooser_get_file’ is deprecated [-Werror=deprecated-declarations]
   78 |   GFile *file = gtk_file_chooser_get_file(GTK_FILE_CHOOSER(native));
      |   ^~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:119:22: note: declared here
  119 | GFile *              gtk_file_chooser_get_file            (GtkFileChooser       *chooser);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘activate_load’:
file.c:97:3: error: ‘gtk_file_chooser_native_new’ is deprecated [-Werror=deprecated-declarations]
   97 |   GtkFileChooserNative *native = gtk_file_chooser_native_new(
      |   ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:130:
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechoosernative.h:36:23: note: declared here
   36 | GtkFileChooserNative *gtk_file_chooser_native_new (const char           *title,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘save_response’:
file.c:121:3: error: ‘gtk_file_chooser_get_file’ is deprecated [-Werror=deprecated-declarations]
  121 |   GFile *file = gtk_file_chooser_get_file(GTK_FILE_CHOOSER(native));
      |   ^~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:119:22: note: declared here
  119 | GFile *              gtk_file_chooser_get_file            (GtkFileChooser       *chooser);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘activate_save’:
file.c:148:3: error: ‘gtk_file_chooser_native_new’ is deprecated [-Werror=deprecated-declarations]
  148 |   GtkFileChooserNative *native = gtk_file_chooser_native_new(
      |   ^~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechoosernative.h:36:23: note: declared here
   36 | GtkFileChooserNative *gtk_file_chooser_native_new (const char           *title,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘sim_response’:
file.c:172:3: error: ‘gtk_file_chooser_get_file’ is deprecated [-Werror=deprecated-declarations]
  172 |   GFile *file = gtk_file_chooser_get_file(GTK_FILE_CHOOSER(native));
      |   ^~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:119:22: note: declared here
  119 | GFile *              gtk_file_chooser_get_file            (GtkFileChooser       *chooser);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
file.c: In function ‘activate_sim’:
file.c:191:3: error: ‘gtk_file_chooser_native_new’ is deprecated [-Werror=deprecated-declarations]
  191 |   GtkFileChooserNative *native = gtk_file_chooser_native_new(
      |   ^~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechoosernative.h:36:23: note: declared here
   36 | GtkFileChooserNative *gtk_file_chooser_native_new (const char           *title,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
make: *** [Makefile:35: error.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:35: gtkhelper.o] Error 1
cc1: all warnings being treated as errors
make: *** [Makefile:35: file.o] Error 1

I am new to compiling coming from Windows. Any ideas on how to successfully compile this without errors?

error: ‘gtk_widget_show’ is deprecated: Use ‘gtk_widget_set_visible or gtk_window_present’ instead [-Werror=deprecated-declarations]
error: ‘gtk_file_chooser_add_filter’ is deprecated [-Werror=deprecated-declarations]

A lot of deprecated GTK4 API, try to compile it with older GTK4 version.

Thank you @paulcarroty. I was searching for an old GTK4 bundle but could not find it. I was surprised to find this packaged in Arch Linux and it was a simple pacman install.

Wishing you an enjoyable day.