deployTL
This MATLAB function, deployTL
, is designed to assist users in troubleshooting issues with the deploytool on a Mac OS X system. The function performs a series of checks and setups to ensure that the necessary tools and patches are correctly installed and configured.
The function begins by checking the installed version of Xcode on the system using the command !xcodebuild -version
. This is crucial because the correct version of Xcode is required for MATLAB to function properly on Mac OS X.
It then opens a web page that provides information about the required Xcode version for MATLAB. This is done using the web
function with the URL 'http://www.mathworks.de/support/solutions/en/data/1-FR6LXJ/'
.
The function navigates to the MATLAB root directory and executes a patch file located on the desktop. This is done using the command !unzip -o /Users/timlueth/Desktop/optsPatch_MACOSX7.patch
.
It displays the MEX file extension for the current computer using the mexext
command. This helps in identifying the correct file extensions for compiled MATLAB files.
The function prompts the user to set up MEX and MBUILD using the commands mex -setup
and mbuild -setup
. These setups are necessary for compiling C/C++ code with MATLAB.
It opens the MATLAB documentation page for running 64-bit Mac applications using the doc
command.
The function opens a web page that addresses a known launcher bug in MATLAB using the URL 'http://www.mathworks.de/support/solutions/en/data/1-KFHOJH/index.html?solution=1-KFHOJH'
.
It installs a patch for the launcher bug by unzipping a patch file located on the desktop using the command !unzip -o /Users/timlueth/Desktop/R2012b_LauncherFix.patch
.
Finally, the function sets the access rights for the launcher and prelaunch files in the maci64
directory using the chmod 775
command. This ensures that the necessary permissions are granted for these files to execute properly.