[Top][All Lists]

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

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

From: Hansell, Timothy A CTR USAF AFMC 711 HPW/RHPB
Subject: RE: [Help-mcsim] "Standard Platform" ?
Date: Wed, 27 May 2009 14:28:52 -0400

Thanks for the help!

I am running Mac OS X Leopard 10.5.

The build scripts as included with 5.3.1 work (with some warnings) to build 
'mod', but the gcc compiler suite that comes with the latest XCode
Does not build shared libraries and in fact ignores the -shared flag, so it is 
impossible build the without error.

I have been investigating what changes need to be made to the build a dynamic 
lib (with the dylib extension) which is the Mac analogy to shared libraries.

What Gnu/linux Distribution is used ? What versions of the GCC compiler suite, 
etc.... ?


-----Original Message-----
From: Frédéric BOIS [mailto:address@hidden 
Sent: Wednesday, May 27, 2009 1:58 PM
To: address@hidden; Hansell, Timothy A CTR USAF AFMC 711 HPW/RHPB
Subject: Re: [Help-mcsim] "Standard Platform" ?

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 *.o -lgsl -lgslcblas -lm

Then you would put the library 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/ -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 
2729 R St, Bldg 837 
Wright-Patterson AFB, OH 45433-5707 
Phone: (937) 255-4332
E-Mail: address@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

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