xraylib icon indicating copy to clipboard operation
xraylib copied to clipboard

Cross-compilation issue with prdata

Open ttmms opened this issue 3 years ago • 3 comments

I'm cross-compiling to ARM64 with yocto/bitbake using autotools, and running into issue with prdata. As I understood, it is an intermediate helper tool to generate source files during the build. So it should not be cross-compiled because it then leads to exec format error when the build continues and tries to run ARM64 prdata binary on x86 host. Do you have any suggestions how to fix configure/makefile to not cross-compile this specific binary?

Thanks!

ttmms avatar Jun 08 '22 10:06 ttmms

Hi,

You will need to use meson/ninja for that. More information can be found here.

tschoonj avatar Jun 08 '22 11:06 tschoonj

Alright, I suspected something like that! Unfortunately the required meson version is too high for my BSP, so I will have to find some hack in the meantime. Is meson >= 0.56.0 a hard requirement?

ttmms avatar Jun 13 '22 07:06 ttmms

Probably, but you feel free to try with an older version. Can't you install a newer version of meson during the build? meson 0.56.0 was released in October 2020, so it's not exactly recent.

tschoonj avatar Jun 13 '22 17:06 tschoonj