1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Cross-compile on 64bit Linux machine?

Discussion in 'C /C ++' started by Miner49er, Aug 2, 2017.

  1. Miner49er

    Miner49er Active Member

    Joined:
    Mar 1, 2004
    Messages:
    655
    Simple question, I can only find stuff for 32bit...don't want to have to re-install os just for pandora compliation.
     
    Tags:
  2. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,640
    Location:
    France, near Lyon
    Try this script: crosscompilemaker.sh
    It should gives you a cross compiler environnement, with gcc/g++ 4.9 and the minimum stuff to build.
     
    levi and ckblackm like this.
  3. Miner49er

    Miner49er Active Member

    Joined:
    Mar 1, 2004
    Messages:
    655
    Excellent thanks!

    ...I'll stop setting up a VM now then :)
     
  4. MrConfusion

    MrConfusion Very Active Member

    Joined:
    Apr 11, 2013
    Messages:
    323
    Interesting. I wonder if I could use this without too much frustration :).
    So this script gets the compiler up and running... but then there's all the dependencies (stuff in /include and /lib). Any best practices/dirty tricks for accumulating these quickly?-) Simply copying them over from the Pandora messes up paths, right?

    (Background: My last crosscompiling project was done at work a loooooong time ago: Windows x86 build host --> Linux ARM host... abominal experience... I mostly remember staying late in the office so I could rant, curse and give my (CRT :) ) monitor the finger without bothering colleagues.)
     
  5. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,640
    Location:
    France, near Lyon
    My personnal way for that is to use codeblocks.pnd on my Linux machine. I mount it at the same mount point it would be on the Pandora (/mnt/utmp/codeblocks), using the same mecanism as on the pandora (unionfs, to have writable permisison, but plain extraction can work too). Then you need to replace all the link to /usr/lib and /lib by actual lib from the Pandora. It works pretty well.
     
    levi likes this.

Share This Page

Loading...