It’s my first time to download PTB.
I’m using Apple M2 (Sonoma 14.0) and Matlab2024b (Silicon/ARM version).
I installed Gstreamer 1.24.10 runtime installer.
After watching Celia’s video, I downloaded and installed PTB-3 through the Matlab add-on. However, the Screen() failed to work when I ran SetupPsychtoolbox
.
And when I ran Screen('Preference', 'SkipSyncTests', 1);
I got the following error:
Invalid MEX-file '/Users/username/Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox/PsychBasic/Screen.mexmaca64':
dlopen(/Users/subaozi/Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox/PsychBasic/Screen.mexmaca64, 0x0006): Library not
loaded: @rpath/libLexActivator.dylib
Referenced from: <FC3FD20F-B39D-3708-B81F-C2CA69017697> /Users/subaozi/Library/Application
Support/MathWorks/MATLAB Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox/PsychBasic/Screen.mexmaca64
Reason: tried: '/Library/Frameworks/GStreamer.framework/Versions/Current/lib/libLexActivator.dylib'
(no such file),
'/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/GStreamer.framework/Versions/Current/lib/libLexActivator.dylib'
(no such file), '/Users/username/Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox/PsychBasic/PsychPlugins/libLexActivator.dylib' (no
such file), '/Library/Frameworks/GStreamer.framework/Versions/Current/lib/libLexActivator.dylib' (no
such file),
'/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/GStreamer.framework/Versions/Current/lib/libLexActivator.dylib'
(no such file), '/Users/username/Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox/PsychBasic/PsychPlugins/libLexActivator.dylib' (no
such file), '/Applications/MATLAB_R2024b.app/bin/maca64/libLexActivator.dylib' (no such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/./libLexActivator.dylib' (no such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/../../sys/os/maca64/libLexActivator.dylib' (no such
file), '/Applications/MATLAB_R2024b.app/bin/maca64/libLexActivator.dylib' (no such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/./libLexActivator.dylib' (no such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/../../sys/os/maca64/libLexActivator.dylib' (no such
file), '/Applications/MATLAB_R2024b.app/bin/maca64/../../runtime/maca64/libLexActivator.dylib' (no
such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/../../sys/java/jre/maca64/jre/lib/server/libLexActivator.dylib'
(no such file),
'/Applications/MATLAB_R2024b.app/bin/maca64/../../sys/java/jre/maca64/jre/lib/libLexActivator.dylib'
(no such file)
I could not find the library (libLexActivator.dylib) and do not know whether I need to download it, and if yes, where to download it.