Adding OCC, Trilinos or mumps Elmer wont build

Discussion about building and installing Elmer
Post Reply
Gary R
Posts: 68
Joined: 12 Apr 2012, 07:23
Antispam: Yes
Location: Long Beach CA, USA

Adding OCC, Trilinos or mumps Elmer wont build

Post by Gary R » 27 Feb 2018, 03:59

I am using CMakeGUI on a Kubuntu17.10 system. Kubuntu is a guest on qemu VE and
Debian is host. I managed to get a clean build of Trilinos with ML turned on. When I tried to build Elmer, I ran into trouble. CMake works in all cases but the errors happen while running Make. I can get a clean Elmer build if I just use Contrib, ElmerGUI, OpenMP, Paraview and QWT. If I add OCC (which I really want) I get a TopoDS_Shape.hxx file not found error at ElmerGUI/Application/cad/cadview.h (line 53).
If I try adding Trilinos (which I would kind of like), I get a Epetra_mp.Comm.h missing file errror. If I try to add Mumps I get a Link libng.a failed at Build target ng.

Can anyone tell me how to correct these errors -especially the OCC hit.

Gary R

Gary R
Posts: 68
Joined: 12 Apr 2012, 07:23
Antispam: Yes
Location: Long Beach CA, USA

Re: Adding OCC, Trilinos or mumps Elmer wont build

Post by Gary R » 24 Mar 2018, 01:13

This post has been laying here for almost a month. 108 people have looked at it. Not one person has commented. Do I have insufficient information included? What would I have to add to get an answer?

Please reply

Gary R

KaiMartin
Posts: 34
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Re: Adding OCC, Trilinos or mumps Elmer wont build

Post by KaiMartin » 13 Jul 2018, 05:15

For the OCC build error: install the package liboce-modeling-dev
For the trilinos build error: install the package libtrilinos-epetra-dev

This is how I resolve these kind of errors: I search for the missing file in the debian repositories with the tool apt-file. You may have to install the package apt-file and build the index with "sudo apt-file update". It will look through all the files of all packages in your current set of repositories. Unlike google apt-file searches substrings, too. The option -i will make it ignore case. Example:
$ apt-file find Epetra_mp -i
libtrilinos-epetra-dev: /usr/include/trilinos/Epetra_MpiComm.h
libtrilinos-epetra-dev: /usr/include/trilinos/Epetra_MpiCommData.h
libtrilinos-epetra-dev: /usr/include/trilinos/Epetra_MpiDistributor.h

The Mumps problem would need some more details. Can you give the actual build errors?

Hope, this helps,

---<)kaimartin(>---
---<)kaimartin(>---

Gary R
Posts: 68
Joined: 12 Apr 2012, 07:23
Antispam: Yes
Location: Long Beach CA, USA

Re: Adding OCC, Trilinos or mumps Elmer wont build

Post by Gary R » 29 Dec 2018, 23:38

Trying a new build with up to date Trilinos and am getting Elmer build errors:
Checking whether /usr/bin/f95 supports OpenMP 4.0 -- no
CMake Warning at /usr/local/lib/cmake/Trilinos/TrilinosConfig.cmake:158 (MESSAGE):
Component "Pike" NOT found.
Call Stack (most recent call first):
CMakeLists.txt:191 (FIND_PACKAGE)


CMake Error at /usr/local/lib/cmake/Trilinos/TrilinosConfig.cmake:221 (include):
include could not find load file:

/usr/local/lib/cmake/Trilinos/../Pike/PikeConfig.cmake
Call Stack (most recent call first):
CMakeLists.txt:191 (FIND_PACKAGE)
I am using:
Cmake-GUI 3.13.2
The latest Trilinos build
The latest Elmer development build
Debian Linux Stretch
AMD_64 4 core processor - 2.6GHz clock

Cmake set with:
ELMERGUI = ON
MPI = ON
OPENMP = ON
PARAVIEW = ON
TRILINOS = ON

As long as Trilinos is off the program compiles fine. I have installed the libtrilinos-pike-dev and libtrilinos-pike12 libraries. Why am I going through this again? I had a catastrophic disk failure and no backup. Dumb!!!

Any help will be sincerely appreciated.

Gary R.

Post Reply