Setting up a cross-compilation environment for a specific target platform

I would like to set up a cross compilation environment in a Ubuntu 9.10 field. From the documents that I have read so far ( these ones , for example ), this is related to the compilation of the tool chain of the target platforms.

My question is: how do you determine the required version of each package in the toolchain for a specific target platform? Is there any rule of thumb?

This is the list found on one of the sites listed above:

Binutils-2.16.1.tar.bz2
Linux-2.6.20.1.tar.bz2
Glibc-2.5.tar.bz2
GlibC-LinuxThreads-2.5.tar.bz2
NKU-kernel-4.2.0.tar.bz2
GCC-g ++ - 4.2.0.tar.bz2

But suppose I want to generate executable files for standard Ubuntu 8.04 and CentOS 5.3 mailboxes. What are the required packages?

My main task is to avoid errors like "/usr/lib/libstdc++.so.6: version" GLIBCXX_3.4.11 not found "on client machines, but in the future I also want to deal with different architectures.

+3
source share
4 answers

, - , libc ( ), . , , , "/usr/lib/libstdc++.so.6: version" GLIBCXX_3.4.11 " ".

Ubuntu 8.04 CentOS 5.3 , , .

- chroot .

, ( ) Ubuntu 9.10 chroot. Dan Kegel crosstool -.

-, Dan Kegel crosstool .

, , , gcc, glibc, binutils Linux.

, . gcc, binutils, glibc linux headers . , . Linux - . .


- Ubuntu 9.10, dpkg-cross.

+4

Linux , (apt-get install kvm), . script . - , Linux, .

+2

: ?... Binutils-2.16.1.tar.bz2 --4.2.0.tar.bz2 GCC- ++ - 4.2.0.tar.bz2

, : , .

Linux-2.6.20.1.tar.bz2

. ( .)

Glibc-2.5.tar.bz2 Glibc-LinuxThreads-2.5.tar.bz2

. ; , .

- , ? , Ubuntu 8.04 CentOS 5.3. ?

, , libc, libstd++, pthreads , , - . [edit] , . - - .

+2

Optware?

I'm currently working on creating Mono and Moonlight for my Palm Pre using cross-compiling toolchain (as well as make files with Optware software handle most of the dependencies already).

0
source

Source: https://habr.com/ru/post/1734450/


All Articles