Re: problem with swt4-gtk update
Hi Emmanuel,
On Mon, Dec 28, 2020 at 10:33 PM Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
>
> Hi Emmanuel,
>
> With the latest update of swt4-gtk to 4.18.0-1 I am seeing a problem
> in loading the library. After a little debugging it seems its not
> finding a symbol.
>
> /usr/lib/jni/libswt-pi3-gtk-4940r23.so: undefined symbol:
> gdk_texture_new_from_file
>
> Then it tries to find "/usr/lib/jni/libswt-pi4-gtk.so" which is not
> present and so the application fails.
>
> Any ideas?
'gdk_texture_new_from_file' is from gtk4 and the below patch will fix
the problem.
Do you want me to go ahead with this change ?
diff --git a/debian/rules b/debian/rules
index 803ce85a..f23618c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
include /usr/share/dpkg/pkg-info.mk
-export DEB_CFLAGS_MAINT_APPEND=-fPIC
+export DEB_CFLAGS_MAINT_APPEND=-fPIC -DNO_gdk_1texture_1new_1from_1file
DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
--
Regards
Sudip
Reply to: