Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Anybody here done any cross-compiling ?

  • 04-10-2012 7:46pm
    #1
    Registered Users, Registered Users 2 Posts: 6,282 ✭✭✭


    I have a version of Linux (Angstrom) running on an ARM tablet (WM8650) that came with Android. I would be interested in cross-compiling some code for it, from a Intel32 type machine running some kind of Linux.

    Anybody got any pointers for me?
    I'm thinking so far of compiler / library/kernel versions for a start.

    Will I need to recompile gcc & glibc first to target ARM ?
    How do I find the versions of glibc etc that are already on the tablet?


    I know there are several architecture versions of ARM, I think the tab is v5 and the kernel is 2.6.32.9

    I found a tool called crosstool, at www.kegel.com, and then just now, http://crosstool-ng.org/ which I haven't looked at yet, not sure if either of these will do what I want. Yet.


Comments

  • Registered Users, Registered Users 2 Posts: 7,518 ✭✭✭matrim


    I don't have much experience in setting it up from scratch but I did do some development that required cross compilation before (for the Nokia N900). The recommended setup for it was using scratchbox. I don't know how well it would work for the tablet you mentioned but might be something to look into


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    OP, check this: https://www.linux.com/community/blogs/127-personal/468920-cross-compiling-for-arm

    I have no experience, but it looks OK


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    I did some compiling for the PSP on my intel box before. All I remember (it was a long time ago) was that I got the PSP toolchain, followed relevant setup instructions and after that it "just worked". In theory cross compiling should "just work".


  • Registered Users, Registered Users 2 Posts: 5,238 ✭✭✭humbert


    Usually involves installing the toolchain, i.e. libraries and compiler arm-linux-androideabi-g++ for example.

    Then adding these binarys to PATH.

    If the makefiles support the architecture you just have to add something like ARCH=arm to the make command.

    For simpler projects which don't have makefiles you can just call the toolchain compiler directly as you would a normal compile.


Advertisement