octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FORGE] Fem-fenics installation fails


From: Juan Pablo Carbajal
Subject: Re: [FORGE] Fem-fenics installation fails
Date: Mon, 17 Feb 2014 21:27:52 +0100

On Mon, Feb 17, 2014 at 8:26 PM, Juan Pablo Carbajal
<address@hidden> wrote:
> On Mon, Feb 17, 2014 at 8:01 PM, Juan Pablo Carbajal
> <address@hidden> wrote:
>> With Fenics 1.3.0 installed from PPA on Ubuntu 13.10 amd64
>> and with
>> $> locate dolfin.h
>> /usr/include/dolfin.h
>>
>> The installation in Octave gives
>> octave-cli-3.8.0:1> pkg -forge install fem-fenics
>> configure: error: dolfin required to install Msh Package
>> [...]
>> checking dolfin.h usability... no
>> checking dolfin.h presence... no
>> checking for dolfin.h... no
>>
>> pkg: error running the configure script for fem-fenics.
>> error: called from 'configure_make' in file
>> /usr/local/share/octave/3.8.0/m/pkg/private/configure_make.m near line
>> 72, column 9
>> error: called from:
>> error:   /usr/local/share/octave/3.8.0/m/pkg/private/install.m at line
>> 199, column 5
>> error:   /usr/local/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
>>
>> I guess some environment variable should be defined. I couldn't find
>> help in the fem-fenics manual.
>>
>> Any clues?
>
> In addition the msh package also fails to find the dolfin
> installation. I tried to look in to the source of the package and
> found that there is a automatically generated configure script (!).
> Where are the sources that generated that script? Clearly the
> offending lines are in the "ac_fn_cxx_check_header_mongrel "$LINENO"
> "dolfin.h" " command, but I cannot decipher this part.
>
> Maybe there are betters ways to check if fenics is installed?

So, I went to the sources of msh and the check in configure.ac is
AC_CHECK_HEADER([dolfin.h],
  [AC_SUBST(ac_dolfin_cpp_flags,-DHAVE_DOLFIN_H)
AC_SUBST(ac_dolfin_ld_flags,-ldolfin)],
  [AC_MSG_WARN([dolfin headers could not be found, som functionalities
will be disabled, don't worry your package will still be working,
though.])]
 )

and this doesn't work in my system, though the files are there. I
wrote a trivial example (that should be added to the ac_check, right?)
echo "#include<dolfin.h>" > test.cpp
g++ -c test.cpp -I/usr/include
Here it finds dolfin.h but it cannot find Eigen/Dense. Looking in my
system I found it and added
g++ -c test.cpp -I/usr/include  -I/usr/include/eigen3
and the program compiles (although I am not sure Eigen/Dense is the
right one). Clearly I need to indicate these locations in the
configure of the msh and most problably fem-fenics as well.

How can we fix this?
@Rik, maybe you know a trick for the configure.ac?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]