alicevision / uncertaintyTE

Uncertainty estimation
http://alicevision.github.io
6 stars 5 forks source link

CMake Error at CMakeLists.txt:210 (message): Magma not found. But Magma is compiled and installed successfully. #5

Open zengletian1491 opened 4 years ago

zengletian1491 commented 4 years ago

when "cmake" is typed in, errors occur because of the magma, which is shown in the following: CMake Error at CMakeLists.txt:210 (message): Magma not found But I install magma-2.5.2 successfully. The report after typing "cmake .." is presented as follows:

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting CXX compile features -- Detecting CXX compile features - done


-- UncertaintyTE framework v.1.2.0 -- CMAKE_CONFIGURATION_TYPES: Debug;Release -- CMAKE_BUILD_TYPE:


-- REQUIRED LIBRARIES -- Gflags -- Eigen -- Blas and Lapack -- Cuda -- Ceres -- Magma dense -- -- OPTIONAL LIBRARIES -- SuiteSparse -- Matlab mex -- AliceVision -- Boost


-- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp (found version "4.0") -- Found OpenMP_CXX: -fopenmp (found version "4.0") -- Found OpenMP: TRUE (found version "4.0")
Found Gflags 2.2.2 -- > GFLAGS_INCLUDE_DIR: /usr/local/include;/usr/local/include -- > GFLAGS_LIBRARIES: gflags_static;gflags_static Found Eigen3.3.7 -- > EIGEN3_INCLUDE_DIRS: /usr/local/include/eigen3 -- Found BLAS: /usr/lib/libopenblas.so
-- Found AMD library: /usr/lib/x86_64-linux-gnu/libamd.so -- Found AMD header in: /usr/include/suitesparse -- Found CAMD library: /usr/lib/x86_64-linux-gnu/libcamd.so -- Found CAMD header in: /usr/include/suitesparse -- Found COLAMD library: /usr/lib/x86_64-linux-gnu/libcolamd.so -- Found COLAMD header in: /usr/include/suitesparse -- Found CCOLAMD library: /usr/lib/x86_64-linux-gnu/libccolamd.so -- Found CCOLAMD header in: /usr/include/suitesparse -- Found CHOLMOD library: /usr/lib/x86_64-linux-gnu/libcholmod.so -- Found CHOLMOD header in: /usr/include/suitesparse -- Found SuiteSparseQR library: /usr/lib/x86_64-linux-gnu/libspqr.so -- Found SuiteSparseQR header in: /usr/include/suitesparse -- Found Intel Thread Building Blocks (TBB) library: /usr/lib/x86_64-linux-gnu/libtbb.so, assuming SuiteSparseQR was compiled with TBB. -- Found Intel Thread Building Blocks (TBB) Malloc library: /usr/lib/x86_64-linux-gnu/libtbbmalloc.so -- Found SuiteSparse_config library: /usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so -- Found SuiteSparse_config header in: /usr/include/suitesparse -- Adding librt: /usr/lib/x86_64-linux-gnu/librt.so to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing). -- Found METIS library: /usr/local/lib/libmetis.so. -- Found SuiteSparse: /usr/include/suitesparse (found version "4.4.6") Found SuiteSparse -- > SUITESPARSE_INCLUDE_DIRS: /usr/include/suitesparse -- > SUITESPARSE_LIBRARIES: /usr/lib/x86_64-linux-gnu/libspqr.so;/usr/lib/x86_64-linux-gnu/libtbb.so;/usr/lib/x86_64-linux-gnu/libtbbmalloc.so;/usr/lib/x86_64-linux-gnu/libcholmod.so;/usr/lib/x86_64-linux-gnu/libccolamd.so;/usr/lib/x86_64-linux-gnu/libcamd.so;/usr/lib/x86_64-linux-gnu/libcolamd.so;/usr/lib/x86_64-linux-gnu/libamd.so;/usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so;/usr/lib/x86_64-linux-gnu/librt.so -- Found required Ceres dependency: Eigen version 3.3.7 in /usr/local/include/eigen3 -- Found required Ceres dependency: glog -- Found required Ceres dependency: gflags -- Found Ceres version: 2.0.0 installed in: /usr/local with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations] Found CERES 2.0.0 -- > CERES_INCLUDE_DIRS:
-- > CERES_LIBRARIES: ceres -- A library with LAPACK API found. Found lapack and blas: /usr/lib/libopenblas.so CMake Error at CMakeLists.txt:210 (message): Magma not found

-- Found CUDA: /usr/local/cuda (found suitable version "9.2", minimum required is "7.0") Found CUDA 9.2 -- > CUDA_INCLUDE_DIRS: /usr/local/cuda/include -- > CUDA_LIBRARIES: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/x86_64-linux-gnu/librt.so -- > CUDA_CUBLAS_LIBRARIES: /usr/local/cuda/lib64/libcublas.so -- > CUDA_CUDART_LIBRARY: /usr/local/cuda/lib64/libcusparse.so -- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0 -- Requested configuration: QUIET REQUIRED -- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0 -- Found Boost: /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.55")
Found Boost -- > Boost_INCLUDE_DIRS: /usr/local/include -- > Boost_LIBRARIES:
--


-- UNC_ALICEVISION_SUPPORT: OFF -- UNC_MKL_SUPPORT: OFF -- UNC_MATLAB_SUPPORT: OFF -- UNC_BUILD_MEX: OFF -- UNC_BUILD_TESTS: OFF


-- Configuring incomplete, errors occurred! See also "/home/zeng/Software/uncertaintyTE-dev_codeStructure/build/CMakeFiles/CMakeOutput.log". See also "/home/zeng/Software/uncertaintyTE-dev_codeStructure/build/CMakeFiles/CMakeError.log".

Could you please me some suggestions? Thanks very much! By the way, "AliceVision" can be compiled and installed without "unCertaintyTE" on my ubuntu 16.04 LTS.

thima2017 commented 4 years ago

I added MAGMA_ROOT path parameter and set it to the magma installation dir using cmake-gui. And seems it it works. But then I got a strange warning "WARNING: Target "uncertainty" requests linking to directory "/usr/include/eigen3". Targets may link only to libraries. CMake is dropping the item.". This warning appears while generating.

thima2017 commented 4 years ago

Seems it's needed for AliceVision too.

simogasp commented 4 years ago

This module is only optional in alicevision, if you are not planning to use uncertainty u can skip it.

Otherwise, once you install MAGMA, you should also pass its location at cmake, e.g. passing -DMAGMA_ROOT:PATH=path/to/magma/install (ie. the root dir where u can find include lib directories installed by magma

thima2017 commented 4 years ago

I'm trying to build a "full version" with all nodes and possibilities. And I would recommend cmake-gui for passing options to cmake. It's more convenient in some cases.