Hi,
I'm trying to deploy a PTB routine in order to run it on a machine that doesn't have MATLAB installed. I'm using the 'Application Compiler' tool in MATLAB. Upon running the compiled binary, I receive an error from the console indicating that MATLAB OpenGL (mogl) hasn't been added to the search path:
Error using InitializeMatlabOpenGL (line 88)
Failed to initialize OpenGL for Matlab: Add the 'core' and 'wrap' directories of mogl to the MATLAB search path!
Note that this is on the same machine that I compiled from; i.e. this computer has a working PTB installation on it. Manually adding the entire PTB directory to the search path with the following code doesn't appear to help:
addpath(genpath('/Applications/Psychtoolbox'));
Does anyone have any ideas why the compiled version of the app isn't finding mogl?