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
Compilation from sources on a Debian/testing
-
- Site Admin
- Posts: 4832
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Compilation from sources on a Debian/testing
Hi
To my understanding VTK should only be needed by the optional internal visualization tool of ElmerGUI. So you could try with
or even
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
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
Code: Select all
-DWITH_ELMERGUI=FALSE
Yes, MPI is supported and in many fields very much used.
-Peter
Re: Compilation from sources on a Debian/testing
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...
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
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
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
Amazing data! I can't wait and use this. click for more