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.

Here we go:
1) Create the new user:
[cedric@cedric ~]$ su
Password:
[root@cedric cedric]# useradd sigrok
[root@cedric cedric]# mkdir /home/sigrok
[root@cedric cedric]# chown sigrok /home//sigrok/
[root@cedric cedric]# su sigrok
[sigrok@cedric cedric]$ cd
[sigrok@cedric ~]$ pwd
/home/sigrok
[sigrok@cedric ~]$
2) get MXE:
$ git clone https://github.com/mxe/mxe.git
3) get sigrok-cross-mingw
$ git clone git://sigrok.org/sigrok-util
4) compile pulseview:
$ cd ~/sigrok-util/cross-compile/linux
$ ./sigrok-cross-linux

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

_________________________________________________________________
________________________________________________________
Your E-Mail. Your Cloud. Your Office. eclipso Mail Europe. https://
www.eclipso.de


_______________________________________________
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


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

Reply via email to