swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX


From: Brandon M. Gabler
Subject: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX
Date: Tue, 11 Jul 2006 14:18:25 -0700
User-agent: Internet Messaging Program (IMP) 4.0-cvs

To Bill: Thanks for the Swarm help!

I now have Swarm nearly functioning on my Mac.

However, when I first compiled my code, here are the errors I received (multiple of each type when compiling, but different filenames, such as ObserverSwarm.o in
place of Main.o below):

/usr/bin/ld: warning -L: directory name
(/Users/billn/Public/Swarm/swarm/macosx/build/src/collections) does not exist

/usr/bin/ld: main.o bad magic number (not a Mach-O file)

/usr/bin/ld: warning /usr/local/swarm2.2/lib/libswarm.dylib cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag: i386
(file not loaded)

I'm guessing I have a reference to the wrong directory somewhere in the
architecture, as well as a few other flags that need to be changed to -arch
ppc, but I am not familiar enough with the Mac yet (only have had it a week and
a half) or unix to mess with this stuff without getting lost along the way.

Does anyone have suggestions for fixing those errors? I'm going to try to piece through the -arch i386 errors myself to find those files, but I am unsure about
the rest, since I thought setting SWARMHOME would resolve the other issues.

Thanks,
Brandon


--
Brandon M. Gabler
Research Associate
Department of Anthropology
1009 E South Campus Drive, Building #30A
University of Arizona
Tucson, AZ 85721
Phone: 520-621-8455
Fax: 520-621-2088


Quoting address@hidden:

Send Support mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.swarm.org/mailman/listinfo/support
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Support digest..."


Today's Topics:

   1. Re: Swarm 2.2 on Intel (and PPC) Mac OSX Tiger (Bill Northcott)
   2. Swarm on MacOS X Intel (Bill Northcott)


----------------------------------------------------------------------

Message: 1
Date: Tue, 11 Jul 2006 15:23:09 +1000
From: Bill Northcott <address@hidden>
Subject: [Swarm-Support] Re: Swarm 2.2 on Intel (and PPC) Mac OSX
        Tiger
To: "Brandon M. Gabler" <address@hidden>
Cc: Swarm Support <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

The current Swarm binary for MacOS X is PPC code.  I hope to get a
fat Tiger binary built soon.

Due to the amazing magic of Rosetta, it is possible to get ppc Swarm
binaries to work on an Intel Mac!

First install Swarm as detailed in:
http://www.swarm.org/wiki/Swarm_FAQ:Macintosh_installation
http://www.swarm.org/wiki/Swarm:_MacOS_X_binaries

This has got a bit buried with reorganisations of the Swarm web
site.  I will try to improve the linking between these.

Then you need to make two small changes in the file /usr/local/
swarm2.2/etc/swarm/Makefile.common.  On line 27 you will find the
definition of CFLAGS and on line 34 the definition of OBJCFLAGS.
Just add '-arch ppc'   (without the quotes) to both lines.

You can then build and run Objective-C Swarm code as described in
other documentation.  I have not tried Java, but I will be very
surprised if it works.

The extra compiler flag causes the compiler to build ppc code.
Without it, the compiler defaults to i386 code which will fail at
link time because there is no i386 code in the current Swarm
binaries.  However, a ppc binary, once built, runs happily due to the
magic of Rosetta.

Bill Northcott


On 11/07/2006, at 2:25 AM, Brandon M. Gabler wrote:
I am on the Swarm support list, and saw your thread about this
subject from May.
I recently purchased a new macbook pro with the intel chip, and
want to get
Swarm running.

I am new to Mac, new to unix code, and have only used swarm 2.2 in
windows (via
cygwin), and am looking for step by step instruction for getting it
running on
my mac. I have downloaded the packages, installed them, but lack the
directories that supposedly should exist. I'm am confused by this.
Is there any
way you can help out?


------------------------------

Message: 2
Date: Tue, 11 Jul 2006 15:26:37 +1000
From: Bill Northcott <address@hidden>
Subject: [Swarm-Support] Swarm on MacOS X Intel
To: Swarm Support <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

A quick and dirty hack is now available which will allow the current
PPC Swarm binaries to be used on an Intel Mac.

See: http://www.swarm.org/wiki/Swarm_FAQ:Macintosh_installation

Hopefully I can find the time to build a proper universal binary soon.

Enjoy
Bill Northcott


------------------------------

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


End of Support Digest, Vol 25, Issue 6
**************************************





reply via email to

[Prev in Thread] Current Thread [Next in Thread]