Open Object Rexx in NetBSD:
GtkRxDlg Compilation


Created - Apr 31, 2007  |  Modified - Sep 20, 2007

P2O2 WWW Homepage -> Open Object Rexx in NetBSD -> GtkRxDlg Compilation


GtkRxDlg Sources and Hyperlinks

GtkRxDlg - ooRexx Gtk GUI must be compiled from sources provided by Source Forge website [1].

[1] Object REXX GTK+ Project

 

P2O2 Remarks

Placing sources and making binaries

GtkRxDlg should be placed in the same /usr/pkg/opt directory as ooRexx. Copy gtkrxdlg-1.0.0.tar.gz to /usr/pkg/opt and untar it. You'll find sources in /usr/pkg/opt/gtkrxdlg directory.

Application directory will contain three subdirectories: /src, /scripts, and /doc. Do not pay attention to anything and go directly to /src. There you'll have to change "makefile" a little. Don't run install.rex script!

    BEFORE changes:
    ======================    
    GCFLAGS = -c `pkg-config --cflags gtk+-2.0` \
              -DEAPI -Wall -fPIC -DVMAJOR=$(VMAJOR) \
              -DVMINOR=$(VMINOR) -DVREL=$(VREL) -I/opt/orexx

    GLFLAGS = -Wl,--export-dynamic `pkg-config --libs gtk+-2.0` \
              -shared -nostartfiles -lrexx -lrexxapi
    
    AFTER changes:
    ======================    
    GCFLAGS = -c `pkg-config --cflags gtk+-2.0` \
              -DEAPI -Wall -fPIC -DVMAJOR=$(VMAJOR) \
              -DVMINOR=$(VMINOR) -DVREL=$(VREL) -I/usr/pkg/opt/ooRexx

    GLFLAGS = -Wl,--export-dynamic `pkg-config --libs gtk+-2.0` \
              -shared -nostartfiles
    

Time no to make only one library. Issue known command:

    # make
    

Compilation will create file .../src/libgtkrxdlg.so.1.0.0

Making symlinks

Make the system know about new library. Symlink the library to /usr/lib/ direcory. Yes! Do not do it NetBSD way to /usr/pkg/lib directory! Then create two other symlinks in /usr/lib/: @libgtkrxdlg.so and @libgtkrxdlg.so.1. Symlink also ooRexx classes in /usr/pkg/opt/gtkrxdlg/scripts/gtkdrdlg.cls from /usr/bin directory!

Checking installation

Let's place example scripts from /usr/pkg/opt/gtkrxdlg/scripts/ in home subdirectory, e.g. ~/data/rexx/examples/gtkrxdlg/. They have executable flag set on so they can be invoked in terminal window by typing their name and pressing Enter. Copy also to the same directory /docs directory with all files /usr/pkg/opt/gtkrxdlg/docs/*. It contains images which are use by test04.rex script. And last thing to do - correcting the test script a bit.

    BEFORE changes:
    ======================
    /* build the array of image file path/names */
    imagefile = .array~new
    imagefile[1] = '../docs/powrexx.jpg'
    imagefile[2] = '../docs/powrexx2.gif'
    imagefile[3] = '../docs/powrexx3.gif'
    
    AFTER changes:
    ======================
    /* build the array of image file path/names */
    imagefile = .array~new
    imagefile[1] = './docs/powrexx.jpg'
    imagefile[2] = './docs/powrexx2.gif'
    imagefile[3] = './docs/powrexx3.gif'
    

 

P2O2 Screenshots

[window generated by test04.rex]

Picture 1: Test window before changes (opened by test01.rex)

[window generated by test04.rex]

Picture 2: Test window after changes (opened by test01.rex)

[Changes made in entry fields are returned to caller]

Picture 3: Changes made in entry fields are returned to caller (window opened by test01.rex)

[MC window with GtkRxDlg.cls]

Picture 4: MC window with GtkRxDlg.cls. GtkRxDlg.cls is symlink from /usr/bin directory.

[MC window with libgtkrxdlg.so.1.0.0]

Picture 5: MC window with libgtkrxdlg.so.1.0.0. libgtkrxdlg.so.1.0.0 is symlink from /usr/lib directory.

[MC window with /src/makefile]

Picture 6: MC window with /src/makefile in edit window. Marked text has to be removed.

[test02.rex result - first message window.]

Picture 7: test02.rex result - message window.

[test02.rex result - open file dialog window.]

Picture 8: test02.rex result - open file dialog window.

[test02.rex result - select font dialog window.]

Picture 9: test02.rex result - select font dialog window.

[Window with returned changes]

Picture 10: Changes are returned to caller (test02.rex)

[test03.rex result - open file dialog window.]

Picture 11: test03.rex result - open file dialog window.

[test03.rex result - edit window.]

Picture 12: test03.rex result - edit window.

[test04.rex result - OK messsage with icon window.]

Picture 13: test04.rex result - OK messsage with icon window.

[Example of simple calculator window.]

Picture 14: test05.rex result - multi widget window. Example of simple calculator with entered values.

[Example of simple calculator showing calculation result.]

Picture 15: test05.rex result - multi widget window. Example of simple calculator showing calculation result.

 

Download Files

1.) gtkrxdlg.tar.gz - compiled libraries

 

[Logo P2O2]

 

[Logo NetBSD]

 

[Logo Open Object Rexx]

 

[Powered by Rexx Logo]

 


Przemysław Pawełczyk - Cracow, Poland    [Static website generated with Rexx scripts in NetBSD]