Comment 11 for bug 513913

Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 513913] Re: cpp demos fail after 'scons install'

On Thursday 28 January 2010 13:08:21 Garth Wells wrote:
> Johan Hake wrote:
> > On Thursday 28 January 2010 12:32:02 Garth Wells wrote:
> >> Johan Hake wrote:
> >>> On Thursday 28 January 2010 11:56:23 Garth Wells wrote:
> >>>> Looks like a problem with the version of PETSc. Doing
> >>>>
> >>>> scons
> >>>>
> >>>> links to the system-wide installation of PETsc which is in /usr.
> >>>
> >>> I just changed a modenv.Append(linkflags...) ->
> >>> modenv.Prepend(linkflags...), when building the demos from root. This
> >>> might help?
> >>
> >> Doesn't help.
> >>
> >> Does the version of simula_scons distributed with tritetgen use the
> >> pkg-config flags '--libs-only-l' and '--libs-only-L'? These strip away
> >> -rpath, etc, which is bad.
> >
> > The simula-scons version in tritetmesh is more or less the same as in
> > dolfin, however, the fix was done in the SConscript file. The flags were
> > collected from the pkg-config file but not added to the build
> > environment.
> >
> > They are now.
>
> Thanks! I spotted it but you beat me to it.
>
> I have another error now. When I do 'scons' I get
>
> scons: *** [/usr/local/include/tritetmesh]
> /usr/local/include/tritetmesh: Permission denied
> scons: building terminated because of errors.

I have tried to reproduce this but I can't. Can you include more informations?

Johan

> Garth
>
> > Johan
> >
> >>> I see that the SConscript in dolfin/demo also do Append. Do you have
> >>> troubles running these?
> >>
> >> No.
> >>
> >> Garth
> >>
> >>> Johan
> >>>
> >>>> Doing 'scons' on a demo picks up my version of PETSc which is pointed
> >>>> to by PETSC_DIR.
>