Re: Help with cross compilation needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 01/11/2017 12:19, Moshe Kravchik ha scritto:
Hi,

I’m a newbie to cross compiling so excuse me if it is a dump question. I need to cross compile cryptsetup on my x86-64_linux_gnu for arm Linux machine. I’ve run configure with the –host set to arm-linux-gnueabihf. But the built binaries are for my machine, not for the target one.

I guess I need to point it to the right toolchain, sysroot for the includes and such. I tried to use –with-sysroot, but it did not have any effect.

Configure.log attached.

I’d appreciate a detailed guidance on how this should work. Also, I have toolchains, but what about dependent libraries: devmapper, popt, gcrypt. What do I do with them?

Thanks a lot,

Moshe



Hi,
try adding the following environment variables before calling ./configure and make

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-


--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
      http://www.KoanSoftware.com
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt




[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux