[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Run mousetrap
From: |
Paul E Johnson |
Subject: |
Re: Run mousetrap |
Date: |
Fri, 06 Dec 2002 15:16:29 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 |
I think we are not communicating with each other. You asked what the
executable is called. Look in Makefile in the Mousetrap directory:
ifeq ($(SWARMHOME),)
SWARMHOME=../swarm-2.1
endif
APPLICATION=mousetrap
APPVERSION=2.1
address@hidden
OBJECTS=main.o Mousetrap.o MousetrapModelSwarm.o
MousetrapObserverSwarm.o MousetrapBatchSwar
m.o
DATAFILES = batch.scm
include $(SWARMHOME)/etc/swarm/Makefile.appl
main.o: main.m MousetrapObserverSwarm.h MousetrapBatchSwarm.h
Mousetrap.o: Mousetrap.m Mousetrap.h
MousetrapModelSwarm.o: MousetrapModelSwarm.m MousetrapModelSwarm.h
MousetrapObserverSwarm.o: MousetrapObserverSwarm.h MousetrapObserverSwarm.m
MousetrapBatchSwarm.o: MousetrapBatchSwarm.h MousetrapBatchSwarm.m
~
Where it says "APPLICATION=mousetrap" that means that, if you ever build
the program, the executable file will be "mousetrap".
Now, this note below indicates you have trouble building Mousetrap. That
is a different story.
Note what the first 2 lines of this Makefile do. If you have SWARMHOME
in your ENVIRONMENT, then this Makefile will use that. If you have none,
it looks for ../swarm-2.1. If that is not where you have swarm, then
change it.
I would suggest you either do
# export SWARMHOME=/usr
# make
# ./mousetrap
or edit the 2nd line of the Makefile so it says
SWARMHOME=/usr
That assumes, of course , that you have Swarm installed in /usr.
Li An wrote:
HI,
None of the files has an x in the mousetrap directory--no executable
files. I ran the command make under the directory mousetrap, and got the
following:
Makefile:10: ../swarm-2.1.1/etc/swarm/Makefile.appl: No such file or
directory
make: *** No rule to make target
`../swarm-2.1.1/etc/swarm/Makefile.appl'. Stop.
I guess it is caused by a SWARMHOME designation? In my java swarm, I
used SWARMHOME=/usr. But the in the Makefile of the obj-c version of
mousetrap, it is SWARMHOME=../swarm-2.1.1 (Originally was swarm-2.1).
Any suggestions or comments? Thanks.
Li
At 01:48 PM 12/6/2002 -0600, you wrote:
Look in the Makefile.
See what the executable is supposed to be named.
OR
Type
ls -la
in the terminal and see which one shows up with an x
Li An wrote:
Hi,
My heatbugs code runs well, but the others do not. What is the
command to run mousetrap and the others, possibly? ./mousetrap? Thanks,
LI
Li An
Ph.D. candidate, Systems Modeling Lab
Department of Fisheries and Wildlife
Michigan State University
East Lansing, MI 48824
Phone (work): 517-353-7981
Fax: 517-432-1699
==================================
Swarm-Support is for discussion of the technical details of the day
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66044-3177 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Re: Swarm on Mac OSX 10.2.2?, (continued)
- Re: Swarm on Mac OSX 10.2.2?, Brad Cox, 2002/12/07
- Re: Swarm on Mac OSX 10.2.2?, Bill Northcott, 2002/12/08
- Newbie swarmapps problems., Brad Cox, 2002/12/08
- Re: Newbie swarmapps problems., Brad Cox, 2002/12/08
- Re: Newbie swarmapps problems., Paul Johnson, 2002/12/08
- Re: Newbie swarmapps problems., Brad Cox, 2002/12/08
- Cohesion/Competitive power models (was Re: Newbie swarmapps problems.), gepr, 2002/12/09
- Re: Swarm on Mac OSX 10.2.2?, Bill Northcott, 2002/12/08
Re: Run mousetrap, Paul E Johnson, 2002/12/06
- Re: Run mousetrap, Li An, 2002/12/06
- Re: Run mousetrap,
Paul E Johnson <=
- Re: Run mousetrap, Li An, 2002/12/06
- Re: Run mousetrap, Paul E Johnson, 2002/12/06
- Java mousetrap, Li An, 2002/12/07
- Re: Java mousetrap, Paul Johnson, 2002/12/07
- Re: Java mousetrap, Li An, 2002/12/07