nightrome / matconvnet-calvin

Code for several state-of-the-art papers in object detection and semantic segmentation.
http://calvin.inf.ed.ac.uk/
Other
86 stars 72 forks source link

Compilation error: mxIsScalar identifier not found #2

Closed nightrome closed 8 years ago

nightrome commented 8 years ago

A user reported that compiling MatConvNet-Calvin results in the following errors:

Error using mex
labelPresence_backward.cpp
matconvnet-calvin\matlab\labelpresence\labelPresence_backward.cpp(29)
: error C3861: 'mxIsScalar': identifier not found

Error in vl_compilenn_calvin (line 15)
mex(mexOpts{:}, fullfile(codeDir, 'labelpresence', 'labelPresence_backward.cpp'));
nightrome commented 8 years ago

This actually seems to be a problem with your Matlab version. Apparently the "mxIsScalar" function was not found. Googling it I found that this function was introduced in Matlab R2015a [1] . Am I guessing correctly that your Matlab version is older? Please try out the latest version (just run "git pull") that should address this problem. There might be more functions just like that, which are missing in your Matlab version. In that case please get back to me.

[1] http://stackoverflow.com/questions/31654419/how-to-check-if-variable-is-scalar-or-array-before-mxisscalar-was-introduced