Cross-compiler to ARMv7
How can I cross compile program to ARMv7 prosessor on Mageia 5? Where is no (like in Ubuntu) gcc-arm-linux-gnueabihf in Mageia repo. Can I port something from other source?
|
What package manager does Mageia have? You can't search in a repository for the gnueabi tools? Another option is to build the gnueabi tools from source and install them on your machine. I don't know if one of the Linux download links here is the source tarball for the toolchain https://launchpad.net/gcc-arm-embedded, but it's worth a look.
For what it's worth, if you have room on your target, try to build on the target. I've used cross compilers before, but usually a company has to set them up for me, meaning I've purchased it, and had their experts set up a framework to cross compile and deploy. Every time I try to install a tool chain to cross compile, I can get it to work, but eventually something breaks the situation, like needing a special library and not having had the library path properly set up, etc. |
Yep, You are right. I decided to create native environment for compilation of programs on ARMv7 platform. I have a router Asus RT-AC68R based on ARMv7, with TomatoUSB software installed on it. I plugged into a USB port, 32GB pen and I mounted it to /opt. Then I have uploaded entware (not optware), several applications form entware and the GCC compiler + all dependings on what opkg considered for use together with gcc.
I have a strange situation. I'm trying to compile the simplest possible programs for testing: Code:
#include <stdio.h> then I try to run this program and I get the following message: Code:
root @ asus: /opt/FTDI # ./test I have no idea what it might be caused. Can someone help me? Here are a few additional information straight from Asus: Code:
root@asus:/opt/FTDI# echo $PATH |
All times are GMT -5. The time now is 09:35 PM. |