Matlab Compiler Error --- loadLibrary unable to load MATLAB\R2012b\bin\win64\ DLLs
    5 views (last 30 days)
  
       Show older comments
    
Hello MATLAB Answers,
I recently started playing around with Matlab Compiler at work. I started with the natural
mbuild -setup
Selected Microsoft Windows SDK 7.1 as my compiler. Next I typed
help mcc
which gave tons of useful information. Disregarding most of that information, I started simple, I just tried to compile a function that multiplies an input by 2, aptly named myfun.m to match the example in mcc help.
Trying to compile the simple function, I type
mcc -m myfun
Into the command line and I get the following text output followed by error.
mcc -m myfun
MATLAB:dispatcher:loadLibrary Can't load 'C:\Program Files\MATLAB\R2012b\bin\win64\handle_graphics.dll': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.  
. 
MATLAB:dispatcher:loadLibrary Can't load 'C:\Program Files\MATLAB\R2012b\bin\win64\libmwchart.dll': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.  
. 
MATLAB:dispatcher:loadLibrary Can't reload 'C:\Program Files\MATLAB\R2012b\bin\win64\libmwchart.dll'. 
MATLAB:dispatcher:loadLibrary Can't reload 'C:\Program Files\MATLAB\R2012b\bin\win64\libmwchart.dll'. 
Depfun error: 'FatalException(unknown)' 
MATLAB:dispatcher:loadLibrary Can't reload 'C:\Program Files\MATLAB\R2012b\bin\win64\libmwchart.dll'. 
Error using mcc
Error executing mcc, return status = 1 (0x1).
This baffles me. If anyone was wondering what Matlab and toolboxes I am running the following is printed when I type ver into the command line.
ver
-------------------------------------------------------------------------------------------------------
MATLAB Version: 8.0.0.783 (R2012b)
MATLAB License Number: 
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------------------------
MATLAB                                                Version 8.0        (R2012b)
Image Processing Toolbox                              Version 8.1        (R2012b)
MATLAB Compiler                                       Version 4.18       (R2012b)
Neural Network Toolbox                                Version 8.0        (R2012b)
Optimization Toolbox                                  Version 6.2.1      (R2012b)
Signal Processing Toolbox                             Version 6.18       (R2012b)
Statistics Toolbox                                    Version 8.1        (R2012b)
Wavelet Toolbox                                       Version 4.10       (R2012b)
I am hoping that someone can offer some insight into why I am getting this error I would be much appreciative.
Thanks!
0 Comments
Answers (2)
See Also
Categories
				Find more on Introduction to Installation and Licensing in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
