[MOAB-dev] linking against MOAB

Jason Kraftcheck kraftche at cae.wisc.edu
Sat Feb 6 08:43:40 CST 2010


I missed where you were using the MOAB_LIBS_LINK library list from 
moab.make in your makefile (I was reading the email on my phone.)  The 
problem was a MOAB bug (wrong library link order in moab.make, which I 
thought I had fixed already but apparently not.)  It is now fixed.

- jason



On 02/05/2010 10:21 PM, iulian at mcs.anl.gov wrote:
> Hi Jason,
>
> Thank you for your help.
> So what is wrong, my configure command on MOAB?
> I have used this:
>    $ ./configure --prefix=/homes/iulian/lib/MOAB --with-cgm=/homes/iulian/lib/CGM --with-mpi=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin --with-netcdf=/homes/sharp/3rdparty/netcdf/netcdf-4.0.1/parallel/gcc --with-hdf5=/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/parallel/gcc --with-zlib=/homes/sharp/3rdparty/zlib/zlib-1.2.3/gcc --with-szip=/homes/sharp/3rdparty/szip/szip-2.1/gcc --enable-debug --disable-production CC=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpicc CXX=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpicxx F77=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpif77 FC=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpif90 F90=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpif90 --no-create --no-recursion
>
> Or, if that is easier, can I link dynamically? What would be the command in the makefile? I do not need anything from netcdf.
>
> Or, maybe I should understand autotools.
> I tried to create a Makefile.am in my folder, and I added to the configure.ac in /meshkit a SUBDIR (you sent once a message to Bob about modifying AC_CONFIG_FILES in the parent folder and also SUBDIRS in the parent Makefile.am). It seems that my Makefile.am is wrong.
>
>
> Is there an example for a Makefile.am for linking against MOAB? Can you recommend a good manual on autotools?
>
> Have a good weekend!
> Iulian
>
>
>


More information about the moab-dev mailing list