← Back to team overview

dolfin team mailing list archive

Re: [Question #156058]: ARMADILLO_TEST_RUNS

 

Question #156058 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/156058

    Status: Answered => Open

Chunhe Lee is still having a problem:
Dear Sir:

Thanks for you reply. But it still does not work. I think I can't use
Dorsal, I installed every dependency from the source file.

When I installed armadillo according to what you said, it shows:

cmake -DCMAKE_INSTALL_PREFIX=/home/rhome/lihe/bin/armadillo/ -DLIB_INSTALL_DIR=lib .
-- 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
-- LAPACK_FOUND  = NO
-- 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 = 
-- *** 
-- 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


Are these no problems?

And when I tried to install dolfin, it shows:

cmake -DARMADILLO_DIR:PATH=/home/rhome/lihe/bin/armadillo/ ..
-- 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)


Could you provide some solutions? Also I can't find the reason from the CMakeError.log.
Thanks!


Best regards!
Chunhe


2011-05-06


发件人: Johannes Ring
发送时间: 2011-05-05 18:09:22
收件人: chunhe.lee
抄送: 
主题: Re: [Question #156058]: ARMADILLO_TEST_RUNS

Your question #156058 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/156058
    Status: Open => Answered
Johannes Ring proposed the following answer:
The problem can be how you installed Armadillo. How did you do that?
This is how we do it in Dorsal:
>From the Armadillo source directory, do
  cmake -DCMAKE_INSTALL_PREFIX=/some/path -DLIB_INSTALL_DIR=lib .
  make
  make install
(Note the . (dot) at the end of the cmake line.)
Then configure DOLFIN with -DARMADILLO_DIR:PATH=/some/path. I just tried
this and it works fine.
If you cannot get it to work, have a look in the
CMakeFiles/CMakeError.log file in the DOLFIN build directory.
-- 
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/dolfin/+question/156058/+confirm?answer_id=0
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/dolfin/+question/156058
You received this question notification because you asked the question.

You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.