Reputation: 953
I have a toolchain for my target system (arm) correctly installed at $TOOLCHAIN.
The output of ls $TOOLCHAIN
is: bin debug-root include lib lib32 lib64 sysroot
.
The content of bin/* is not prefixed, i.e gcc, g++, as, ...
Now, I have a source distribution of an application I'd like to compile with the given toolchain for this target system. The source distribution has a configure script.
How to do this? Thanks in advance.
Upvotes: 0
Views: 1320
Reputation: 3060
Building a cross compiler/binutils is often very hard, and it doesn't allow you to test your programs.
Virtual machines are very slow and create a strong separation which make hard to share files between the host an the VM.
The easiest solution is Qemu-User-static : system-calls and instructions are wrapped in user mode to the native kernel.
Download or extract a rootfs.
Things became very simple : Many libraries aren't compiled because of things like hard-coded paths (you'll face many; many problems like the one you have with cross-compiling, a typical case). Here all happen as if you build packages natively and you'll have to type./configure
.
Upvotes: 1