Cross-compiling Library

Discussion in 'General Computing' started by DevynCJohnson, Apr 13, 2014.

  1. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,381
    Likes Received:
    1,094
    Trophy Points:
    113
    I am familiar with cross-compiling, but I am having issues with ARMv6 (soft-float) cross-compiling. The issue is I am needing many ARM libraries (example - libbz2.a). For now, I have been downloading each one and manually placing them in /lib/arm-linux-gnueabi/. However, I want to install a complete library set from a repository, but when I do (by adding an ARM repo), the ARM libraries conflict with my normal AMD64 libraries. Any ideas?

  2. MikeyD

    MikeyD Active Member

    Messages:
    232
    Likes Received:
    113
    Trophy Points:
    43
    I can't say I've done much cross-compiling on a single system, but I did run across this Go cross-compilation tool (the example he uses actually shows compiling linux/arm on a darwin/amd64 arch).

    http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go

    Although I've never used it / heard of it so use at your own risk, but it may be worth checking out or at least a jumping off point to find similar programs that can do this for you. You obviously won't be able to run the compiled progs on your amd64 architecture, but you can at least compile them :)
    DevynCJohnson likes this.

Share This Page