In case anyone experiences this problem in the future, a fresh Windows installation and using the specific Matlab version I developed the app solved the problem (probably it was the Windows installation that solved the issue.)
Webcam Package Not Working
15 views (last 30 days)
Show older comments
Hakan Caldag
on 7 Nov 2023
Commented: Hakan Caldag
on 28 Mar 2024
Hi everyone,
I am trying to use Matlab Support Package for USB Webcams on a PC with a fresh Windows 10 installation (nothing else installed besides Matlab R2023b). However I get the following error when I try to use a command from the package, such as webcamlist:
Invalid MEX-file 'C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\matlab\webcam\supportpackages\webcammex.mexw64': The specified module could not be found.
Do you have any idea why this may be occurring? I am not having such an issue on any other PC. Should I have some other packages installed?
0 Comments
Accepted Answer
Hakan Caldag
on 27 Mar 2024
4 Comments
Image Analyst
on 27 Mar 2024
Yes, this confirms my suspicions stated in my earlier post. If you have a standalone executable, then you can run that executable on the computer where you compiled it, as long as the release you compiled it with is still on that computer. So when you had 2023a, you could run it both in the development environment and as a standalone compiled executable. The reason it could run as a compiled executable is that you still had r2023a on that computer. If you didn't then you'd have to have the runtime library installed on the computer.
When you reinstalled Windows and then installed MATLAB R2023b (only) then the code necessary to run the standalone executable compiled in r2023a did not exist on that computer, so it could not run. The source code should have still been able to run in the MATLAB development environment though.
To get the r2023a executable to run on your computer which now has only r2023b on it, you'd have to install the run-time library for r2023a, which you can get here:
A command like webcamlist should work in the command window in any version of MATLAB so I'm not sure why it didn't run for you in R2023b. Perhaps it needed the webcam Add-on, like I mentioned in my answer below, but you said that you had installed it. I asked you to call tech support. Did you? If not, why not. If so, what did they say? Have you tried returning to the R2023b again and trying again? But now r2024a is out so you might as well try that version instead.
More Answers (1)
Image Analyst
on 7 Nov 2023
Did you install the webcam package from the Add-ons button on the tool ribbon?
6 Comments
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!