I am trying to compile libsigrok at Arch Linux that has SWIG 4.0.1 and it fails: GEN bindings/ruby/classes_wrap.cpp CCLD src/libdrivers.o GEN src/libdrivers.lo CCLD libsigrok.la copying selected object files to avoid basename conflicts... ar: `u' modifier ignored since `D' is the default (see `U') GEN bindings/java/sigrok-core.jar bindings/java/org/sigrok/core/classes/Driver.java:67: error: cannot find symbol tempoptions.set(entry.getKey(), entry.getValue()); ^ symbol: method set(ConfigKey,Variant) location: variable tempoptions of type ConfigMap 1 error make[1]: *** [Makefile:5314: bindings/java/sigrok-core.jar] Error 1 It looks like SWIG has changed the way it generates java bindings.
Created attachment 580 [details] Patch for classes.i Here is a patch for classes.i which will generate a compilable Driver.java
Dennis, I confirm this patch fixes the Java binding issue.
Oops, this was re-reported (by me) as well in #1527, and fixed there in the mean time. Closing this as duplicate. The fix by Dennis is indeed correct, however we also want to keep compatibility with SWIG 3.x, which is accomplished in the fix for #1527. Please report back in case the current git HEAD status still has issues. Thanks! *** This bug has been marked as a duplicate of bug 1527 ***