compiler issues

Hi all, 

I'm having trouble compiling my program  using the matlab compiler. Regular matlab programs compile just fine, but my program using psychtoolbox doesn't. 


Here are some details:

PsychtoolboxVersion: 3.0.13

matlab version: R2013a

OS: windows 10


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:

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 help will be great! 

Thank you. 


Attached:

-screenshot of error msg shown when exe file is opened

-screenshot of compiler settings

mccExcludedFiles.log


 

We don't support using psychtoolbox with the matlab compiler. It has come up a few times on the forum previously, but i do not know whether anyone succeeded. Search (with google) and see what these people found.

ymmv

On Thu, Oct 6, 2016 at 8:40 PM, liorpolat@... [PSYCHTOOLBOX] <PSYCHTOOLBOX@yahoogroups.com> wrote:
[Attachment(s) from liorpolat@... included below]

Hi all,

I'm having trouble compiling my program using the matlab compiler. Regular matlab programs compile just fine, but my program using psychtoolbox doesn't.


Here are some details:

PsychtoolboxVersion: 3.0.13

matlab version: R2013a

OS: windows 10


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:

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 help will be great!

Thank you.


Attached:

-screenshot of error msg shown when exe file is opened

-screenshot of compiler settings

- mccExcludedFiles.log