Omnimaga

Calculator Community => Casio Calculators => Topic started by: Mighty Moose on September 12, 2012, 11:30:38 pm

Title: Install script for PrizmSDK [*nix]
Post by: Mighty Moose on September 12, 2012, 11:30:38 pm
Hi everyone!

This is a little shell script I wrote to automate the installation of the Prizm SDK (binutils, gcc, mkg3a, and libfxcg) onto your computer.  Plop this into any directory and run it with 'sudo sh ./install_prizm_sdk.sh'. Run 'export PATH=$PATH:/usr/local/cross/bin' or modify your PATH in a suitable manner after it has completed installation, and enjoy!  Currently, this script installs gcc/binutils to /usr/local/cross/bin and the PrizmSDK (libfxcg) to /home/{username}/PrizmSDK by default, but this is able to be easily modified.  Please read the comments in the script itself for further (but not exhaustive) information on what development libraries and utility programs you may need to retrieve to successfully install the SDK and other ways to modify or customize this script.

Questions? Comments? Snide Remarks?
Feel free to reply here, pm me, or email me.

Cheers and happy programming! :thumbsup:
MM
Title: Re: Install script for PrizmSDK [*nix]
Post by: Juju on September 13, 2012, 01:15:35 pm
Nice script here.

On Arch Linux, binutils, gcc and mkg3a are all available from the AUR, so "yaourt -S cross-sh3eb-elf-binutils cross-sh3eb-elf-gcc mkg3a && git clone https://github.com/Jonimoose/libfxcg.git PrizmSDK" should work (replace yaourt with whatever script you use to retrieve packages from the AUR).
Title: Re: Install script for PrizmSDK [*nix]
Post by: DJ Omnimaga on September 13, 2012, 04:18:16 pm
Seems pretty nice :D. This always uses the latest version of the SDK stuff btw, tho?
Title: Re: Install script for PrizmSDK [*nix]
Post by: Eiyeron on September 13, 2012, 04:45:39 pm
GOnna love it, I'll go Debian because my school uses it! p:
Title: Re: Install script for PrizmSDK [*nix]
Post by: Juju on September 13, 2012, 10:14:11 pm
Seems pretty nice :D. This always uses the latest version of the SDK stuff btw, tho?
Yeah, I checked, it downloads the SDK using Git, so it's always the latest version. (That might or might not compile. If it fails, just yell at Tari on Cemetech.)
Title: Re: Install script for PrizmSDK [*nix]
Post by: Mighty Moose on September 14, 2012, 11:54:33 am
Nice script here.

On Arch Linux, binutils, gcc and mkg3a are all available from the AUR, so "yaourt -S cross-sh3eb-elf-binutils cross-sh3eb-elf-gcc mkg3a && git clone https://github.com/Jonimoose/libfxcg.git PrizmSDK" should work (replace yaourt with whatever script you use to retrieve packages from the AUR).

Hey thanks! (On a side note: this is one of the first shell scripts I have ever written :P)

Seems pretty nice :D. This always uses the latest version of the SDK stuff btw, tho?

Yup.  If you really want, you (or I) can change it so it uses a more "stable" version a la PrizmSDK-0.3, or just take Juju's advice.  Everything else is configurable through variables (e.g. I had the best luck with gcc-4.6.3, but you can change that to whatever you want).
Title: Re: Install script for PrizmSDK [*nix]
Post by: Juju on September 14, 2012, 02:54:58 pm
gcc-4.7.0 works fine for me.