I'm really looking forward to this... but help?
taf@t16-taf:~/gtk4-oorexx$ make
Package gtk4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk4', required by 'virtual:world', not found
Package gtk4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk4', required by 'virtual:world', not found
Package gtk4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk4', required by 'virtual:world', not found
==> Checking dependencies...
ERROR: gtk4 not found via pkg-config.
Run: sudo apt install libgtk-4-dev
make: *** [Makefile:66: check-deps] Error 1
taf@t16-taf:~/gtk4-oorexx$ ls -al
total 132
drwxr-xr-x 2 taf taf 4096 Apr 30 03:28 .
drwx--x---+ 65 taf taf 4096 Apr 30 03:27 ..
-rw-r--r-- 1 taf taf 5230 Apr 27 23:04 counter.rex
-rw-r--r-- 1 taf taf 4463 Apr 27 23:04 form.rex
-rw-r--r-- 1 taf taf 30441 Apr 27 14:08 gtk4.cls
-rw-r--r-- 1 taf taf 1584 Apr 27 23:04 hello.rex
-rw-r--r-- 1 taf taf 3320 Apr 27 13:59 Makefile
-rw-r--r-- 1 taf taf 62920 Apr 28 11:30 rexx_gtk4_bridge.cpp
-rw-r--r-- 1 taf taf 584 Apr 27 13:59 rexx_gtk4_bridge.h
On 4/28/26 09:18, Ruurd Idenburg via Oorexx-devel wrote:
For those of you interested (in yet another windowing interface for
oorexx) you can download a zip file containing the result of 2 days
working with the free version of claude, including some 3 hour
intermezzos for over-consumption and about 10 iterations:
The download location is: https://www.idenburg.net/ooRexx/wip where
there is decription in html format and the rexx_gtk4.zip file
containing 6 other files:
hello.rex - a simple hello world in a window
counter.rex - a window with 3 buttons that
manipulate a counter of button clicks
form.rex - a form asking for name, email and
telnr in entry fields and a button to submit the values
Makefile - to compile and link the c(++) code
that follows
rexx_gtk4_bridge.cpp - the c(++) code used to implement the interface
in a shared library
rexx_gtk4_bridge.h - the necessary includes
I solelely use Linux nowadays, in my case Ubuntu or Mint and the
Makefile lists the development packages needed for a Ubuntu based
Linux system, but I guess can be easily adapted for other systems.
To use unzip the _rexx_gtk4.zip_ file in a directory of your choice
where you have write access to, possibly you may need to use /chmod
u+w */ to acquire writing rights.
To compile the shared library, with all necessary packages installed,
type:
make
This should result in _librexx_gtk4.so_ being generated in the same
directory,. To run the provided rexx scripts type:
LD_LIBRARY_PATH=. rexx ./hello.rex
That's it. Of course this is still a very provisional effort, but
shows some possibilities.The code is reasonably commented if you want
to dig into the internals.
It could be a starting point, the gtk4.cls file can possibly be
generated by using Gobject Introspection Repository functions and the
code generated via rexx_gtk4.cpp based on the input from gtk4.cls.
Greetings,
Ruurd Idenburg ([email protected])
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
--
taf
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel