← Back to team overview

dolfin team mailing list archive

Re: DOLFIN-Matlab integration via MEX

 

What version of Matlab are you using? Can you ad the -v flag to the mex
command and show me the output? It may not make a difference, but try
adding the -DNDEBUG flag as well. We can do this off-list. /Dag

> Thanks Dag,
>
> There is an error, when I issue the 'make' in Matlab. Because my dolfin
> and other libs are installed locally, the make.m file is a bit different:
> ------------------------------------------------------------------------------------------------------------------------------
> disp('Building Poisson-solver MEX')
> mex poisson_DOLFIN.cpp psolver.cpp ...
> -I/home/rfarahi/math/dolfin-0.7.2/linux-opt/include ...
> -I/home/rfarahi/math/AMD/Include  ...
> -I/home/rfarahi/math/UMFPACK/Include   ...
> -L/usr/local/lib ...
> -L/home/rfarahi/math/dolfin-0.7.2/linux-opt/lib -ldolfin ...
> -L/home/rfarahi/math/AMD/Lib/ -lamd ...
> -L/home/rfarahi/math/UMFPACK/Lib/ -lumfpack ...
>     -lblas -lxml2
> ------------------------------------------------------------------------------------------------------------------------------
>
>
> Here is the log of make command in Matlab enviroment. It seems there is
> some problem with vector_of_vector in ublas:
> ------------------------------------------------------------------------------------------------------------------------------
>>> make
> Building Poisson-solver MEX
> Warning: You are using gcc version "3.4.6".  The earliest gcc version
> supported
> with mex is "3.4.0".  The latest version tested for use with mex is
> "3.4.5".
> To download a different version of gcc, visit http://gcc.gnu.org
> In file included from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/ublas.h:12,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/uBlasMatrix.h:22,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/uBlasFactory.h:11,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/dolfin_la.h:7,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin.h:9,
>                  from psolver.h:6,
>                  from poisson_DOLFIN.cpp:8:
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:17:2: #error class
> generalized_vector_of_vector is experiment and currently does not work
> In file included from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/ublas.h:12,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/uBlasMatrix.h:22,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/uBlasFactory.h:11,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin/dolfin_la.h:7,
>                  from
> /home/rfarahi/math/dolfin-0.7.2/linux-opt/include/dolfin.h:9,
>                  from psolver.h:6,
>                  from poisson_DOLFIN.cpp:8:
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1203: error:
> declaration of `class T'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:32: error:  shadows
> template parm `class T'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1203: error:
> declaration of `class F'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:32: error:  shadows
> template parm `class F'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1203: error:
> declaration of `class A'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:32: error:  shadows
> template parm `class A'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1208: error: type
> `boost::numeric::ublas::generalized_vector_of_vector<T, F, A>' is not
> derived from type `boost::numeric::ublas::generalized_vector_of_vector<T,
> F, A>'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1208: error: ISO C++
> forbids initialization of member `zero_'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1208: error: making
> `zero_' static
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1208: error:
> template declaration of `const typename
> boost::numeric::ublas::generalized_vector_of_vector<T, F, A>::value_type
> boost::numeric::ublas::zero_'
> /usr/include/boost/numeric/ublas/vector_of_vector.hpp:1208: confused by
> earlier errors, bailing out
>     mex: compile of 'poisson_DOLFIN.cpp' failed.
> ??? Error using ==> mex
> Unable to complete successfully.
> Error in ==> make at 2
> mex poisson_DOLFIN.cpp psolver.cpp ...
>>>
> ------------------------------------------------------------------------------------------------------------------------------
>
> Any suggestion?
>
> Reza
>
>
>       __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
> favourite sites. Download it now at
> http://ca.toolbar.yahoo.com._______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>




References