[Gmsh] cmake error

lukshuntim at gmail.com lukshuntim at gmail.com
Wed Jan 15 06:28:36 CET 2014


On Wednesday, January 15, 2014 03:10 AM, Ziyu ZHANG wrote:
> Hi, I have got some error when compiling from the scratch
>
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::eig(fullVector<double>&, fullVector<double>&,
> fullMatrix<double>&, fullMatrix<double>&, bool)':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:265: undefined
> reference to `dgeev_'
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::luSolve(fullVector<double> const&,
> fullVector<double>&)':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:284: undefined
> reference to `dgesv_'
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::invert(fullMatrix<double>&) const':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:306: undefined
> reference to `dgetrf_'
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:310: undefined
> reference to `dgetri_'
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::invertInPlace()':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:332: undefined
> reference to `dgesv_'
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::determinant() const':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:352: undefined
> reference to `dgetrf_'
> CMakeFiles/gmsh.dir/Numeric/fullMatrix.cpp.o: In function
> `fullMatrix<double>::svd(fullMatrix<double>&, fullVector<double>&)':
> /home/zz31/gmsh-2.8.3-source/Numeric/fullMatrix.cpp:376: undefined
> reference to `dgesvd_'
> collect2: ld returned 1 exit status
> make[2]: *** [gmsh] Error 1
> make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
> make: *** [all] Error 2
>
> Any idea what the problem is?

It seems the lapack library is somehow not found. Maybe it's installed 
in a non-standard place?

Regards,
ST
--