Compilation from sources on a Debian/testing

Discussion about building and installing Elmer
Post Reply
JBERT
Posts: 3
Joined: 23 May 2022, 11:10
Antispam: Yes

Compilation from sources on a Debian/testing

Post by JBERT »

Hello,

I'm trying to build Elmer from git sources with following options on a Debian/Testing workstation :

cmake .. -DWITH_OpenMP:BOOLEAN=TRUE -DWITH_MPI:BOOLEAN=TRUE -DWITH_ELMERGUI:BOOLEAN=TRUE -DWITH_QT5=TRUE -Wno-dev

cmake creates all Makefile's without error but build process aborts with error :

[ 56%] Linking Fortran executable ElmerSolver_mpi
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&) »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkDataSetWriter::New() »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkUnstructuredGrid::New() »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkPDataSetWriter::SetNumberOfPieces(int) »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkDebugLeaksManager::vtkDebugLeaksManager() »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkTetra::New() »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « vtkXMLUnstructuredGridWriter::New() »
/usr/bin/ld : libelmersolver.so : référence indéfinie vers « SCOTCH_stratExit »

Of course, I have scotch and vtk libraries on this workstation. I suppose ld is called without -lSCOTCH -lvtk, thus I have tried to add this libraries in elmerfem/fem/src/CMakeLists.txt without any success.

Is it possible to build elmer with MPI support ?

Best regards,

JB
raback
Site Admin
Posts: 4345
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Compilation from sources on a Debian/testing

Post by raback »

Hi

To my understanding VTK should only be needed by the optional internal visualization tool of ElmerGUI. So you could try with

Code: Select all

 -DWITH_VTK=FALSE 
or even

Code: Select all

 -DWITH_ELMERGUI=FALSE 
if you do not need to GUI, or want to narrow down the problems.

Yes, MPI is supported and in many fields very much used.

-Peter
JBERT
Posts: 3
Joined: 23 May 2022, 11:10
Antispam: Yes

Re: Compilation from sources on a Debian/testing

Post by JBERT »

I have tried with :

cmake .. -DWITH_OpenMP:BOOLEAN=TRUE -DWITH_MPI:BOOLEAN=TRUE -DWITH_ELMERGUI:BOOLEAN=TRUE -DWITH_QT5=TRUE -DWITH_VTK=FALSE -Wno-dev
make clean
make

Same result...
JBERT
Posts: 3
Joined: 23 May 2022, 11:10
Antispam: Yes

Re: Compilation from sources on a Debian/testing

Post by JBERT »

I have added in build/fem/src/CMakeFiles/[Solver_TGT|ViewFactors|Radiators].dir/link.txt missing libraries and now, elmer is built without error.

I don't know cmake and I don't know how to fix this build issue.

Best regards,

JB
Post Reply