RexxGTK

2010-03-19
2012-08-14
  • I compiled newest GTK+ into /opt/gtk directory as it was suggested by GTK.

    ooRexx is placed in /opt too (/opt/ooRexx).

    I use Debian 5.0.4 (stable) amd64 with FLAGS set to:

    declare -x CFLAGS="-m64 -march=amdfam10 -O3 -pipe"
    declare -x CONCURRENCY_LEVEL="2"
    declare -x CPPFLAGS="-m64 -march=amdfam10 -O3 -pipe -I/opt/gtk/include"
    declare -x CXXFLAGS="-m64 -march=amdfam10 -O3 -pipe"
    

    Thus I got errors during rexxgtk compilations. As the package is not equipped
    with traditional configure I am not able (I do not know how) to correct
    rexxgtk settings to make it search for *.h in /opt/gtk directory. What should
    I do then?

    Makefile as it is:

    # Setup
    include ver.mak
    GTK = gtk+-2.0
    GRXLFLAGS = `pkg-config --libs gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0` \
        --export-dynamic -shared -nostartfiles
    GRXCFLAGS = `pkg-config --cflags gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0` \
            -fPIC -DVMAJOR=$(VMAJOR) \
            -DVMINOR=$(VMINOR) -DVREL=$(VREL)
    (...)
    

    "Make" results:

     pp@jola:~/data/compile.err/RexxGTK$ make
    gcc -c `pkg-config --cflags gtk+-2.0 gdk-2.0 glib-2.0 gthread-2.0` -fPIC -DVMAJOR=0 -DVMINOR=10 -DVREL=0 rexxgtk.cpp
    In file included from rexxgtk.cpp:42:
    rexxgtk.h:53:23: error: oorexxapi.h: No such file or directory
    In file included from /opt/gtk/include/gtk-2.0/gtk/gtk.h:32,
                     from rexxgtk.h:54,
                     from rexxgtk.cpp:42:
    /opt/gtk/include/gtk-2.0/gdk/gdk.h:32:33: error: gdkapplaunchcontext.h: No such file or directory
    /opt/gtk/include/gtk-2.0/gdk/gdk.h:33:22: error: gdkcairo.h: No such file or directory
    /opt/gtk/include/gtk-2.0/gdk/gdk.h:34:22: error: gdkcolor.h: No such file or directory
    /opt/gtk/include/gtk-2.0/gdk/gdk.h:35:23: error: gdkcursor.h: No such file or directory
    /opt/gtk/include/gtk-2.0/gdk/gdk.h:36:24: error: gdkdisplay.h: No such file or directory
    

    (...)

    rexxgtk.cpp:259: error: expected constructor, destructor, or type conversion before ‘(’ token
    rexxgtk.cpp:273: error: expected constructor, destructor, or type conversion before ‘(’ token
    rexxgtk.cpp:287: error: expected constructor, destructor, or type conversion before ‘(’ token
    rexxgtk.cpp:301: error: expected constructor, destructor, or type conversion before ‘(’ token
    rexxgtk.cpp:310: error: ‘RexxRoutineEntry’ does not name a type
    rexxgtk.cpp:331: error: ‘RexxMethodEntry’ does not name a type
    rexxgtk.cpp:796: error: ‘RexxPackageEntry’ does not name a type
    rexxgtk.cpp:808: error: expected constructor, destructor, or type conversion before ‘(’ token
    make: *** [rexxgtk.o] Error 1
    pp@jola:~/data/compile.err/RexxGTK$
    

    Any help appreciated.

    Regards

    Przemysław Pawełczyk