magnush / mhwaveedit

Sound file editor (written in C using the GTK+ toolkit)
GNU General Public License v2.0
41 stars 8 forks source link

Updating config for building on aarch64 #19

Open clort81 opened 3 years ago

clort81 commented 3 years ago

Looks like config.guess and config.sub are out of date g/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O config.guess wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O config.sub

Additionally uname -X is unsupported now.

Also gtk/gtk.h isn't found.

It seems this is needed when configure generates Makefile: pkg-config --cflags --libs gtk+-2.0

exporting as CFLAGS the output of pkg-config gets me past the include errors, but then a bunch of gdkcolor.h errors

In file included from /usr/include/gtk-2.0/gdk/gdkevents.h:34,
                 from /usr/include/gtk-2.0/gdk/gdkdisplay.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:33,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from chunk.c:31:
/usr/include/gtk-2.0/gdk/gdkcolor.h:74:3: warning: parameter names (without types) in function declaration
   gint      GSEAL (size);
   ^~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:74:13: error: field ‘GSEAL’ declared as a function
   gint      GSEAL (size);
             ^~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:75:3: warning: parameter names (without types) in function declaration
   GdkColor *GSEAL (colors);
   ^~~~~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:75:13: error: field ‘GSEAL’ declared as a function
   GdkColor *GSEAL (colors);
             ^~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:78:3: warning: parameter names (without types) in function declaration
   GdkVisual *GSEAL (visual);
   ^~~~~~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:78:14: error: field ‘GSEAL’ declared as a function
   GdkVisual *GSEAL (visual);
              ^~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:80:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (windowing_data);
   ^~~~~~~~
/usr/include/gtk-2.0/gdk/gdkcolor.h:80:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (windowing_data);

this is now beyond me. any ideas folks.

wdlkmpx commented 2 years ago

The whole build system needs a massive update

Check out my fork if you want something that compiles on modern distros, I also compiled it on a distros released in 2009, so it's generic enough, only gtk2 is supported https://github.com/wdlkmpx/gwaveedit

fastrizwaan commented 1 year ago

I've submitted mhwaveedit to flathub, aarch64 and x86_64 both should work now.