[Trilinos-Users] NOX example fails to build
Slaven Peles
peles at cox.net
Thu Nov 26 13:08:52 MST 2009
Happy Thanksgiving everyone!
Roger:
Thanks for the help. Adding EpetraExtra did the trick. I managed to build NOX
and dependencies necessary compile and run NOX examples.
There is still a minor glitch, though. When I execute
make install
files
Didasko_config.h
Didasko_ConfigDefs.h
are not copied to the install location
<TRILINOS_INSTALL_DIR>/include
If I then try to build NOX examples on my own [1], the build fails because
compiler cannot find these two files. The quick fix is to manually
copy 'Didasko_config.h' from
<TRILINOS_BUILD_DIR>/packages/didasko/src/
and 'Didsko_ConfigDefs.h' from
<TRILINOS_SRC_DIR>/packages/didasko/src
to the proper install location.
This may be a bug in Didasko cmake scripts, so I thought I should mention it
here.
Cheers,
Slaven
[1] Building examples "on my own" means copying e.g. ex1.cpp to an arbitrary
location and compiling it there using Makefile.export.NOX.
On Wednesday 25 November 2009 12:08:58 pm you wrote:
> Hi Slaven,
>
> The example you are building requires epetraext. If you enable that
> library by adding the flag
>
> -D NOX_ENABLE_EpetraExt:BOOL=ON \
>
> to the build file attached to your email, the problem should be
> resolved. It seems a number of recent commits have injected
> dependencies on epetraext that were not safeguarded with ifdefs. I
> think the best way to remedy this is to add epetraext to the required
> libraries for the nox-epetra support group to be built. I will make
> this change in the next release pending a discussion with the nox
> development team.
>
> Roger
>
> Slaven Peles wrote:
> > Hi,
> >
> > I'm trying to build NOX together with its Didasko examples. The
> > Brusselator model fails to compile, and I am not sure how to fix this or
> > work around it. I'd appreciate any help. Below is the error message I
> > get. I also attach cmake configure script to this message.
> >
> > By the way, is there a way to determine dependencies for examples in
> > Didasko? I found that setting option
> > -D Didasko_ENABLE_<package>:BOOL=ON
> > is usually not sufficient to build all the examples for the <package>,
> > since some of them depend on a few other packages, as well. So far trial
> > and error approach worked well for me, but I wonder if there is a smarter
> > way to get all dependencies right.
> >
> > Thanks,
> > Slaven
> >
> >
> > (...)
> > [ 92%] Building CXX object
> > packages/nox/examples/epetra/LOCA_Brusselator_xyzt/CMakeFiles/NOX_LOCA_Br
> >usselator_XYZT_Example.dir/Example.C.o
> > /home/peles/src/trilinos/trilinos-10.0.2-Source/packages/nox/examples/epe
> >tra/LOCA_Brusselator_xyzt/Example.C: In function ‘int main(int, char**)’:
> > /home/peles/src/trilinos/trilinos-10.0.2-Source/packages/nox/examples/epe
> >tra/LOCA_Brusselator_xyzt/Example.C:518: error: ‘class Brusselator’ has no
> > member named ‘reset’
> > make[2]: ***
> > [packages/nox/examples/epetra/LOCA_Brusselator_xyzt/CMakeFiles/NOX_LOCA_B
> >russelator_XYZT_Example.dir/Example.C.o] Error 1
> > make[1]: ***
> > [packages/nox/examples/epetra/LOCA_Brusselator_xyzt/CMakeFiles/NOX_LOCA_B
> >russelator_XYZT_Example.dir/all] Error 2
> > make: *** [all] Error 2
More information about the Trilinos-Users
mailing list