[mlpack-git] [mlpack] MLPACK w/ Matlab bindings Installation Problem [Ubuntu 14.04.2 LTS] (#440)
Jae Lim
notifications at github.com
Thu May 28 18:54:56 EDT 2015
Hello,
I have been trying to build MLPACK w/ Matlab bindings. I did the usual steps as shown below to build MEX files. But, I've been constantly facing a compilation problem that I couldn't understand. There seems some sort of problem calling the right libmlpack.so.
So, I commented out following codes from src/mlapack/CMakeLists.txt
set_target_properties(mlpack
PROPERTIES
VERSION 1.0
SOVERSION 1
)
The first cmake step went well without complaints.
User1 at pla1:~/mlpack-1.0.12/build$ cmake -D MATLAB_BINDINGS=ON ../
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- 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
-- 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
-- Found Armadillo: /usr/lib/libarmadillo.so (found suitable version "5.200.1", required is "3.6.0")
-- Armadillo libraries: /usr/lib/libarmadillo.so
CMake Warning at CMakeLists.txt:88 (message):
This is a 64-bit system, but Armadillo was compiled without 64-bit index
support. Consider recompiling Armadillo with ARMA_64BIT_WORD to enable
64-bit indices (large matrix support). MLPACK will still work without
ARMA_64BIT_WORD defined, but will not scale to matrices with more than 4
billion elements.
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found suitable version "2.9.1", minimum required is "2.6.0")
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- program_options
-- unit_test_framework
-- random
-- Found Subversion: /usr/bin/svn (found version "1.8.8")
-- Found MATLAB mex compiler: /usr/local/MATLAB/R2015a/bin/mex
-- MATLAB root: /usr/local/MATLAB/R2015a
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/User1/mlpack-1.0.12/build
But, upon executing make, the process stopped without successfully building files:
Scanning dependencies of target mlpack_headers
Moving header files to include/mlpack/
[ 0%] Built target mlpack_headers
Scanning dependencies of target mlpack
[ 1%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
[ 2%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/dists/gaussian_distribution.cpp.o
[ 2%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/dists/laplace_distribution.cpp.o
[ 3%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/kernels/epanechnikov_kernel.cpp.o
[ 4%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/kernels/pspectrum_string_kernel.cpp.o
[ 5%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/math/lin_alg.cpp.o
[ 5%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/math/random.cpp.o
[ 6%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp.o
.....
.....
.....
[ 44%] Built target range_search
Scanning dependencies of target allkrann
[ 44%] Building CXX object src/mlpack/methods/rann/CMakeFiles/allkrann.dir/allkrann_main.cpp.o
Linking CXX executable ../../../../bin/allkrann
[ 44%] Built target allkrann
Scanning dependencies of target man
[ 45%] Generating man pages from built executables.
Generating man page for fastmks...
Generating man page for sparse_coding...
Generating man page for linear_regression...
Generating man page for lars...
Generating man page for allknn...
Generating man page for hmm_loglik...
Generating man page for nca...
Generating man page for nbc...
...
...
...
[ 45%] Built target man
Scanning dependencies of target gmm_mex
[ 46%] Building CXX object src/mlpack/bindings/matlab/gmm/CMakeFiles/gmm_mex.dir/gmm.o
Building with 'g++'.
Warning: You are using gcc version '4.8.2'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
Warning: You are using gcc version '4.8.2-19ubuntu1)'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
MEX completed successfully.
Linking CXX shared library ../../../../../matlab/gmm_mex.mexa64
Unknown MEX argument '-Wl,-rpath,/home/jaelim/mlpack-1.0.12/build/lib:'.
make[2]: *** [matlab/gmm_mex.mexa64] Error 255
make[1]: *** [src/mlpack/bindings/matlab/gmm/CMakeFiles/gmm_mex.dir/all] Error 2
make: *** [all] Error 2
Any idea how to fix this problem?
Thanks!
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/440
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150528/5fc7391a/attachment.html>
More information about the mlpack-git
mailing list