help-mcsim
[Top][All Lists]
Advanced

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

Re: [Help-mcsim] "Standard Platform" ?


From: Frédéric BOIS
Subject: Re: [Help-mcsim] "Standard Platform" ?
Date: Wed, 27 May 2009 19:57:45 +0200

The development platform is GNU/Linux. I would assume that the Unix
layer of the Mac would provide the necessary tools. 
By the way, the compilation is quite simple in fact. For mod you
compile everything in the mod directory (just make sure that there is no
model.c file
hanging out there). "gcc *.c " would do

For sim, it's a bit more complicated:
First: create the library, from the c files in the sim directory
(again, no model.c should be there)
gcc -c -O -fPIC *.c 
gcc -c -O -ffloat-store -fPIC modelu.c
gcc -shared -fPIC -o libmcsim.so *.o -lgsl -lgslcblas -lm

Then you would put the library libmcsim.so somewhere accessible and do
mod my_model_here.model 
gcc -O -I /usr/local/include -I where_you_put_mcsim/mcsim/sim model.c 
where_you_put_the library/libmcsim.so -lgsl -lgslcblas -lm 

That should create an executable a.out ready to do simulations with
your model.

Frederic Bois


>>> "Hansell,  Timothy A CTR USAF AFMC 711 HPW/RHPB"
<address@hidden> 27/05/2009 17:36 >>>

I’ve been trying to use MCSim on both windows and Mac OS (Leopard),
and have run in to quirks related to the compilation that prompt the
following question:

What is the“standard”platform that MCSim development is being done
on ? I’m assuming by posing this question that the build scripts and
tools are all designed for a certain Linux or Unix platform and that a
build will run clean on such a platform. 

I’ve been unsuccessful at finding good help in build MCSim for Mac
OS, and am attempting to create a virtual machine running a linux
distro, so that I can at leasthavea reference installationto refer to as
I work through what it takes to build for Mac.
Thanks in advance for any help you can give me.
Tim Hansell
Henry M. Jackson Foundation 
711 HPW/RHPB 
2729 R St, Bldg 837 
Wright-Patterson AFB, OH 45433-5707 
Phone: (937) 255-4332
E-Mail: address@hidden




reply via email to

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