[gambit-list] Gambit REPL iOS app

Raffael Cavallaro raffaelcavallaro at mac.com
Wed Mar 16 11:31:14 EDT 2011


On Mar 15, 2011, at 7:18 AM, Marc Feeley wrote:

> On a Mac with XCode 4.0 installed:
> 
> % curl "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_0-devel.tgz" > "gambc-v4_6_0-devel.tgz"
> % tar zxf gambc-v4_6_0-devel.tgz 
> % cd gambc-v4_6_0-devel
> % ./configure --enable-single-host
> % make -j 2
> % make update
> % cd examples/iOS
> % make examples
> % ./build-gambit-iOS
> % open GambitREPL.xcodeproj
> 
> Then in XCode in the upper left corner of the main window, select the Scheme "GambitREPL-simulator | iPhone 4.3 Simulator" and click "Run". 

FWIW, this does not work for me, though I've found a workaround.

Here are the details:

Everything goes smoothly though:

% make -j 2

but when doing:

% make update

I get several errors:

[much, presumably normal, output snipped]
making all in iOS
make[3]: *** No rule to make target `all'.  Stop.
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [update] Error 2
rafbookpro13:gambc-v4_6_0-devel raffaelc$ cd examples/iOS/
rafbookpro13:iOS raffaelc$ make examples
make: *** No rule to make target `examples'.  Stop.


So I switch back to the gambc-v4_6_0-devel root directory and do:

% make clean
% ./configure --enable-single-host
% make -j 2
% make update

which now succeeds. then:

% cd examples/iOS
% make examples

Then trying to do:

% ./build-gambit-iOS

I get a permission error (i.e., build-gambit-iOS does not have the executable bit set)

so I do:

% chmod +x ./build-gambit-iOS

then:

% ./build-gambit-iOS

and the rest works as it should.

Finally, remember that cut and paste into the repl or script editor in the iOS simulator is a bit tricky. You need to copy from some source (e.g., emacs) then hit cmd-V in the simulator; nothing will appear to happen, but your text is now in the iOS simulator's clipboard. Only now, after "loading" the iOS simulator's clipboard, should you use the touch gesture (two finger trackpad click or control-click) on the simulator screen to get the "Select | Select All | Paste" pop-up on the iOS simulator screen and paste your text. If you don't hit Cmd-V first, your clipboard contents will be stale. This extra step is to prevent the Mac OS clipboard and iOS simulator clipboard from overwriting each other.

Maybe this will be helpful to others who run into similar issues.

warmest regards,

Ralph



Raffael Cavallaro
raffaelcavallaro at me.com







More information about the Gambit-list mailing list