eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

[gtk4] UnsatisfiedLinkError in Combo widget

Open laeubi opened this issue 11 months ago • 1 comments

When running with GTK4 it shows the following error (see for example here)

java.lang.UnsatisfiedLinkError: 'void org.eclipse.swt.internal.gtk3.GTK3.gtk_editable_paste_clipboard(long)'
	at org.eclipse.swt.internal.gtk3.GTK3.gtk_editable_paste_clipboard(Native Method)
	at org.eclipse.swt.widgets.Combo.paste(Combo.java:1975)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo.test_copy(Test_org_eclipse_swt_widgets_Combo.java:236)
java.lang.UnsatisfiedLinkError: 'long org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(long)'
	at org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(Native Method)
	at org.eclipse.swt.widgets.Combo.getSelection(Combo.java:1306)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo.test_setSelectionLorg_eclipse_swt_graphics_Point(Test_org_eclipse_swt_widgets_Combo.java:879)
java.lang.UnsatisfiedLinkError: 'long org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(long)'
	at org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(Native Method)
	at org.eclipse.swt.widgets.Combo.getSelection(Combo.java:1306)
	at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Combo.test_clearSelection(Test_org_eclipse_swt_widgets_Combo.java:206)
Error:  Errors: 
Error:    Test_org_eclipse_swt_widgets_Combo.test_clearSelection:206 » UnsatisfiedLink 'long org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(long)'
Error:    Test_org_eclipse_swt_widgets_Combo.test_copy:236 » UnsatisfiedLink 'void org.eclipse.swt.internal.gtk3.GTK3.gtk_editable_paste_clipboard(long)'
Error:    Test_org_eclipse_swt_widgets_Combo.test_getSelection:351 » UnsatisfiedLink 'long org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(long)'
Error:    Test_org_eclipse_swt_widgets_Combo.test_paste:488 » UnsatisfiedLink 'void org.eclipse.swt.internal.gtk3.GTK3.gtk_editable_paste_clipboard(long)'
Error:    Test_org_eclipse_swt_widgets_Combo.test_setSelectionLorg_eclipse_swt_graphics_Point:879 » UnsatisfiedLink 'long org.eclipse.swt.internal.gtk3.GTK3.gtk_entry_get_text(long)'
Error:    Test_org_eclipse_swt_widgets_Shell.a_test_setRegion:729 » UnsatisfiedLink 'void org.eclipse.swt.internal.gtk3.GTK3.gtk_widget_shape_combine_region(long, long)'
Error:    Test_org_eclipse_swt_widgets_Shell.test_setSizeCustomResize:771 » UnsatisfiedLink 'long org.eclipse.swt.internal.gtk.GDK.gdk_window_get_display(long)'

laeubi avatar Feb 15 '25 10:02 laeubi

This appears to be partially fixed by https://github.com/eclipse-platform/eclipse.platform.swt/pull/2130

jonahgraham avatar May 08 '25 13:05 jonahgraham

Closing as the linkage errors are fixed now.

akurtakov avatar May 13 '25 18:05 akurtakov