Invalid MEX-file '/root/.mc​rCache7.17​/autoBl0/t​oolbox/ima​ges/images​/private/i​mhistc.mex​a64': libmwiptutil.so: cannot open shared object file: No such file or directory

1 次查看(过去 30 天)
Background: Ubuntu 12.04 Server. No GUI. MCR 2012. I'm running a matlab-based java program. The java I use is OpenJDK.
In details, the error is:
Invalid MEX-file
'/root/.mcrCache7.17/autoBl0/toolbox/images/images/private/imhistc.mexa64':
libmwiptutil.so: cannot open shared object file: No such file or directory
Error in imhist (line 75)
Error in graythresh (line 47)
Error in getAdjustImg (line 10)
Error in preprocess (line 28)
Error in manualMain (line 119)
Exception in thread "main" ... Matlab M-code Stack Trace ...
file /root/.mcrCache7.17/autoBl0/toolbox/images/images/imhist.m, name imhist, line 75.
file /root/.mcrCache7.17/autoBl0/toolbox/images/images/graythresh.m, name graythresh, line 47.
file /root/.mcrCache7.17/autoBl0/home/administrator/Documents/zhilunCode/zhilun/preprocess/getAdjustImg.m, name getAdjustImg, line 10.
file /root/.mcrCache7.17/autoBl0/home/administrator/Documents/zhilunCode/zhilun/preprocess.m, name preprocess, line 28.
file /root/.mcrCache7.17/autoBl0/home/administrator/Documents/zhilunCode/zhilun/manualMain.m, name manualMain, line 119.
com.mathworks.toolbox.javabuilder.MWException: Invalid MEX-file '/root/.mcrCache7.17/autoBl0/toolbox/images/images/private/imhistc.mexa64': libmwiptutil.so: cannot open shared object file: No such file or directory
  1 个评论
EMEL ALKIM
EMEL ALKIM 2017-5-5
I faced a similar problem when I upgraded our application from 2013b to 2016b. I found the libmwiptutil.so file in mcrCache and if I add that directory to LD_LIBRARY_PATH it is working but the cache is not filled until the first run(which fails) and I don't think adding cache path to LD_LIBRARY_PATH is a good idea. mccExcludedFiles.log has just these (addInstalledToolboxesToJavaPath.m, addInstalledToolboxesToPath.m, addInstalledZipAddOnsToPath.m, pathdef.m, initdesktoputils.m) and the file exists in the ctf in the produced testing folder. I should note that I am using the redistribution_files_only, I install mcr and update the jar file in the target machine. What is the correct way of fixing this?

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2013-12-29
How are you calling imhist()? If you're not taking any return arguments from it then it's possible that it didn't include it in your installation. imhist() will bring up a GUI, and usually MATLAB won't include functions that bring up a GUI. For example you can't compile imtool() and have your program call it. The workaround is to accept the return args and do the plotting yourself. Look in your excludedFiles.log file (or whatever it's called) and see what it says in there.

类别

Help CenterFile Exchange 中查找有关 Standalone Applications 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by