Re: "Standard Platform" ?
"Frédéric BOIS" <[email protected]> Wed, 27 May 2009 19:57:45 +0200
| Newsgroups | gmane.comp.gnu.mcsim |
|---|---|
| Message-ID | <[email protected]> |
The development platform is GNU/Linux. I would assume that the Unix layer of the Mac would provide the necessary tools.=20 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=20 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=20 gcc -O -I /usr/local/include -I where_you_put_mcsim/mcsim/sim model.c=20 where_you_put_the library/libmcsim.so -lgsl -lgslcblas -lm=20 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" <[email protected]> 27/05/2009 17:36 >>> I=E2=80=99ve 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=E2=80=9Cstandard=E2=80=9Dplatform that MCSim development is b= eing done on ? I=E2=80=99m 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.=20 I=E2=80=99ve been unsuccessful at finding good help in build MCSim for Ma= c 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=20 711 HPW/RHPB=20 2729 R St, Bldg 837=20 Wright-Patterson AFB, OH 45433-5707=20 Phone: (937) 255-4332 E-Mail: [email protected]