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.