[petsc-users] CMake error

Matthew Knepley knepley at gmail.com
Thu Sep 20 06:56:14 CDT 2018


On Thu, Sep 20, 2018 at 7:47 AM David Sommer <david97sommer at gmail.com>
wrote:

> Hi,
> i am trying to build my project with CMake. For PETSc i use the
> FindPETSc.cmake Module from Barry's repository. Unfortunately
> FindPackage(PETSc) fails with
> "(missing: PETSC_EXECUTABLE_RUNS)"
> In CMakeError.log i have
> "error while loading shared libraries: libpetsc.so.3.9: cannot open shared
> object file: No such file or directory"
> So i manually set $LD_LIBRARY_PATH and $LIBRARY_PATH, both to
> $PETSC_DIR/$PETSC_ARCH.
>

I do not believe that is correct. I think you need

  $PETSC_DIR/$PETSC_ARCH/lib

  Thanks,

    Matt


> Additionally, because of
> http://jacobmerson.com/2016/01/17/cmake-petsc2.html
> i ran CMake with
> cmake .. -D CMAKE_C_COMPILER=$(which mpicc) -D CMAKE_CXX_COMPILER=$(which
> mpicxx)
> Where did i go wrong?
>
> Thanks
> David Sommer
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180920/a8d8c610/attachment.html>


More information about the petsc-users mailing list