Am 09.12.2024 um 18:50 schrieb Helge Kruse via sigrok-devel:
Am 27.01.2024 um 18:15 schrieb Cedric de Wijs via sigrok-devel:
I'm trying to cross compile sigrok for linux, in an arch linux system.

My plan is to make a new user, grab MXE, and then use sigrok-cross-linux
to compile pulseview.

[...]

The compile fails with errors like this: (The full console output is
attached) What did i miss?

   GEN      bindings/java/org/sigrok/core/classes/doc.i
   GEN      src/libdrivers.lo
   GEN      bindings/ruby/classes_wrap.cpp
   GEN bindings/java/org/sigrok/core/classes/classes_wrap.cxx
bindings/swig/enums.i:1: Error: Unknown directive '%attribute'.
make[1]: *** [Makefile:5953: bindings/java/org/sigrok/core/classes/
classes_wrap.cxx] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:2211: all] Error 2

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Hi Cedric,

did you managed to build sigrok on Arch linux?

I used to build sigrok programs on Ubuntu. Now on a new computer I
installed Arch linux, because it shall be use less resources. I wanted
to reproduce make build environment. I set up all the prerequisites as
listed at https://sigrok.org/wiki/Linux#Building_(manually) in the "sudo
pacman lines". Than I cloned sigrok-util and started sigrok-cross-linux
with the same result as Cedric.

I assume that something should replace '%attribute' with something
meaningful and the step that performs this task did not run. I could not
find out which step is responsible for that task. Has anybody any idea
what is missing here?

Is something special on Arch linux, so that I have to install any
specific version of a tool? Does anybody currently use Arch linux to
build sigrok software?

Best regards,
Helge


I still don't know why this is failing. But I found a workaround, that
might help other who search in the sigrok-devel mailing list archive.

For some reasons the configure script finds a JAVAC installed
(/usr/bin/javac). It looks like the configure script enables the JAVA
bindings for libsigrok, although there is something(tm) missing. I could
not found what is acutally not working here. Therefore I use a
workaround. I modified the script sigrok-cross-linux in
sigrok-util/croscompile/linux, changing this line:

PKG_CONFIG_PATH=$P $SB ../configure $C $JDK

to

PKG_CONFIG_PATH=$P $SB ../configure $C $JDK --disable-java

Regards,
Helge



_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to