AntiGuide: OlinuxInoGccXCompiler



PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes 216.73.216.212 :: Signaler un abus :: le: 20250716 10:01:40
OlinuxIno
x-tools

GAFFE: le dossier perd eses autorisation si il est placé sur un disque NTFS!
une page concirrente à évaluer
Here is my road-map

download a Linux Live 64 bits: (for me: Ubuntu 12.04)
Url: http://www.ubuntu.com/download/desktop/thank-you?distro=desktop&release=lts&bits=64 230 Mb approximatively

burn the .iso file on a CD (700 Mo )
I used DeepBurner

boot a 64 bits capable computer with this CD
Mine is Dell Vostro 1720 (in true life XP/Seven)
DON'T INSTALL Ubuntu, Just "TRY"

Download ready to use Cross-compiler
according to the page: http://archlinuxarm.org/developers/distcc-cross-compiling
start FireFox (from the left menu)
download the tools: http://archlinuxarm.org/builder/xtools/x-tools.tar.xz
save the file on disk (may be an external drive, even FAT or NTFS!

explode the archive
using the ubuntu tool:
CAUTION: the exploded folder MUST be on disk with authorization !, with linux live, eg. use the Desktop!
locate the box "x-tools-tar-xz" in the download folder
drag the x-tools folder on your Desktop
explode it, in place.

Create hello.c file
#include <stdio.h>
main() {
printf("Hello World, \n");
printf("I am Olinuxino.\n");
}


Open terminal window:

compile using the X compile (called by explicit path) (later you will update PATH environment)
~/Desktop/x-tools/arm-unknown-linux-gnueabi/bin/gcc -o hello hello.c
les plus feignants frapperont:
~/D*/x*/a*/bin/gcc -o hello hello.c

Try running hello:
./hello

the good answer is "cannot execute binary file (of course, you are not running ARM computer)

move the file hello to the OlinuxIno board
for me:
I uploaded the file on a server

Loading on OlinuxInoMaxi:
wget http://www.logsm.net/hello
chmod +x hello
GAFFE chmod +ax ne semble pas exister
./hello

and the answer is:
Hello World,
I am Olinuxino.

fine!.

As didn't said Neil Armstrong: "That's one small step for mankind, one giant leap for me."