Compilation from sources on a Debian/testing
Posted: 23 May 2022, 11:15
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
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