In the non-root mode, cmake complains that the library LAPACK can not be found, even if the external libraries have already been installed corrected. I found there is something wrong in the file 'itpp-4.3.1/cmake/Modules/FindLAPACK.cmake'.
On line 214, it is
set(_flags "gfortran;m")#needed by itpp-external
if we change it to
set(_flags "gfortran")#needed by itpp-external
then this problem can be solved.
Please provide more details about your platform.
Hi Bogdan,
I have tested on three different platforms, my laptop and two servers. The details for the three platforms are as follow:
A. (Laptop) Linux version 2.6.38-8-generic (buildd@vernadsky) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) )
B. (Server 1) Linux version 2.6.18-164.11.1.el5_lustre.1.8.2 (lbuild@x86-build-0) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46))
C. (Server 2) Linux version 2.6.32.59-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) )
There is no LAPACK, BLAS or FFTW libraries pre-installed on A, B, and C. The cmake version is 2.8.11.2. The installations are carried out with the following step:
% cd $HOME/itpp-external-3.2.0
% make distclean
% ./configure --prefix=$HOME/it++external-3.2.0 --enable-static --disable-shared
% make && make install
% cd $HOME/itpp-4.3.1
% mkdir build && cd build
% $HOME/cmake-2.8.11.2-Linux-i386/bin/cmake .. -DCMAKE_INCLUDE_PATH=$HOME/it++external-3.2.0/include -DCMAKE_LIBRARY_PATH=$HOME/it++external-3.2.0/lib -DCMAKE_INSTALL_PREFIX=$HOME/it++4.3.1 -DBLA_STATIC=on -DITPP_SHARED_LIB=off
% make && make install
Step 1 is successful, but in Step 2, I got the warning message with cmake:
CMake Warning at CMakeLists.txt:196 (message):
LAPACK library not found.
CMake Warning at CMakeLists.txt:204 (message):
You can still compile IT++ but the functionality will be reduced.
With the changes noted in FindLAPACK.cmake, this problem is solved on these three platforms.
Of course, if there is LAPACK library installed before, this warning message will not appear.
Thanks,
Xiaobo
Last edit: Xiaobo Zhou 2013-07-27
Sounds good. I edited it as you said, it worked, but I don't know whether other factors contibute to it.
Could you show the relevant part of your CMakeError.log file please ? I have checked on my system, openSUSE 12.3 and I didn't notice this behavior.
changes committed into master branch