Topic: Installation error related to tinyxml

Dear Borek,

Please review the message below, occurred when I was making the trunk 1554 downloaded from web site. Thank you very much for your help.

Xuejian


/work/01900/liuxueji/trunk/src/tm/cemhyd/cemhydmat.h(44): catastrophic error: could not open source file "tinyxml.h"
  #include "tinyxml.h"

Re: Installation error related to tinyxml

Dear Xuejian,
Some time ago, we switched to GIT for version control. The last SVN commit is nearly 3 months old, but more importantly, we changed to CMake build scripts, so anything related to include paths and headers have changed.

You can clone and build OOFEM by doing

git clone http://www.oofem.org/git/oofem.git
mkdir oofem_build
cd oofem_build
cmake -DUSE_IML  ../oofem/

The -DUSE_IML option activates IML support, if you insist on using it (but IML is very slow, i highly recommend using a direct solver in PETSc)

Re: Installation error related to tinyxml

Dear Mikael,

Thank you very much. For some reason, I cannot enable VTK by specifying the location of it. Could you please help? Thanks,

Xuejian

Re: Installation error related to tinyxml

I think my real problem is this one. Thanks,

Xuejian

login4% make
Scanning dependencies of target sm
[  0%] Building CXX object src/sm/CMakeFiles/sm.dir/lspace.C.o
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              is.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              vec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel                                              .h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymod                                              el.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:217: error: `__i                                              nt64' does not name a type
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              sys.h:1279,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              is.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              vec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel                                              .h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymod                                              el.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:277:18: hdf5.                                              h: No such file or directory
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              sys.h:1279,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              is.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petsc                                              vec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel                                              .h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymod                                              el.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: `                                              hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: I                                              SO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `                                              hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `                                              hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: I                                              SO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: I                                              SO C++ forbids declaration of `parameter' with no type
make[2]: *** [src/sm/CMakeFiles/sm.dir/lspace.C.o] Error 1
make[1]: *** [src/sm/CMakeFiles/sm.dir/all] Error 2
make: *** [all] Error 2

Re: Installation error related to tinyxml

Maybe I should report this error as well. Thanks,

Xuejian

login3% cmake -DUSE_IML=ON -DUSE_PARALLEL=ON -DUSE_PETSC=ON -DMY_PETSC_DIR=/opt/apps/pgi7_2/mvapich1_1_0_1/petsc/3.2 -DMY_PETSC_ARCH=barcelona-cxx -DMPI_DIR=/opt/apps/pgi8_0/mvapich/1.0.1 ../oofem
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PETSC_PGI_LIB (ADVANCED)
    linked by target "liboofem_static" in directory /work/01900/liuxueji/oofem

-- Configuring incomplete, errors occurred!

Re: Installation error related to tinyxml

Dear Xuejian,

OOFEM is already using petsc 3.3.
Unfortunately, PETSc makes changes that break backwards compability even with minor versions, so its to messy to support older version of petsc.
You will have to compile petsc from scratch. Remember to compile petsc with at least one external direct solver. In my experience, Spooles is quite good;

wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.3-p5.tar.gz
tar xzf petsc-lite-3.3-p5.tar.gz
cd petsc-3.3-p5
./configure --download-spooles=true --with-debugging=false

Other than that, I do not see anything wrong with your cmake command. Something must have gone wrong with the warnings you pasted, the middle segment is lost so its hard to tell if there is anything else that is wrong.

Re: Installation error related to tinyxml

Dear Mikael,

Thank you very much for your help. It seems there is something wrong with ContextMode. Could you please look at the output below? Thanks,

Xuejian

login4% make
Scanning dependencies of target sm
[  0%] Building CXX object src/sm/CMakeFiles/sm.dir/lspace.C.o
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:161: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:161: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:172: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:172: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:39,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:464: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:464: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:465: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:465: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:380: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:380: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:381: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:381: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:43,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:310: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:310: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:315: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:315: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:45,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:212: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:212: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:223: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:223: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/unknownnumberingscheme.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/element.h:56,
                 from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:412: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:412: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:414: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:414: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/element.h:987: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/element.h:987: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/element.h:988: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/element.h:988: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:407: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:407: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:423: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:423: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/fieldmanager.h:38,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:42,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/field.h:125: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/field.h:125: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/field.h:134: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/field.h:134: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:45,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:57,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:195: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:195: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:200: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:200: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:57,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:136: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:136: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:145: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:145: error: ISO C++ forbids declaration of `mode' with no type
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:217: error: `__int64' does not name a type
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:1279,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:277:18: hdf5.h: No such file or directory
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:1279,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
                 from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: ISO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: ISO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: ISO C++ forbids declaration of `parameter' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/petscordering.h:42,
                 from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:44,
                 from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
                 from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:386: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:386: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:387: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:387: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
                 from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
                 from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
                 from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:568: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:568: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:586: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:586: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/sm/lspace.h:45,
                 from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:141: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:141: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:142: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:142: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/sm/lspace.C:36:
/work/01900/liuxueji/oofem/src/oofemlib/node.h:172: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/node.h:172: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/node.h:173: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/node.h:173: error: ISO C++ forbids declaration of `mode' with no type
make[2]: *** [src/sm/CMakeFiles/sm.dir/lspace.C.o] Error 1
make[1]: *** [src/sm/CMakeFiles/sm.dir/all] Error 2
make: *** [all] Error 2

Re: Installation error related to tinyxml

Is it because I use cmake 2.8.7? Thanks,

Xuejian

Re: Installation error related to tinyxml

Cmake 2.8.7 should work fine.

I'm surprised by these error messages.
I can't think of any reason why this happens unless you have modified the sources yourself, and accidentaly removed something related to contextmode.h.
Do you have any local changes? ( you can check with the command "git status" to be sure what has been modified )

Can you make sure that
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h
contains this line

#include "contextmode.h"

and that contextmode.h contains

typedef long ContextMode;

(in fact, you can paste the whole file)

Re: Installation error related to tinyxml

I should also mention, that it could help to see what cmake is trying to do during compilation with the command
"make VERBOSE=1"

which will print the command with the compiler and all the flags used.

Re: Installation error related to tinyxml

Dear Mikael,

Thanks a lot for your help. I have redone everything from the beginning and succeeded finally. The previous error was gone as well. The only problem is cmake can not find VTK even after I specified VTK_DIR. I can tolerate it as this time, but let me know if you can give me some hints. Thanks again,

Xuejian

Re: Installation error related to tinyxml

Dear Xuejian

There is no such variable "VTK_DIR".
You should be able to use the general "CMAKE_MODULE_PATH" to specify search paths used by CMake.
If you use the "ccmake" command, you can see the available variables.

Re: Installation error related to tinyxml

I've added VTK_DIR and LAPACK_DIR to the 2.2 release branch ( git checkout rel-2.2 ) They will also be merged into master at the end of the month.