Page 1 of 1

Compilation from sources on a Debian/testing

Posted: 23 May 2022, 11:15
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

Re: Compilation from sources on a Debian/testing

Posted: 23 May 2022, 12:19
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

Re: Compilation from sources on a Debian/testing

Posted: 23 May 2022, 13:13
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...

Re: Compilation from sources on a Debian/testing

Posted: 23 May 2022, 15:23
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

Re: Compilation from sources on a Debian/testing

Posted: 24 Aug 2022, 03:39
by Jeremy123
Amazing data! I can't wait and use this. click for more