Raspberry pi cross-compile environment

Asked 2 years ago, Updated 2 years ago, 89 views

http://qiita.com/atchy @github/items/fb9df9e5865d8c7f7a72

This site explains how to create a raspbian cross-compilation environment, but should Ubuntu's bit count be combined with raspbian?
Raspbian is
Linux raspberrypi 3.18.11+#781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
I'm using this.
I don't know how many bits armv6l is, but which one should I match, 32-bit or 64-bit?
Thank you for your cooperation.

raspberry-pi

2022-09-30 21:00

1 Answers

Since it is a cross-compiled environment, it is not necessarily necessary for the host and target to have the same number of bits.
Rather,
so that you can write source code that does not cause problems with both 64bit and 32bit. Wouldn't it be better to have a 64-bit host?
Host side 64-bit native compiler and
32-bit cross compiler for cross and
Compiling 32-bit code with gives you a different warning.


2022-09-30 21:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.