on Lion 10.7.4

first I install gcc-4.7 with brew then

  % curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_6.tgz > gambc-v4_6_6.tgz
  % tar zxf gambc-v4_6_6.tgz
  % cd gambc-v4_6_6
  % CC=g++-4.7 ./configure ---enable-single-host 
  % make -j 3
  % make install

;; --------------
  on SL 10.6.8/ Xcode 4.0.2
  % curl http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_6.tgz > gambc-v4_6_6.tgz
  % tar zxf gambc-v4_6_6.tgz
  % cd gambc-v4_6_6
  # I have changed the build-gambit-IOS shell-script, replace gcc with g++.  to get a libgambc.a which can be linked with C++ project
  # notice : if using g++ , GambitREPL.xcodeproj can not build correctly. but libgambic.a is ok.
  % cd contrib/GambitREPL
  % make ios   ### this will recompile the Gambit runtime for the iPhone (real device and simulator)

You'll find the libgambc.a  in  GambitREPL/gambit-iOS/current/lib.

Here is my libgambic.a  (compiled with g++)and gambit.h.  http://goo.gl/HfxLT


On Jun 8, 2012, at 12:00 AM, Kirill Zorin wrote:

Would you mind posting a link to your ARM libgambc.a file (and gambit.h)? Installing the gcc 4.7 toolchain on the Mac, especially as a cross-compiler, is a major pain, and I have a feeling other people will find this useful.

For whatever reason, not a single build I've got so far using build-gambit-iOS has been correct. Are there any extra special settings that need to be given to Xcode to make it cooperate with gambit?

Thanks.

On 2012-06-06, at 9:08 PM, Shihpin Tseng wrote:


We using 4.6.6, for now everything is perfect.

Here is what we do.

1.  compile GambitREPL of  gambit 4.6.6 with Xcode 4.0.2 on Snow Leopard. 
2.  compile and install gambit 4.6.6 with gcc-4.7 on working computer, Lion 10.7.4
2.  copy libgambc.a from SL system to our project.
3.  build project with latest Xcode (4.3.2)


On Jun 7, 2012, at 8:48 AM, mikel evins wrote:


On Jun 6, 2012, at 7:41 PM, Kirill Zorin wrote:

Is there any particular reason for using 4.6.1 (versus some other minor revision)? Was 4.6.1 found to be the latest iOS-stable version (by git-bisect or similar)?


The reason is very simple: we had 4.6.1 archived and we already knew that it worked.

We had been using 4.6.1 for several months. We delayed upgrading to newer releases of Gambit simply to avoid destabilizing our toolchain. With the release of 4.6.6 I decided it was time to attempt the upgrade. We don't want to fall too far behind the current release.

However, we encountered a problem similar to the one you did, and so we chose to roll back to the toolchain we had previously been using, since we knew that it worked.

It still works. We'll try an upgrade again in the near future, and if we fail again, we'll roll back again.


_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list