Question #156058 on DOLFIN changed: https://answers.launchpad.net/dolfin/+question/156058
Status: Answered => Open Chunhe Lee is still having a problem: Hi Johannes, It seems that I have made some progress. But I still need some help. Here is what I did: I use the following command to make and install armadillo: cmake -DLAPACK_LIBRARY:FILEPATH=/home/rhome/lihe/bin/lapack/lib/liblapack.a -DCMAKE_INSTALL_PREFIX=/home/rhome/lihe/bin/armadillo -DLIB_INSTALL_DIR=lib . And it has found LAPACK package: -- Configuring Armadillo 1.2.0 -- Boost version: 1.46.1 -- The CXX compiler identification is GNU -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- MKL_FOUND = NO -- ACMLMP_FOUND = NO -- ACML_FOUND = NO -- Found a LAPACK library: /home/rhome/lihe/bin/lapack/lib/liblapack.a -- LAPACK_FOUND = YES -- BLAS_FOUND = NO -- CLAPACK_FOUND = NO -- CBLAS_FOUND = NO -- *** -- *** The Armadillo run-time library component will be an alias for the following libraries: -- *** ARMA_LIBS = /home/rhome/lihe/bin/lapack/lib/liblapack.a -- *** -- Boost_MAJOR_VERSION = 1 -- Boost_MINOR_VERSION = 46 -- Boost_INCLUDE_DIR = /home/rhome/lihe/bin/boost/1.46.1/include -- Looking for C++ include boost/date_time/posix_time/posix_time.hpp -- Looking for C++ include boost/date_time/posix_time/posix_time.hpp - found -- Performing Test ARMA_HAVE_STD_ISFINITE -- Performing Test ARMA_HAVE_STD_ISFINITE - Success -- Performing Test ARMA_HAVE_STD_ISINF -- Performing Test ARMA_HAVE_STD_ISINF - Success -- Performing Test ARMA_HAVE_STD_ISNAN -- Performing Test ARMA_HAVE_STD_ISNAN - Success -- Performing Test ARMA_HAVE_LOG1P -- Performing Test ARMA_HAVE_LOG1P - Success -- Performing Test ARMA_HAVE_STD_SNPRINTF -- Performing Test ARMA_HAVE_STD_SNPRINTF - Success -- Performing Test ARMA_HAVE_GETTIMEOFDAY -- Performing Test ARMA_HAVE_GETTIMEOFDAY - Success -- Generating 'include/armadillo_bits/config.hpp' -- Generating 'examples/Makefile' -- Detected 64 bit system -- CMAKE_INSTALL_PREFIX = /home/rhome/lihe/bin/armadillo -- INSTALL_LIB_DIR = /home/rhome/lihe/bin/armadillo/lib64 -- INSTALL_INCLUDE_DIR = /home/rhome/lihe/bin/armadillo/include -- INSTALL_DATA_DIR = /home/rhome/lihe/bin/armadillo/share -- Generating '/home/rhome/lihe/program/install/armadillo-1.2.0/ArmadilloConfig.cmake' -- Generating '/home/rhome/lihe/program/install/armadillo-1.2.0/ArmadilloConfigVersion.cmake' -- Generating '/home/rhome/lihe/program/install/armadillo-1.2.0/InstallFiles/ArmadilloConfig.cmake' -- Generating '/home/rhome/lihe/program/install/armadillo-1.2.0/InstallFiles/ArmadilloConfigVersion.cmake' -- Configuring done -- Generating done -- Build files have been written to: /home/rhome/lihe/program/install/armadillo-1.2.0 But when I tried to install dolfin-0.9.10 using the command: cmake -DARMADILLO_DIR:PATH=/home/rhome/lihe/bin/armadillo . it still not work: The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test HAVE_PIPE -- Performing Test HAVE_PIPE - Success -- Performing Test HAVE_PEDANTIC -- Performing Test HAVE_PEDANTIC - Success -- Performing Test HAVE_STD -- Performing Test HAVE_STD - Success -- Performing Test HAVE_DEBUG -- Performing Test HAVE_DEBUG - Success -- Performing Test HAVE_O2_OPTIMISATION -- Performing Test HAVE_O2_OPTIMISATION - Success -- Boost version: 1.46.1 -- Found the following Boost libraries: -- filesystem -- program_options -- system -- thread -- Checking for package 'Armadillo' -- Performing Test ARMADILLO_TEST_RUNS -- Performing Test ARMADILLO_TEST_RUNS - Failed -- Checking for package 'LAPACK' -- Found LAPACK: /home/rhome/lihe/bin/lapack/lib/liblapack.a -- Performing Test ARMADILLO_LAPACK_TEST_RUNS -- Performing Test ARMADILLO_LAPACK_TEST_RUNS - Failed CMake Error at /home/cluster/cmake/2.8.2/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:146 (find_package_handle_standard_args) CMakeLists.txt:164 (find_package) In addition, I also set ARMADILLO_DIR="/home/rhome/lihe/bin/armadillo" and export ARMADILLO_DIR. Also add armadillo lib path into LD_LIBRARY_PATH. Why it just can not find armadillo package? Thanks agian! Best regards! Chunhe 2011-05-06 You received this question notification because you are a member of DOLFIN Team, which is an answer contact for DOLFIN. _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp