build hermes2d 2.0 on Ubuntu 13.04

32 views
Skip to first unread message

Tomas Svaton

unread,
Jun 15, 2013, 4:02:03 PM6/15/13
to herm...@googlegroups.com
Hello everyone,

I tried to compile new hermes 2.0 under ubuntu 13.04 like is described in the hermes manual (cmake version > 2.6 and matplotlib 1.2.1). Cloned from github created CMake.vars and as such performed:
cmake .
make (breaks on 94%)

Could someone give me hint, where could be the problem, please?

Thank you very much,

Tomas.


Output from "cmake .":

tomas@tomas-VirtualBox:~/workspace/hermes$ cmake .
-- Hermes will by default be using 4 threads for calculation.
Hermes2D: Generating classes for XML mesh parsing according to your version of XSD.

Configuration results
---------------------
Build with UMFPACK: YES
Build with PETSC: NO
Build with MUMPS: NO
Build with SUPERLU: NO
Build with TRILINOS: NO
Build with MPI: NO
Build with OPENMP: YES
Build with EXODUSII: NO
---------------------
Hermes common library:
Build Debug version: YES
Build Release version: YES
Build with tests: 
Build Hermes2D: YES
Build Hermes2D Debug version: YES
Build Hermes2D Release version: YES
---------------------
Build Hermes2D with test examples: YES
---------------------
Build Hermes2D with GLUT: YES
Build Hermes2D with VIEWER_GUI: 

-- Configuring done
-- Generating done
-- Build files have been written to: /home/tomas/workspace/hermes
tomas@tomas-VirtualBox:~/workspace/hermes$ 


output from make:
...
Linking CXX shared library libhermes2d-debug.so
[ 90%] Built target hermes2d-debug
Scanning dependencies of target 01-poisson
[ 90%] Building CXX object hermes2d/test_examples/01-poisson/CMakeFiles/01-poisson.dir/main.cpp.o
[ 90%] Building CXX object hermes2d/test_examples/01-poisson/CMakeFiles/01-poisson.dir/definitions.cpp.o
Linking CXX executable 01-poisson
[ 90%] Built target 01-poisson
Scanning dependencies of target 02-poisson-newton
[ 91%] Building CXX object hermes2d/test_examples/02-poisson-newton/CMakeFiles/02-poisson-newton.dir/main.cpp.o
[ 91%] Building CXX object hermes2d/test_examples/02-poisson-newton/CMakeFiles/02-poisson-newton.dir/definitions.cpp.o
Linking CXX executable 02-poisson-newton
[ 91%] Built target 02-poisson-newton
Scanning dependencies of target 03-navier-stokes
[ 92%] Building CXX object hermes2d/test_examples/03-navier-stokes/CMakeFiles/03-navier-stokes.dir/main.cpp.o
Linking CXX executable 03-navier-stokes
[ 92%] Built target 03-navier-stokes
Scanning dependencies of target 04-complex-adapt
[ 92%] Building CXX object hermes2d/test_examples/04-complex-adapt/CMakeFiles/04-complex-adapt.dir/main.cpp.o
[ 92%] Building CXX object hermes2d/test_examples/04-complex-adapt/CMakeFiles/04-complex-adapt.dir/definitions.cpp.o
Linking CXX executable 04-complex-adapt
[ 92%] Built target 04-complex-adapt
Scanning dependencies of target 05-hcurl-adapt
[ 93%] Building CXX object hermes2d/test_examples/05-hcurl-adapt/CMakeFiles/05-hcurl-adapt.dir/main.cpp.o
Linking CXX executable 05-hcurl-adapt
[ 93%] Built target 05-hcurl-adapt
Scanning dependencies of target 06-system-adapt
[ 93%] Building CXX object hermes2d/test_examples/06-system-adapt/CMakeFiles/06-system-adapt.dir/main.cpp.o
/home/tomas/workspace/hermes/hermes2d/test_examples/06-system-adapt/main.cpp: In function ‘int main(int, char**)’:
/home/tomas/workspace/hermes/hermes2d/test_examples/06-system-adapt/main.cpp:222:102: error: no matching function for call to ‘Hermes::Hermes2D::Adapt<double>::Adapt(Hermes::vector<Hermes::Hermes2D::Space<double>*>)’
/home/tomas/workspace/hermes/hermes2d/test_examples/06-system-adapt/main.cpp:222:102: note: candidates are:
In file included from /home/tomas/workspace/hermes/hermes2d/include/discrete_problem.h:20:0,
                 from /home/tomas/workspace/hermes/hermes2d/include/newton_solver.h:26,
                 from /home/tomas/workspace/hermes/hermes2d/include/hermes2d.h:23,
                 from /home/tomas/workspace/hermes/hermes2d/test_examples/06-system-adapt/definitions.h:1,
                 from /home/tomas/workspace/hermes/hermes2d/test_examples/06-system-adapt/main.cpp:3:
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:63:7: note: Hermes::Hermes2D::Adapt<T>::Adapt(Hermes::Hermes2D::Space<Scalar>*, Hermes::Hermes2D::ProjNormType) [with Scalar = double]
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:63:7: note:   no known conversion for argument 1 from ‘Hermes::vector<Hermes::Hermes2D::Space<double>*>’ to ‘Hermes::Hermes2D::Space<double>*’
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:62:7: note: Hermes::Hermes2D::Adapt<T>::Adapt(Hermes::vector<Hermes::Hermes2D::Space<Scalar>*>&, Hermes::vector<Hermes::Hermes2D::ProjNormType>) [with Scalar = double]
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:62:7: note:   no known conversion for argument 1 from ‘Hermes::vector<Hermes::Hermes2D::Space<double>*>’ to ‘Hermes::vector<Hermes::Hermes2D::Space<double>*>&’
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:57:22: note: Hermes::Hermes2D::Adapt<double>::Adapt(const Hermes::Hermes2D::Adapt<double>&)
/home/tomas/workspace/hermes/hermes2d/include/adapt/adapt.h:57:22: note:   no known conversion for argument 1 from ‘Hermes::vector<Hermes::Hermes2D::Space<double>*>’ to ‘const Hermes::Hermes2D::Adapt<double>&’
make[2]: *** [hermes2d/test_examples/06-system-adapt/CMakeFiles/06-system-adapt.dir/main.cpp.o] Error 1
make[1]: *** [hermes2d/test_examples/06-system-adapt/CMakeFiles/06-system-adapt.dir/all] Error 2
make: *** [all] Error 2
tomas@tomas-VirtualBox:~/workspace/hermes$ 

Lukas Korous

unread,
Jun 16, 2013, 4:39:51 AM6/16/13
to herm...@googlegroups.com

Hi,

That is apparently a mistake on our side, I will fix it ASAP and will let you know.

Lukas

--
You received this message because you are subscribed to the Google Groups "hermes2d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes2d+u...@googlegroups.com.
To post to this group, send email to herm...@googlegroups.com.
Visit this group at http://groups.google.com/group/hermes2d.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Lukas Korous

unread,
Jun 16, 2013, 7:27:05 AM6/16/13
to herm...@googlegroups.com
Hello,

I fixed this, it was a minor problem probably with other gcc versions too.

Could you please check it is okay now?

Thank you,
Lukas Korous
> --
> You received this message because you are subscribed to the Google Groups
> "hermes2d" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hermes2d+u...@googlegroups.com.
> To post to this group, send email to herm...@googlegroups.com.
> Visit this group at http://groups.google.com/group/hermes2d.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Lukáš Korous

Tomas Svaton

unread,
Jun 17, 2013, 11:00:16 AM6/17/13
to hermes2d
Hello Lukas,

Thank you very much. It works well now.

Tomas.



--
You received this message because you are subscribed to a topic in the Google Groups "hermes2d" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hermes2d/i_vbfD1BkuQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hermes2d+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages