How to compile a cross compiler for arm

General programming chat and advice for beginners

3 posts
by raspteam » Sun Nov 04, 2012 5:46 pm
Hi,

I used many libs found on web but any of the downloaded packages do not worked correctly. I also tried to recompile source in order to not have problems of dependencies. Therefore I don't manage to compile a simple project on a computer and to execute it on raspberry board.

Where can I found a good tutorial (not using GIT) and where does a package source for arm compiler can be found?

There is someone who has allready compile a cross sources for arm?

Thanks
Posts: 6
Joined: Wed Oct 10, 2012 8:54 pm
by jecxjo » Mon Nov 05, 2012 1:40 am
Gave me a reason to move info from my old site to my new one so here is my tutorial on building a cross compiler environment.

http://jecxjo.motd.org/code/blosxom.cgi/devel/cross_compiler_environment
IRC (w/ SSL Support): jecxjo.mdns.org
Blog: http://jecxjo.motd.org/code
ProjectEuler Friend: 79556084281370_44d12dd95e92b1d9453aba2bdc94101b
User avatar
Posts: 157
Joined: Sat May 19, 2012 5:22 pm
Location: Ames, IA (USA)
by raspteam » Fri Nov 16, 2012 4:56 am
I used your tutorial to install GitHub because it is a easy way to compile C source and generate a elf file. The explanations are good and worked fine. However this binary file has no extension and is not runable under Qemu or rasp board using classical command line; The response is the file is considered like a repository. If I use bash command line before exe, the binary file does not run.

When I used command 'file' on exe the result is and elf file for arm.

I would like to generate an application which runs on kernel wheezy.
I viewed the way to run an exe is to replace kernel vmlinuz by this exe.

Does a solution exist to run the output file from compilation?
Is it a really output file which can be executed on an kernel?
How to compile C files and generate an application which will be able to run on kernel wheezy?
Posts: 6
Joined: Wed Oct 10, 2012 8:54 pm