[racket] compiling Racket to android and ios apps

From: Franco Raimondi (f.raimondi at gmail.com)
Date: Mon Feb 23 04:17:45 EST 2015

Installing 6.1 on Raspbian is very easy. This is what I've done to install it in /opt:

cd /opt
wget http://mirror.racket-lang.org/installers/6.1/racket-6.1-src-builtpkgs.tgz
tar -xzvf racket-6.1-src-builtpkgs.tgz
cd racket-6.1/src
mkdir build
cd build
../configure
make; make install
cd /opt
sudo ln -sf racket-6.1 racket (in case you want to upgrade in the future you just change this link)
sudo vi /etc/profile and, before export PATH, add:
 PATH=$PATH:/opt/racket/bin

Franco

> On 23 Feb 2015, at 02:46, Darren Cruse <darren.cruse at gmail.com> wrote:
> 
> @Stephen I've honestly installed it on several devices now and can't remember for sure exactly how I installed it on the Pi (it's been a while).  I *think* (and I'm running Raspbian btw) that I'd inititally simply done "sudo apt-get install racket" and not had any trouble.  Though I think you're right that later I came to realize that had given me a version that wasn't the latest 6.1 version, but in this pong game I've written I'd used something that required 6.1, so I went ahead and downloaded from the racket site and built from source on the pi.  In either case I don't recall having much trouble.  If you do try and do have trouble, maybe post again and I can try a little harder to retrace my steps. 
> 
> On Sun, Feb 22, 2015 at 7:20 AM, Stephen De Gabrielle <spdegabrielle at gmail.com> wrote:
> As much as racket compiling to Java bytecodes (Android/Dalvik or JVM) is tempting - look how many people are excited by Clojure- it is beyond my skill and available time. 
> 
> I was referring to building Racket on ARM/RPi. That you have built Racket for the Pi is encouraging. Any tips/pitfalls I should be aware of?
> 
> Kind regard
> 
> Stephen
> 
> 
> On Sun, 22 Feb 2015 at 12:42, Darren Cruse <darren.cruse at gmail.com> wrote:
> >A solid Racket VM and GUI for Android and 
> >iOS apps would be awesome.
> Agreed, but I'm going to try the Raspberry Pi. If I can succeed targeting ARM on a familiar OS then hopefully cross compiling to a mobile OS won't be so bad. And 'Minimal Dr Racket' on RPi would be awesome
> 
> I got confused reading the above - I mean, I already run racket and drracket on my (original) pi?
> It's slow but it does run - what I learned is that's largely the fault of poor graphics drivers on the pi.
> It runs much better on the "odroid" that I bought right before christmas...
> Not knowing the pi 2 was coming with very similar specs...  (regret buying the odroid oh well at least it as cheap).
> 
> Then I realized:  Are you saying above you want to work on an android port of racket using android running on the pi (which is available) as your development platform?
> 
> That seems very reasonable.
> 
> 
>  
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.