Currently configure creates the files cpointer_mod.f90 and ctof_io.h. These file take into account the endian-ness of your machine and provide the C <→ Fortran interface for passing data.

To skip making the C <→ F90 interface add the option

--no-interface

when invoking configure. You will need to manually create or copy cpointer_mod.f90 and ctof_io.h in the src directory before running configure.

Configure is run by typing:

./configure

Configure has a couple of options one can pass it:

—helpExtended help
—interfaceBuild appropriate cpointer_mod and ctof_io.h (default)
—no-interfaceSkip building the C/F90 interface. It’s still required though. But you may copy it from an existing directory
—c32Use 32-bit version of cpointer_mod and ctof_io.h
—c64Use 64-bit version of cpointer_mod and ctof_io.h

Cross-compiling or C/F90 interface problems

If you are cross-compiling or mci doesn’t work you will need to manually run the “mci” program to generate the 2 files mentioned above. You can do this by first changing to the tools/config directory and typing

cc -o mci make_c_interface.c

on the compile machine. Replace “cc” with your C compiler and any other misc options you need.

Next run the executable “mci” on the destination machine. The machine you are going to be running socorro on. This will create the 2 files cpointer_mod.f90 and ctof_io.h. These files should then be copied to the socorro source directory “src”.

After you’ve done this re-run configure skipping the interface part:

./configure —no-interface

This will create the appropriate file links in the different directories.

If this works fine you can move on to the next step.

« Create the local configuration file make.conf | TOC | Building Socorro »