← Back to team overview

dolfin team mailing list archive

Re: Mac and cmake.local does not find packages

 

On Friday October 1 2010 10:02:24 Anders Logg wrote:
> On Fri, Oct 01, 2010 at 06:22:11PM +0200, Andre Massing wrote:
> >  Hi!
> > 
> > Den 01.10.10 17.15, skrev Johan Hake:
> > >On Ubuntu I have to set PETSC_DIR and SLEPC_DIR together with the
> > >PETSC_ARCH. I do not know for ARMADILLO, as it is installed under /usr.
> > 
> > Ok, thanks. I set ARMADILLO_DIR as well and it worked fined :)
> 
> Yes. This is the general idea, that one needs to set FOO_DIR for
> package FOO.
> 
> I think we discussed having a mechanism that allows specifying a
> common prefix for where stuff is installed (in the case where FOO_DIR
> and BAR_DIR are the same). I don't know how that discussion conluded.

Nor do I. It does not look like it is in place

Johan
 
> Unfortunately, PETSC_DIR and SLEPC_DIR will need to be set in addition
> to such a directory.
> 
> --
> Anders
> 
> > >Johan
> > >
> > >On Friday October 1 2010 07:49:00 Andre Massing wrote:
> > >>   Hi!
> > >>
> > >>Finally I update my installations to the newest DOLFIN development
> > >>version, including the new
> > >>cmake build system. When I run a complete installation with DORSAL
> > >>everything goes fine,
> > >>but if I want to run  cmake.local,  then cmake does not find libraries
> > >>like ARMADILLO, PETSC etc.
> > >>These are installed in a non standard path /Users/andre/local,  so is
> > >>there an easy option
> > >>to make cmake aware of it? Or do I have to export all corresponding
> > >>environment variables mention
> > >>in dorsal_build file?
> > >>
> > >>Here is the error message:
> > >>-- Checking for package 'Armadillo'
> > >>CMake Error at
> > >>/opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:
> > >>70 (MESSAGE): Armadillo could not be found.  Be sure to set
> > >>ARMADILLO_DIR. (missing: ARMADILLO_TEST_RUNS)
> > >>
> > >>Call Stack (most recent call first):
> > >>    cmake/modules/FindArmadillo.cmake:139
> > >>
> > >>(find_package_handle_standard_args) CMakeLists.txt:160 (find_package)
> > >>
> > >>Cheers,
> > >>Andre
> > >>
> > >>
> > >>
> > >>_______________________________________________
> > >>Mailing list: https://launchpad.net/~dolfin
> > >>Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> > >>Unsubscribe : https://launchpad.net/~dolfin
> > >>More help   : https://help.launchpad.net/ListHelp
> > 
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dolfin
> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dolfin
> > More help   : https://help.launchpad.net/ListHelp
> 
> --
> Anders
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp



References