Cannot find Matlab during mattorch installation

1,376 views
Skip to first unread message

Andreas Kargakos

unread,
Jan 7, 2015, 11:06:31 AM1/7/15
to tor...@googlegroups.com
Hello, I am trying to install mattorch in Ubuntu 12.04 LTS. I get the following message:

-- 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
-- Found Torch7 in /usr/local
-- ** WARNING no MATLAB_ROOT setting to /opt/matlab
-- ** you can set the correct MATLAB_ROOT in your environment
-- ** eg. bash: export MATLAB_ROOT=/home/john/matlab
-- Using Matlab in: /opt/matlab
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  MATLAB_INCLUDE_DIR (missing: MATLAB_MEX_LIBRARY MATLAB_MAT_LIBRARY
  MATLAB_ENG_LIBRARY MATLAB_MX_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
  FindMatlab.cmake:123 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.

I follow the instructions, setting the MATLAB_ROOT variable to my Matlab directory (/usr/local/MATLAB/R2011b), however the problem remains. I have Matlab 7.13.0564, 64-bit. Any suggestions?
Thanks.

Sergey Zagoruyko

unread,
Jan 9, 2015, 4:24:48 AM1/9/15
to tor...@googlegroups.com
The solution is here: https://github.com/clementfarabet/lua---mattorch/issues/10 (works for both linux and OS X)
Message has been deleted

Andreas Kargakos

unread,
Jan 9, 2015, 11:15:54 AM1/9/15
to tor...@googlegroups.com
thanks it worked!

i saw it before but i thought it was for mac os only, i just had to change the directories
Reply all
Reply to author
Forward
0 new messages