OK. I moved from square one - I managed to create .so files in org.eclipse.swt.gtk.linux.arm of R4_11_maintenance branch.
Now, it is really proper bodge I end up with - manually finding build file, moving folders around, installing randomly 'stuff', etc...
But result is in:
Code: Select all
libswt-atk-gtk-4924r25.so
libswt-cairo-gtk-4924r25.so
libswt-glx-gtk-4924r25.so
libswt-gtk-4924r25.so
libswt-pi3-gtk-4924r25.so
libswt-webkit-gtk-4924r25.so
Full output:
Code: Select all
-e Cairo found, compiling SWT support for the cairo graphics library.
-e *** libjawt.so not found, the SWT/AWT integration library will not be compiled.
-e Building SWT/GTK+ for Architectures: linux armv7l
build.sh: 332: [: 1: unexpected operator
-e *** Warning: Cannot compile Webkit2 Extension because 'pkg-config --exists webkit2gtk-web-extension-4-0' check failed. Please install webkitgtk4-devel.ARCH on your system.
-e Building GTK3 bindings:
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c swt.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c -o c.o c.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c -o c_stats.o c_stats.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -DUSE_ASSEMBLER -c callback.c
cc -shared -fPIC -s -o libswt-gtk-4924r25.so swt.o c.o c_stats.o callback.o
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os.c
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GDK__1gdk_1window_1set_1background_1pattern’:
os.c:2973:2: warning: ‘gdk_window_set_background_pattern’ is deprecated [-Wdeprecated-declarations]
gdk_window_set_background_pattern((GdkWindow *)arg0, (cairo_pattern_t *)arg1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28,
from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gdk/gdkwindow.h:790:12: note: declared here
void gdk_window_set_background_pattern (GdkWindow *window,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GDK_gdk_1threads_1leave’:
os.c:3243:2: warning: ‘gdk_threads_leave’ is deprecated [-Wdeprecated-declarations]
gdk_threads_leave();
^~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:61,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gdk/gdkthreads.h:48:10: note: declared here
void gdk_threads_leave (void);
^~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1get_1geometry’:
os.c:9266:2: warning: ‘gtk_status_icon_get_geometry’ is deprecated [-Wdeprecated-declarations]
rc = (jboolean)gtk_status_icon_get_geometry((GtkStatusIcon*)arg0, (GdkScreen**)arg1, (GdkRectangle*)lparg2, (GtkOrientation*)arg3);
^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:166:23: note: declared here
gboolean gtk_status_icon_get_geometry (GtkStatusIcon *status_icon,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1get_1visible’:
os.c:9280:2: warning: ‘gtk_status_icon_get_visible’ is deprecated [-Wdeprecated-declarations]
rc = (jboolean)gtk_status_icon_get_visible((GtkStatusIcon*)arg0);
^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:154:23: note: declared here
gboolean gtk_status_icon_get_visible (GtkStatusIcon *status_icon);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1new’:
os.c:9292:2: warning: ‘gtk_status_icon_new’ is deprecated [-Wdeprecated-declarations]
rc = (jintLong)gtk_status_icon_new();
^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:84:23: note: declared here
GtkStatusIcon *gtk_status_icon_new (void);
^~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1from_1pixbuf’:
os.c:9315:2: warning: ‘gtk_status_icon_set_from_pixbuf’ is deprecated [-Wdeprecated-declarations]
gtk_status_icon_set_from_pixbuf((GtkStatusIcon*)arg0, (GdkPixbuf*)arg1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:97:23: note: declared here
void gtk_status_icon_set_from_pixbuf (GtkStatusIcon *status_icon,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1tooltip_1text’:
os.c:9327:2: warning: ‘gtk_status_icon_set_tooltip_text’ is deprecated [-Wdeprecated-declarations]
gtk_status_icon_set_tooltip_text((GtkStatusIcon *)arg0, (const gchar *)lparg1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:137:23: note: declared here
void gtk_status_icon_set_tooltip_text (GtkStatusIcon *status_icon,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1visible’:
os.c:9339:2: warning: ‘gtk_status_icon_set_visible’ is deprecated [-Wdeprecated-declarations]
gtk_status_icon_set_visible((GtkStatusIcon*)arg0, (gboolean)arg1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
from os.h:30,
from os_structs.h:19,
from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:151:23: note: declared here
void gtk_status_icon_set_visible (GtkStatusIcon *status_icon,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS__1g_1variant_1n_1children’:
os.c:16970:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rc = (jlong)g_variant_n_children((GVariant *)arg0);
^
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os_structs.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os_custom.c
os_custom.c: In function ‘swt_fixed_realize’:
os_custom.c:500:3: warning: ‘gtk_style_context_set_background’ is deprecated: Use 'gtk_render_background' instead [-Wdeprecated-declarations]
gtk_style_context_set_background (gtk_widget_get_style_context (widget), window);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkicontheme.h:27,
from /usr/include/gtk-3.0/gtk/gtk.h:127,
from os.h:30,
from os_structs.h:19,
from os_custom.c:17:
/usr/include/gtk-3.0/gtk/gtkstylecontext.h:1232:6: note: declared here
void gtk_style_context_set_background (GtkStyleContext *context,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os_stats.c
cc -shared -fPIC -s -o libswt-pi3-gtk-4924r25.so swt.o os.o os_structs.o os_custom.o os_stats.o `pkg-config --libs-only-L gtk+-3.0 gthread-2.0` -L/usr/X11R6/lib -lgtk-3 -lgdk-3 -lcairo -lgthread-2.0
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags atk gtk+-3.0 gtk+-unix-print-3.0` -c atk.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags atk gtk+-3.0 gtk+-unix-print-3.0` -c atk_structs.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags atk gtk+-3.0 gtk+-unix-print-3.0` -c atk_custom.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags atk gtk+-3.0 gtk+-unix-print-3.0` -c atk_stats.c
cc -shared -fPIC -s -o libswt-atk-gtk-4924r25.so swt.o atk.o atk_structs.o atk_custom.o atk_stats.o `pkg-config --libs-only-L atk` -latk-1.0
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c glx.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c glx_structs.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux -c glx_stats.c
cc -shared -fPIC -s -o libswt-glx-gtk-4924r25.so swt.o glx.o glx_structs.o glx_stats.o -lGL -lGLU -lm
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gio-2.0` -c webkitgtk.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gio-2.0` -c webkitgtk_structs.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gio-2.0` -c webkitgtk_stats.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags gio-2.0` -c webkitgtk_custom.c
cc -shared -fPIC -s -o libswt-webkit-gtk-4924r25.so swt.o webkitgtk.o webkitgtk_structs.o webkitgtk_stats.o webkitgtk_custom.o `pkg-config --libs-only-l gio-2.0`
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags cairo` -c cairo.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags cairo` -c cairo_structs.c
cc -O -Wall -fPIC -DSWT_VERSION=4924r25 -DLINUX -DGTK -I/usr/lib/jvm/current//include -I/usr/lib/jvm/current//include/linux `pkg-config --cflags cairo` -c cairo_stats.c
cc -shared -fPIC -s -o libswt-cairo-gtk-4924r25.so swt.o cairo.o cairo_structs.o cairo_stats.o `pkg-config --libs-only-L cairo` -lcairo
-e GTK3 Build succeeded
I really wish I have someone beside me who
understands 'things' to help:
- why that build script is not invoked by ant
- what we really need for first error ("Please install webkitgtk4-devel.ARCH on your system") or is it just a red herring
- if I have .so files what then! (only thing I can think of is get some zip file distribution of eclipse for linux and replace existing .so files in there with those I created and hope for the best)
- do I need to build some other c files somewhere else (I'm sure that there are other places where c files exist)
Also, I'm aware that some of those questions really need to be posted at Eclipse people - but so far I've not no response over there...
-