[gambit-list] Building iOS apps using Sencha touch

Marc Feeley feeley at iro.umontreal.ca
Wed Mar 21 16:02:29 EDT 2012


A few weeks ago I was preparing to participate in the hacking health hackathon in Montreal.  In the end I did not actually take part in the event.  However, in preparation for the event and with the help of Guillaume Cartier and Eric Thivierge, I developped a few tools to build iOS apps using Gambit and the Sencha touch 2 framework (http://www.sencha.com/products/touch).  This message contains a few notes for those wishing to try this out on their iOS device.

First, you need an up to date Gambit.  This can be obtained with:

   $ mkdir temp
   $ cd temp
   $ curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_4-devel.tgz > gambc-v4_6_4-devel.tgz
   $ tar zxf gambc-v4_6_4-devel.tgz
   $ mv gambc-v4_6_4-devel gambit
   $ cd gambit
   $ ./configure
   $ make bootstrap
   $ git stash
   $ make update
   $ cd examples/iOS
   $ make examples

Then, "open GambitREPL.xcodeproj" to build the "Gambit REPL dev" app with Xcode and install it by clicking on "run" in Xcode with your iOS device or the simulator as destination (this step can be skipped if you already have Gambit REPL v6.1 on your iOS device).

Then, on your iOS device, configure the network to connect to the same wifi as your development machine.

Then, launch "Gambit REPL dev" and enter (repl-server #f) to start the REPL server.

Then, unpack the files from "tools.tar.gz" attached below and follow the instructions in the README:

==============================================================================
Some useful tools to upload programs to Gambit REPL:

./touch-install          <== installs sencha touch on Gambit REPL

./grd-install demo4      <== installs demo4 on Gambit REPL (press RUN
                             button in the edit view to execute demo4)

Note that the definition of GRD at the top of touch-install and
grd-install should be changed to point to the executable "grd"
program.

The content of the demo4 directory is:

demo4/README        this file
demo4/index.html    main HTML file (basically imports the JS code)
demo4/index.js      main JS file with the Sencha touch UI stuff
demo4/install.scm   Scheme file that is loaded when demo4 is installed
demo4/main.scm      Scheme file that is loaded when demo4 is run

Applications should be contained in a directory with the same general
structure.  All resources specific to the application should be in
that directory.
==============================================================================

The demo5 app included in the tar file is also interesting as it allows the execution of some of the Sencha touch demos.

Marc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tools.tar.gz
Type: application/x-gzip
Size: 2811 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20120321/60f4eba2/attachment.bin>


More information about the Gambit-list mailing list