CMAKE Matlab Fail

31 views
Skip to first unread message

Jafaruddin Lie

unread,
Apr 19, 2018, 9:53:55 AM4/19/18
to Caffe Users
Hi all
After my struggle building Caffe, I finally managed to make it to compile (sans Matlab) using cmake and GCC 5.4.0.
Trying to compile via Matlab:

<snip>
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   python
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
-- Could NOT find MatlabMex (missing: Matlab_mex Matlab_mexext)
<snip>
CMake Error at cmake/Utils.cmake:357 (message):
  Logic error.  Need to update cmake script
Call Stack (most recent call first):
  matlab/CMakeLists.txt:38 (caffe_parse_linker_libs)



The relevant section that I've configured via ccmake:

//Build Matlab wrapper
BUILD_matlab
:BOOL=ON
//Matlab directory
Matlab_DIR:PATH=/usr/local/matlab/r2015b/
Matlab_mex:FILEPATH=/usr/local/matlab/r2015b/bin/mex
Matlab_mexext:FILEPATH=/usr/local/matlab/r2015b/bin/mexext
//MODIFIED property for variable: BUILD_matlab
BUILD_matlab
-MODIFIED:INTERNAL=ON
//Details about finding MatlabMex
FIND_PACKAGE_MESSAGE_DETAILS_MatlabMex
:INTERNAL=[/usr/local/matlab/r2015b/bin/mex][/usr/local/matlab/r2015b/bin/mexext][v()]
//ADVANCED property for variable: Matlab_mex
Matlab_mex-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Matlab_mexext
Matlab_mexext-ADVANCED:INTERNAL=1

The paths are correct, I can run the two binaries from the command line.
Any ideas?
Reply all
Reply to author
Forward
0 new messages