Pandora Toolchain for Mac OS X?

Discussion in 'General Discussions' started by RodrigoCard, Sep 7, 2016.

  1. RodrigoCard

    RodrigoCard Member

    Joined:
    Mar 2, 2010
    Messages:
    148
  2. hns

    hns Very Active Member

    Joined:
    Jul 16, 2012
    Messages:
    325
    Location:
    Oberhaching
  3. Cloudef

    Cloudef Member

    Joined:
    Dec 30, 2009
    Messages:
    460
    Location:
    Gensokyo
    http://cloudef.pw/dchrt.html Wally may or may not have the toolchain anymore, but in README are step-by-step for creating one for OS X and even config for crosstool provided if it still works.
     
  4. bukkit

    bukkit Member

    Joined:
    Mar 30, 2011
    Messages:
    212
  5. slaanesh

    slaanesh Certified Guru

    Joined:
    Nov 9, 2005
    Messages:
    1,978
    Location:
    Melbourne, Australia
    How do you set this up?

    I simply downloaded it and plopped the directories into my $HOME.

    I added the 'bin' directory containing 'arm-linux-gnueabi-gcc', etc to my path.

    When I make a project i get an error saying that size_t isn't defined. I've set up some extra "INCLUDES = -I$(HOME)/x86_64-apple-darwin15.0.0/gcc/arm-linux-gnueabi/lib/gcc/arm-linux-gnueabi/4.9.2/include" to my project but I think there is something else missing.
     
  6. TrashyMG

    TrashyMG Sarcasm Dispenser Staff Member

    Joined:
    Jan 18, 2010
    Messages:
    10,461
    hns method is likely not pandora specific enough, as likely it will have libraries not on the ancient SuperZaxxon environment.

    Used to rock sebt3's crosscompiler setup for a long time, on linux I would install it directly, I had a linux VM running on my Mac for a bit. Then just migrated to using my 1GHz unit and the command line tools that reside with ptitseb's codeblocks PND, there is less of the complications that cross-compiling gives you when directly compiling on the Pandora.
     
  7. slaanesh

    slaanesh Certified Guru

    Joined:
    Nov 9, 2005
    Messages:
    1,978
    Location:
    Melbourne, Australia
    Well I guess that's okay, I may just copy the includes and libs over from the Pandora and see how that goes. Just keep the gcc specific stuff and everything in /usr/include and /usr/lib.
     
  8. slaanesh

    slaanesh Certified Guru

    Joined:
    Nov 9, 2005
    Messages:
    1,978
    Location:
    Melbourne, Australia
    Okay well I cobbled it together and it works. I created a $HOME/superzaxxon1_76/usr/lib, $HOME/superzaxxon1_76/usr/include and $HOME/superzaxxon1_76/lib which mimic the relevant Pandora’s directories. I copied the required *.h, *.a and *.so into these directories adjusted my makefile’s -I and -rpath-link and it built my binary.
    Some of the *.so files are scripts (which contain paths) that also needed adjusting.
    Copied the binary to my pandora and bam! Working toolchain.
     
    levi likes this.

Share This Page

Loading...