Hi all,
I'm having issues with matlab's deploytool while I try to compile a program that uses the psychtoolbox libary. I do not have issues using the compiler with programs that do not use psychtoolbox. I know that psychtoolbox isn't an official mathworks toolbox but I think this might be a problem with my use of the the compiler more than a problem with psychtoolbox.
A few details:
Os: windows 10
matlab: R2013a
PsychtoolboxVersion: 3.0.13
Bug description:
When I use matlab's deploytool, the compiler finishes to build the exe with no problems, but when i open the exe file i get an error mesage: "Failed to load PsychPortAudio driver for unknown reason! Dependency problem?" .
I noticed that the 'mccExcludedFiles.log' lists many times Psychtoolbox functions.
An example line from this file: (log file is attached)
| _C:\Program Files\MATLAB\R2013a\toolbox\psychtoolbox\psychoneliners\Ellipse.m
called by C:\Program Files\MATLAB\R2013a\toolbox\matlab\scribe\private\legendHGUsingMATLABClasses.p
(C:\Program Files\MATLAB\R2013a\toolbox\compiler\depfun.opts, line 7:
exclude if $caller in [$toolbox/matlab, $toolbox/daq] and ...
$file in $toolbox and ...
$file not in [$toolbox/matlab, $toolbox/shared, $toolbox/compiler] ...
and not ($file in $toolbox/distcomp and $caller in $toolbox/matlab))_|
I should note that psychtoolbox is well defined at the top of my matlab path, and I do not have any problems with running psychtoolbox. Only with compiling.
Assuming that this might mean that psychtoolbox is not listed in the compiler path, I tried to manually add the psychtoolbox folder to the compiler path ( as seen in the screenshot attached), but still no luck.
Any ideas? Any help will be great!
Thank you.
Attached:
-screenshot of error msg shown when exe file is opened
-screenshot of compiler settings
- mccExcludedFiles.log