Compilation error in example applications

17 views
Skip to first unread message

mm

unread,
Oct 5, 2012, 3:00:46 AM10/5/12
to herm...@googlegroups.com
Hi,

Trying to compile all tutorial and example applications in the latest
git checkout of hermes, hermes-tutorial, and hermes-examples I
encountered the following compilation error in hermes-examples:

System configuration: Linux Ubuntu 10.04, gcc 4.4.3

[ 11%] Building CXX object
2d-advanced/euler/forward-step/CMakeFiles/forward-step.dir/main.cpp.o
In file included from
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../numerical_flux.h:3,

                 from
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../forms_explicit.cpp:4,
                 from
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/main.cpp:79:
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:
In constructor
‘MachNumberFilter::MachNumberFilter(Hermes::vector<Hermes::Hermes2D::MeshFunction<double>*>,
double)’:
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:185:
error: class ‘MachNumberFilter’ does not have any field
named ‘SimpleFilter’
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:185:
error: expected ‘(’ before ‘<’ token
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:185:
error: expected ‘{’ before ‘<’ token
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:
In constructor
‘PressureFilter::PressureFilter(Hermes::vector<Hermes::Hermes2D::MeshFunction<double>*>,
double)’:
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:210:
error: class ‘PressureFilter’ does not have any field named
‘SimpleFilter’
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:210:
error: expected ‘(’ before ‘<’ token
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:210:
error: expected ‘{’ before ‘<’ token
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:
In constructor
‘EntropyFilter::EntropyFilter(Hermes::vector<Hermes::Hermes2D::MeshFunction<double>*>,
double, double, double)’:
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:234:
error: class ‘EntropyFilter’ does not have any field named
‘SimpleFilter’
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:234:
error: expected ‘(’ before ‘<’ token
/home/doncamillo2/mmoelle1/Hermes/hermes-examples/2d-advanced/euler/forward-step/../euler_util.h:234:
error: expected ‘{’ before ‘<’ token
make[2]: ***
[2d-advanced/euler/forward-step/CMakeFiles/forward-step.dir/main.cpp.o]
Error 1
make[1]: ***
[2d-advanced/euler/forward-step/CMakeFiles/forward-step.dir/all] Error 2
make: *** [all] Error 2


Many errors of this type follow if I try to compile other Euler examples
individually. Any help is appreciated.


Best regards,

Matthias

Lukas Korous

unread,
Oct 5, 2012, 3:34:27 PM10/5/12
to herm...@googlegroups.com
Hello,

Euler examples are probably ones that are undergoing most development.
Could you please tell me what branches are you using (master or
devel)?

Thank you very much,
Regards,
Lukas
> --
> You received this message because you are subscribed to the Google Groups
> "hermes2d" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hermes2d/-/0BOzet6Uq-QJ.
> To post to this group, send email to herm...@googlegroups.com.
> To unsubscribe from this group, send email to
> hermes2d+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hermes2d?hl=en.



--
Lukas Korous

mm

unread,
Oct 8, 2012, 3:18:45 AM10/8/12
to herm...@googlegroups.com
Hi Lukas,

I am working with the master branch both for the examples and the core part of hermes.

Thank you very much for your help,
Matthias

Lukas Korous

unread,
Oct 8, 2012, 4:19:18 AM10/8/12
to herm...@googlegroups.com
Hello,

I just checked and the compilation works just fine, although I have
gcc 4.6.3, but that should not be an issue. Anyways, could you try?

The errors you sent look like you may have some inconsistency in the
installation.

Do you install to system directories? I.e., in the case of the library
(core), do you just type "sudo make install"?

If you do, there is no settings necessary in the hermes-examples
repository and you can then just type "cmake ." followed by "make",
and it should compile without any problems.

Thank you for trying,

Regards,
Lukas
> https://groups.google.com/d/msg/hermes2d/-/iow2Nlw8JU4J.
Reply all
Reply to author
Forward
0 new messages