[Dune] creating dune applications outside dune source tree?

Matteo Semplice matteo.semplice at uninsubria.it
Fri Nov 25 13:34:14 CET 2011


Hi.
Is it possible to create a dune project outside of the dune source tree?
Remark 2.1 in dunebuildsystem Howto suggests me a negative answer, but 
this is quite important to me: of course I can do what while I work on 
my pc, but in the long run I will have to compile/run dune applications 
on departmental machines, where sources will not be left on disc...

In particular, I installed dune (with prefix set to my home directory).
If I call duneproject from the base dune source directory (the one with 
dune-common, dune-grid, etc subdirs), everything works fine.
On the other hand, if I go to another location in the filesystem:

1) running
     $duneproject
from the shell (which calls the installed $HOME/bin/duneproject) does 
not find dune modules. It does work if I make the call
     $DUNE_CONTROL_PATH=$HOME/lib/dunecontrol/ duneproject
I can live with this, even if it is a bit odd: after all the duneproject 
directory was put there by "dunecontrol make install" so I would guess 
that $HOME/bin/duneproject should know about it...

2) most importantly, I created a module (depending on dune-common and 
dune-grid), changed to the directory holdin the module and followed 
README instructions calling dunecontrol

$dunecontrol all
--- going to build adap-fv  ---
--- calling all for adap-fv ---
--- calling autogen for adap-fv ---
--> dunedoxynize...
Generating doc/doxygen/Doxyfile.in from
     global style
     and adap-fv config
     ... done
--> libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: You should add the contents of the following files to 
`aclocal.m4':
libtoolize:   `/usr/share/aclocal/libtool.m4'
libtoolize:   `/usr/share/aclocal/ltoptions.m4'
libtoolize:   `/usr/share/aclocal/ltversion.m4'
libtoolize:   `/usr/share/aclocal/ltsugar.m4'
libtoolize:   `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add `LT_INIT' to configure.ac.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros 
in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
--> writing dependencies.m4
     for adap-fv 0.0 m
         requires  dune-common   dune-grid
--> aclocal...
configure.ac:5: error: AC_INIT should be called with package and version 
arguments
/usr/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
configure.ac:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
--- Failed to build adap-fv ---
Terminating dunecontrol due to previous errors!

Any tip is appreciated...

     Matteo

-- 
Matteo Semplice				Dip. di Fisica e Matematica
Phone: 031-2386132			Università dell'Insubria
Fax:   031-2386209			Via Valleggio, 11
					22100 Como





More information about the Dune mailing list