unfortunately I am having trouble when I try to build “preCICE using CMake”
build]$ cmake -DBUILD_SHARED_LIBS=ON ..
.....-- Validating Prettyprint - success
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
PETSc could not be found. Be sure to set PETSC_DIR and PETSC_ARCH.
(missing: PETSC_INCLUDES PETSC_LIBRARIES PETSC_EXECUTABLE_RUNS) (found
suitable version "3.13.0", minimum required is "3.6")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindPETSc.cmake:345 (find_package_handle_standard_args)
CMakeLists.txt:209 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/guido/precice-2.0.2/build/CMakeFiles/CMakeOutput.log".
See also "/home/guido/precice-2.0.2/build/CMakeFiles/CMakeError.log".
I installed PETSc version “3.13.0” from source ,
PETSC_DIR /home/guido/petsc/petsc
install according PETSc: Documentation: Installation
./configure
make all test
xxx=========================================================================xxx
Configure stage complete. Now build PETSc libraries with:
make PETSC_DIR=/home/guido/petsc/petsc PETSC_ARCH=arch-linux-c-debug all
xxx=========================================================================xxx
build]$ ccmake -DBUILD_SHARED_LIBS=ON ..
PETSC_CURRENT ON
PETSC_DIR /home/guido/petsc/petsc
ccmake in (t)oggle mode
PETSC ON
PETSC_CURRENT ON
PETSC_DIR /home/guido/petsc/petsc PETSC_INCLUDE_CONF PETSC_INCLUDE_CONF-NOTFOUND
PETSC_INCLUDE_DIR /home/guido/petsc/petsc/include PETSC_LIBRARY_SINGLE PETSC_LIBRARY_SINGLE-NOTFOUND
PKG_CONFIG_EXECUTABLE /usr/bin/pkg-config