compilation hermes-tutorial with hermes 2.0 on ubuntu 13.04 32bit

已查看 62 次
跳至第一个未读帖子

Tomas Svaton

未读,
2013年6月27日 19:16:382013/6/27
收件人 herm...@googlegroups.com
Hello everybody,

I am trying to compile the hermes-tutorial. My CMake.vars is (I removed trilinos as I did not use it during hermes compilation):
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ more CMake.vars
# This is a sample CMake.vars file for Hermes.

# Some search paths.
if (WIN32)
  set(GLUT_ROOT "d:/hpfem/hermes/dependencies/glut")
  set(GLEW_ROOT "d:/hpfem/hermes/dependencies/glew")
  set(PTHREAD_ROOT "d:/hpfem/hermes/dependencies/pthread")
  set(UMFPACK_ROOT "d:/hpfem/hermes/dependencies/umfpack")
  set(CLAPACK_ROOT "d:/hpfem/hermes/dependencies/clapack")
  # Target (installation) path.
  set(TARGET_ROOT "d:/hpfem/hermes/dependencies")
else()
  #set(GLUT_ROOT "/usr/lib/")
  #set(GLEW_ROOT "/usr/lib/")
  #set(PTHREAD_ROOT "/usr/lib/")
  #set(UMFPACK_ROOT "/usr/lib/")
  #set(CLAPACK_ROOT "/usr/lib/")
endif()

# Python.
set(WITH_PYTHON NO)

# Trilinos
if (WIN32) 
  set(TRILINOS_ROOT "d:/hpfem/hermes/dependencies/trilinos")
else() 
  set(TRILINOS_ROOT "~/solvers/trilinos")
endif()
SET(WITH_TRILINOS NO)

# Experimental
# Turn on Zoltan AND MPI
SET(WITH_ZOLTAN YES)
SET(WITH_MPI YES)
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$


Then I followed with
cmake .
make
and the compilation breaks on 87%

Could someone give me the hint what could be wrong? 

Thanks in advance.

Tomas.

The terminal output:
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tomas/workspace/hermes-tutorial
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$ make
[  1%] Building CXX object A-linear/01-mesh/CMakeFiles/A-01-mesh.dir/main.cpp.o
Linking CXX executable A-01-mesh
[  1%] Built target A-01-mesh
[  3%] Building CXX object A-linear/02-space/CMakeFiles/A-02-space.dir/main.cpp.o
Linking CXX executable A-02-space
[  3%] Built target A-02-space
[  5%] Building CXX object A-linear/03-poisson/CMakeFiles/A-03-poisson.dir/definitions.cpp.o
[  7%] Building CXX object A-linear/03-poisson/CMakeFiles/A-03-poisson.dir/main.cpp.o
Linking CXX executable A-03-poisson
[  7%] Built target A-03-poisson
[  9%] Building CXX object A-linear/04-bc-dirichlet/CMakeFiles/A-04-bc-dirichlet.dir/definitions.cpp.o
[ 11%] Building CXX object A-linear/04-bc-dirichlet/CMakeFiles/A-04-bc-dirichlet.dir/main.cpp.o
Linking CXX executable A-04-bc-dirichlet
...
[ 83%] Building CXX object D-adaptivity/10-transient-space-and-time/CMakeFiles/D-10-transient-space-and-time.dir/main.cpp.o
[ 84%] Building CXX object D-adaptivity/10-transient-space-and-time/CMakeFiles/D-10-transient-space-and-time.dir/definitions.cpp.o
Linking CXX executable D-10-transient-space-and-time
[ 84%] Built target D-10-transient-space-and-time
[ 86%] Building CXX object E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/main.cpp.o
In file included from /home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/main.cpp:44:0:
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp: In member function ‘void KrivodonovaDiscontinuityDetector::calculate_jumps(Hermes::Hermes2D::Element*, int, double*)’:
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:187:66: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:187:115: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:188:72: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:188:127: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:189:72: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:189:127: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:190:65: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_central’
/home/tomas/workspace/hermes-tutorial/E-fvm-and-dg/01-linear-advection-dg/euler_util.cpp:190:113: error: ‘class Hermes::Hermes2D::DiscontinuousFunc<double>’ has no member named ‘get_val_neighbor’
make[2]: *** [E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/main.cpp.o] Error 1
make[1]: *** [E-fvm-and-dg/01-linear-advection-dg/CMakeFiles/E-01-linear-advection-dg.dir/all] Error 2
make: *** [all] Error 2
tomas@tomas-VirtualBox:~/workspace/hermes-tutorial$

Lukas Korous

未读,
2013年6月30日 12:42:252013/6/30
收件人 herm...@googlegroups.com
Hello Tomas,

this looks as a problem on our side. Let me fix that and get back to
you tomorrow.

Thanks,
Regards,
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

Lukas Korous

未读,
2013年7月1日 09:17:092013/7/1
收件人 herm...@googlegroups.com
Hi Tomas,

I fixed that in the commit:

https://github.com/hpfem/hermes-tutorial/commit/3736fcc4343bb9286cb5f7050f391e6a2d3bfa41
Fixes of versions (some devel features were in master).

The reason was that some devel features were in master.

Best Regards,
Lukas Korous
--
Lukáš Korous

Tomas Svaton

未读,
2013年7月1日 16:31:392013/7/1
收件人 herm...@googlegroups.com
Hi Lukas,

thank you very much, it works well now.

Just one note. I looked for compile also hermes-examples, but I do not know how to set CMake.vars. "cmake ." fails also for the default configuration. I am sorry maybe for these simple issue, but I am not so experinced.

Could you see for this task please?

Thank you in advance.

Best regards, Tomas.

Lukas Korous

未读,
2013年7月2日 02:56:222013/7/2
收件人 herm...@googlegroups.com
Could you please send me the cmake output (from the console)?

Thanks,
Lukas

Tomas Svaton

未读,
2013年7月2日 09:53:302013/7/2
收件人 herm...@googlegroups.com
Hi Lukas,

This is output (without any CMake.vars) of my cmake .
tomas@tomas-VirtualBox:~/workspace/hermes-examples$ cmake .
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:91 (include):
  include could not find load file:

    /home/tomas/workspace/hermes-examples/cmake/cxx_flag_overrides.cmake
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
tomas@tomas-VirtualBox:~/workspace/hermes-examples$ 


and this with the CMake.vars
tomas@tomas-VirtualBox:~/workspace/hermes-examples$ cmake .
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:91 (include):
  include could not find load file:

    /home/tomas/workspace/hermes-examples/cmake/cxx_flag_overrides.cmake
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
tomas@tomas-VirtualBox:~/workspace/hermes-examples$ 



the content of the CMake.vars is
# Some search paths.
if (WIN32)
  # Root of a directory with dependecies. This line has to be modified. Don't forget to replace all backslashes '\' with slashes '/'.
  SET(DEP_ROOT "d:/hpfem/hermes/dependencies")
else()
  SET(DEP_ROOT "/usr")
endif()

#PTHREAD
SET(PTHREAD_ROOT ${DEP_ROOT})

#HERMES
SET(HERMES_DIRECTORY "${DEP_ROOT}/lib")
SET(HERMES_INCLUDE_PATH "${DEP_ROOT}/include")

# Trilinos
 SET(WITH_TRILINOS NO)
# set(TRILINOS_ROOT ${DEP_ROOT})

# Turn on Zoltan AND MPI
SET(WITH_ZOLTAN YES)
SET(WITH_MPI YES)

Hope this helps.

Thanks.

Tomas.

Lukas Korous

未读,
2013年7月3日 02:56:172013/7/3
收件人 herm...@googlegroups.com
Hi Tomas,

yes, that was another bug from non-uniformly done things in the repositories.

My apologies, it should work now.
Regards,
Lukas

Tomas Svaton

未读,
2013年7月3日 12:03:342013/7/3
收件人 herm...@googlegroups.com
Hi Lukas,

Thank you very much. It works well now.

Best regards, Tomas.
回复全部
回复作者
转发
0 个新帖子