[petsc-dev] [petsc-users] How to include PETSc in an Eclipse CDT project

Satish Balay balay at mcs.anl.gov
Wed Apr 18 13:06:10 CDT 2012


On Wed, 18 Apr 2012, Matthew Knepley wrote:

> On Wed, Apr 18, 2012 at 1:50 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 
> > On Wed, Apr 18, 2012 at 10:46, Christian Staudt <
> > christian.staudt at ira.uka.de> wrote:
> >
> >>  make getincludedirs
> >>
> >> failed for me with:
> >>
> >> cls /usr/local/petsc $ make getincludedirs
> >> conf/petscvariables:3:
> >> /usr/local/petsc-3.2-p6/arch-darwin-c-debug/conf/petscvariables: No such
> >> file or directory
> >> makefile:15: /usr/local/petsc-3.2-p6/conf/variables: No such file or
> >> directory
> >> makefile:16: /usr/local/petsc-3.2-p6/conf/rules: No such file or directory
> >> makefile:17: /usr/local/petsc-3.2-p6/conf/test: No such file or directory
> >> make: *** No rule to make target `/usr/local/petsc-3.2-p6/conf/test'.
> >>  Stop.
> >>
> >
> > Matt, is this expected to work for a prefix install?
> >
> 
> No

'make getincludedirs' does work - provided one uses a petsc makefile
[perhaps from build sources]. But no makefile is installed in the
prefix location.

Also this build is not a prefix build. With a prefix install both
'petsc.h' and 'petscconf.h' reside in prefix/include location.

satish



More information about the petsc-dev mailing list