I am looking for tips from anyone who has successfully
used Psychtoolbox with the Matlab Compiler to build a standalone application.
Following the Matlab documentation and deploytool,
I got their "magicsquare" example working.
I followed the same steps with my Psychtoolbox program
and the compilation steps worked fine.
When I run the compiled program, it crashes at the first Psychtoolbox function:
I am hoping this will be an easy fix.
- - - - -
System Configuration:
Mac OS 10.6.7
Matlab 7.10.0.499 (R2010a)
??? Error using ==> fgetl at 44
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in ==> PsychtoolboxVersion at 108
Error in ==> expt at 30
MATLAB:FileIO:InvalidFid
- - - - -
This is the code near line 108 of PsychtoolboxVersion.m
file=fullfile(PsychtoolboxRoot,'Contents.m');
f=fopen(file,'r');
fgetl(f); <~~~ LINE 108
s=fgetl(f);
fclose(f);
- - - - -
I am guessing the PsychtoolboxRoot is not being set correctly in the compiled version,
since fopen can't find the Contents.m file,
... therefore getfl(f) fails because "f" is not valid.
I am running the compiled code on the same iMac as the regular Matlab program,
so all the Psychtoolbox stuff is there in /Applications/Psychtoolbox
any suggestions would be appreciated,
David Jones
dxjones@...
used Psychtoolbox with the Matlab Compiler to build a standalone application.
Following the Matlab documentation and deploytool,
I got their "magicsquare" example working.
I followed the same steps with my Psychtoolbox program
and the compilation steps worked fine.
When I run the compiled program, it crashes at the first Psychtoolbox function:
I am hoping this will be an easy fix.
- - - - -
System Configuration:
Mac OS 10.6.7
Matlab 7.10.0.499 (R2010a)
??? Error using ==> fgetl at 44
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in ==> PsychtoolboxVersion at 108
Error in ==> expt at 30
MATLAB:FileIO:InvalidFid
- - - - -
This is the code near line 108 of PsychtoolboxVersion.m
file=fullfile(PsychtoolboxRoot,'Contents.m');
f=fopen(file,'r');
fgetl(f); <~~~ LINE 108
s=fgetl(f);
fclose(f);
- - - - -
I am guessing the PsychtoolboxRoot is not being set correctly in the compiled version,
since fopen can't find the Contents.m file,
... therefore getfl(f) fails because "f" is not valid.
I am running the compiled code on the same iMac as the regular Matlab program,
so all the Psychtoolbox stuff is there in /Applications/Psychtoolbox
any suggestions would be appreciated,
David Jones
dxjones@...