Solve Error : Undefined function or variable ‘setInitialWorkingFolder’. Error in matlabrc (line 197)
2017-02-07 02:14
721 查看
When compile program using Visual Studio 2015, Matlab 2016b, and OpenCV 3.1.0, one might get the error as follow:
Undefined function or variable ‘setInitialWorkingFolder’.
Error in matlabrc (line 197)
Could not initialize the library properly
This error occurs because there might be multiple versions of Matlab and OpenCV. So you need to uninstall all other version and Matlab and OpenCV. If you really don't want to uninstall them, at least you need to remove them from the enviromental path.
For Matlab 2016b, be sure to include correct path, like:
SET MATLAB_VERSION=R2016b
SET MATLABROOT=%PROGRAMFILES%\MATLAB\%MATLAB_VERSION%
SET PATH=%MATLABROOT%\bin\win64;%MATLABROOT%\runtime\win64;%MATLABROOT%\bin;%PATH%
Undefined function or variable ‘setInitialWorkingFolder’.
Error in matlabrc (line 197)
Could not initialize the library properly
This error occurs because there might be multiple versions of Matlab and OpenCV. So you need to uninstall all other version and Matlab and OpenCV. If you really don't want to uninstall them, at least you need to remove them from the enviromental path.
For Matlab 2016b, be sure to include correct path, like:
SET MATLAB_VERSION=R2016b
SET MATLABROOT=%PROGRAMFILES%\MATLAB\%MATLAB_VERSION%
SET PATH=%MATLABROOT%\bin\win64;%MATLABROOT%\runtime\win64;%MATLABROOT%\bin;%PATH%
相关文章推荐
- undefined function or variable 'matlabrc'
- Fatal error: Call to undefined function Think\C() in /var/www/html/ceshi.hzheee.com/think/ThinkPHP/Library/Think/Think.class.php on line 334 这个问题解决
- FatalThrowableError in Encrypter.php line 66: Call to undefined function openssl_encrypt()
- matlab调用python,解决报错:Undefined variable "py" or function "py.command"
- Redmine配置问题1 --NameError in AccountController#login undefined local variable or method`salt' for
- Fatal error: Call to undefined function ParCv() in E:\AppServ\www\include\dedesql.class.php on line
- matlab Undefined function or variable "x" 错误
- Error using fmincon (line 816), Hessian option set to 'on' but no Hessian function provided in optio
- Fatal error: Call to undefined function OCILogon() in D:\xampp\htdocs\chaxun\rbora.php on line 38
- 解决:Fatal error: Call to undefined function parcv() in include\dedesql.class.php on line 489
- Syntax error at line 16 while loading: expected ')', got keyword 'in' or(i.isArray(t)||(t in e?t=[t]:(t=i.came
- ERROR 1336 (0A000): Dynamic SQL is not allowed in stored function or trigger
- Resolving a Fatal error: Call to undefined function mysql_connect() in RedHat
- ERROR 1336 (0A000): Dynamic SQL is not allowed in stored function or trigger
- Fatal error: Call to undefined function mysql_connect() in D:\phpwww\index.php
- 2011 4-13 A strange link error 2001 about inline function
- ( ! ) Fatal error: Call to undefined function ldap_connect() in D:\Program Files\wamp\www\enduser_fe
- php 链接oracle 求大神指点 目前报错如下 Fatal error: Call to undefined function oci_connect() in
- Fatal error: Call to undefined function oci_connect() in
- Fatal error: Call to a member function setAttribute() on a non-object in Magento