You are not logged in.

#1 2013-12-07 21:00:27

ivokosir
Member
Registered: 2013-03-08
Posts: 15

[SOLVED]Insalling pkgs from different arhitecture for cross-compile

Hi,

I am developing program for raspberry pi, and i need to have libraries on my pc to cross-compile it.
Is there a way for me to download libs from pacman to something like /build/usr/lib, so i don't need to compile my packages?

Thanks

Last edited by ivokosir (2013-12-07 22:21:16)

Offline

#2 2013-12-07 21:04:00

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,595
Website

Re: [SOLVED]Insalling pkgs from different arhitecture for cross-compile

Cross compiling for the pi is best done with distcc on the pi using your more powerful pc also running distcc and the right toolchain.  The pi uses the ARMv6l hard toolchain.  This is the official recommendation by the Arch ARM devs.  http://archlinuxarm.org/developers/dist … -compiling

Last edited by graysky (2013-12-07 21:07:51)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2013-12-07 21:06:10

progandy
Member
Registered: 2012-05-17
Posts: 2,151

Re: [SOLVED]Insalling pkgs from different arhitecture for cross-compile

If you want to avoid using the pi, you could try to run arch arm in a virtual machine and run distcc from there.

Last edited by progandy (2013-12-07 21:08:58)

Offline

#4 2013-12-07 21:39:59

ivokosir
Member
Registered: 2013-03-08
Posts: 15

Re: [SOLVED]Insalling pkgs from different arhitecture for cross-compile

So on arch, it is standard to use distcc?
Is it only on arch, or it is like that for all distros(debian and fedora)?
Thanks for replies
EDIT:
If i wasn't clear, I need this strictly for development, not for creating arch packages.

Last edited by ivokosir (2013-12-07 21:44:32)

Offline

#5 2013-12-07 21:55:03

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,595
Website

Re: [SOLVED]Insalling pkgs from different arhitecture for cross-compile

graysky wrote:

This is the official recommendation by the Arch ARM devs


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB