I'm having a whack at upgrading rexxGTK to GTK4.  I'm working in Ubuntu 22.04 which has gtk4 installed.  In the make file flag are set specifying packages(?) libraries(?) to be used:

GRXLFLAGS = `pkg-config --libs gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0`

GRXCFLAGS = `pkg-config --cflags gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0`

After easter-egging around, I determined that

GRXLFLAGS = `pkg-config --libs gtk4`

GRXCFLAGS = `pkg-config --cflags gtk4`

would get the compiler to run and generate complaints like:

rexxgtk.h:78:20: error: ‘GdkEventKey’ has not been declared
   78 |                    GdkEventKey *event,
      |                    ^~~~~~~~~~~
rexxgtk.h:81:20: error: ‘GdkEventButton’ has not been declared
   81 |                    GdkEventButton *event,

presumably because I hadn't specified the current equivalent of gdk-x.x in cflags.

My question may be more related to linux than oorexx, but ... how can I determine the correct value to specify for --cflags and --libs. How do I determine the release/package name for GDK, GLIB and GTHREAD.


Oorexx-devel mailing list

Reply via email to