Why am I getting an error regarding "webcammex.mexw64" when using the USB Webcam Support Package?

7 views (last 30 days)
This question was flagged by Walter Roberson

Executing "webcamlist" gives me the following error: "The specified module could not be found":

>> webcamlist
Invalid MEX-file
'C:\ProgramData\MATLAB\SupportPackages\RXXXXx\toolbox\matlab\webcam\supportpackages\webcammex.mexw64': The specified module could not be found.
When I go inside the directory mentioned in the error message, the MEX file is present. How do I fix the issue?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Oct 2024
This error is frequently caused when running MATLAB on a Windows N edition. "N edition" means "no media". So you need to install the Windows "Media Feature Pack" as explained in the Microsoft article below:
If this does not resolve the issue or does not apply, there are a few troubleshooting steps to try:
  1. Try a clean reinstallation of support packages as explained here: https://uk.mathworks.com/matlabcentral/answers/318635-how-do-i-perform-a-clean-re-installation-of-a-support-package
  2. The modules within the support package rely on the Microsoft Visual C++ Redistributables. Try installing the latest versions for MSVC 2015, 2017, and 2019. Then restart your computer and try using "webcamlist" again.
  3. Try using "webcamlist" again after doing a clean install of MATLAB via the instructions found at the following link to run Dependency Analyzer:  https://www.mathworks.com/matlabcentral/answers/92362-how-do-i-determine-which-libraries-my-mex-file-or-stand-alone-application-requires

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!