Skip to content

Commit

Permalink
compile mac
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyduval committed Apr 12, 2017
1 parent ad72a4a commit cde466f
Show file tree
Hide file tree
Showing 28 changed files with 553 additions and 0 deletions.
172 changes: 172 additions & 0 deletions code/compiler/AxonSeg_mac/PackagingLog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<html><meta charset="UTF-8"><pre>
<font color=blue>mcc -o AxonSeg -W main:AxonSeg -T link:exe -d /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_testing -v /Users/Tanguy/code/axon_segmentation/AxonSeg.m -a /Users/Tanguy/code/axon_segmentation/code/GUI/AxonSeg.fig </font>
Compiler version: 6.3 (R2016b)

Dependency analysis by REQUIREMENTS.

[Warning: Adding path "/Users/Tanguy/code/axon_segmentation" to Compiler path
instance.]
Parsing file "/Users/Tanguy/code/axon_segmentation/AxonSeg.m"
(Referenced from: "Compiler Command Line").
Warning: The source file '/tmp/02901y1BH3o_10497.auth' has a name conflict with another source file in CTF. It is saved as 'toolbox/ident/nlident/@linear/soevaluate_mexmaci64.auth' in the CTF. Please verify that your application works as expected.
Deleting 147 temporary MEX authorization files.
Removing: '/tmp/02901SDVXIv_10497.auth'.
Removing: '/tmp/02901cWRjFG_10497.auth'.
Removing: '/tmp/02901Ca6FQf_10497.auth'.
Removing: '/tmp/02901PJsvvu_10497.auth'.
Removing: '/tmp/02901Xunn4M_10497.auth'.
Removing: '/tmp/02901RM2DVZ_10497.auth'.
Removing: '/tmp/02901MqZKuL_10497.auth'.
Removing: '/tmp/02901jVkv4t_10497.auth'.
Removing: '/tmp/0290169Zlqc_10497.auth'.
Removing: '/tmp/029011POqho_10497.auth'.
Removing: '/tmp/02901KNnd8U_10497.auth'.
Removing: '/tmp/02901oq4H8Z_10497.auth'.
Removing: '/tmp/02901F4cT94_10497.auth'.
Removing: '/tmp/02901FolLvu_10497.auth'.
Removing: '/tmp/02901D8nf3h_10497.auth'.
Removing: '/tmp/02901KODJMg_10497.auth'.
Removing: '/tmp/02901kJZewK_10497.auth'.
Removing: '/tmp/02901PAEGmC_10497.auth'.
Removing: '/tmp/02901y1BH3o_10497.auth'.
Removing: '/tmp/02901uszVcg_10497.auth'.
Removing: '/tmp/02901T0ipwr_10497.auth'.
Removing: '/tmp/02901DSm9GF_10497.auth'.
Removing: '/tmp/02901ZL9752_10497.auth'.
Removing: '/tmp/02901FvL4ea_10497.auth'.
Removing: '/tmp/02901wjdfIy_10497.auth'.
Removing: '/tmp/02901NESroY_10497.auth'.
Removing: '/tmp/02901fLIViN_10497.auth'.
Removing: '/tmp/02901fYTXKO_10497.auth'.
Removing: '/tmp/02901UnQFPL_10497.auth'.
Removing: '/tmp/029010po0g8_10497.auth'.
Removing: '/tmp/029011oHL4C_10497.auth'.
Removing: '/tmp/02901kKoFkC_10497.auth'.
Removing: '/tmp/02901cPf6UM_10497.auth'.
Removing: '/tmp/02901HoOCUr_10497.auth'.
Removing: '/tmp/02901LA2fRy_10497.auth'.
Removing: '/tmp/029017CVG4b_10497.auth'.
Removing: '/tmp/029012lRp79_10497.auth'.
Removing: '/tmp/029018OQRPC_10497.auth'.
Removing: '/tmp/02901JI1Y9J_10497.auth'.
Removing: '/tmp/02901uFWmSn_10497.auth'.
Removing: '/tmp/02901ueZGvF_10497.auth'.
Removing: '/tmp/029015OPoxD_10497.auth'.
Removing: '/tmp/02901EgERFK_10497.auth'.
Removing: '/tmp/029015ytIPZ_10497.auth'.
Removing: '/tmp/02901cFM2Ie_10497.auth'.
Removing: '/tmp/02901u1vfTh_10497.auth'.
Removing: '/tmp/02901Uf8K1I_10497.auth'.
Removing: '/tmp/02901W09INQ_10497.auth'.
Removing: '/tmp/02901hoCG9k_10497.auth'.
Removing: '/tmp/02901e42Znr_10497.auth'.
Removing: '/tmp/02901p5KfIa_10497.auth'.
Removing: '/tmp/02901S7i1uS_10497.auth'.
Removing: '/tmp/02901XWn9mN_10497.auth'.
Removing: '/tmp/0290194yFsK_10497.auth'.
Removing: '/tmp/02901YCRyB3_10497.auth'.
Removing: '/tmp/02901J2Ms8P_10497.auth'.
Removing: '/tmp/029012ntxTs_10497.auth'.
Removing: '/tmp/02901Q4PQks_10497.auth'.
Removing: '/tmp/02901Gc9Wul_10497.auth'.
Removing: '/tmp/02901tn2ofE_10497.auth'.
Removing: '/tmp/02901wAtFU8_10497.auth'.
Removing: '/tmp/02901Fnc0Cy_10497.auth'.
Removing: '/tmp/02901BFLFNP_10497.auth'.
Removing: '/tmp/02901f2etsO_10497.auth'.
Removing: '/tmp/02901KzecXy_10497.auth'.
Removing: '/tmp/02901Kr8xrJ_10497.auth'.
Removing: '/tmp/02901NbLjyX_10497.auth'.
Removing: '/tmp/02901W4WAml_10497.auth'.
Removing: '/tmp/02901gigZyA_10497.auth'.
Removing: '/tmp/02901nIkonP_10497.auth'.
Removing: '/tmp/02901rostF5_10497.auth'.
Removing: '/tmp/02901zsc71b_10497.auth'.
Removing: '/tmp/02901gHtFBK_10497.auth'.
Removing: '/tmp/02901Dx5vnW_10497.auth'.
Removing: '/tmp/02901MCJcoP_10497.auth'.
Removing: '/tmp/02901kX7Hvc_10497.auth'.
Removing: '/tmp/02901EBv1fe_10497.auth'.
Removing: '/tmp/02901nmxbND_10497.auth'.
Removing: '/tmp/029011PpVyo_10497.auth'.
Removing: '/tmp/02901HooxH0_10497.auth'.
Removing: '/tmp/029019MbuXO_10497.auth'.
Removing: '/tmp/029013Dlp47_10497.auth'.
Removing: '/tmp/02901qXdvfQ_10497.auth'.
Removing: '/tmp/02901kZAsm8_10497.auth'.
Removing: '/tmp/029010aGxLD_10497.auth'.
Removing: '/tmp/02901VOGVYS_10497.auth'.
Removing: '/tmp/02901tojzfk_10497.auth'.
Removing: '/tmp/02901GZhKdU_10497.auth'.
Removing: '/tmp/02901AbTfnc_10497.auth'.
Removing: '/tmp/029019brUqa_10497.auth'.
Removing: '/tmp/029015zaV2O_10497.auth'.
Removing: '/tmp/02901SxIQW5_10497.auth'.
Removing: '/tmp/029010SS7MJ_10497.auth'.
Removing: '/tmp/02901Iobnsf_10497.auth'.
Removing: '/tmp/02901CcDB4K_10497.auth'.
Removing: '/tmp/02901DaPbeO_10497.auth'.
Removing: '/tmp/029014aQF8M_10497.auth'.
Removing: '/tmp/029018rYuob_10497.auth'.
Removing: '/tmp/029015lA9c6_10497.auth'.
Removing: '/tmp/02901vASigV_10497.auth'.
Removing: '/tmp/029014DsPpM_10497.auth'.
Removing: '/tmp/02901Qv6t4Y_10497.auth'.
Removing: '/tmp/02901SXsV3D_10497.auth'.
Removing: '/tmp/02901WCfqRX_10497.auth'.
Removing: '/tmp/02901ayJaXY_10497.auth'.
Removing: '/tmp/02901SrfEr6_10497.auth'.
Removing: '/tmp/02901Ui3SzE_10497.auth'.
Removing: '/tmp/02901IYlnNT_10497.auth'.
Removing: '/tmp/02901alxp1T_10497.auth'.
Removing: '/tmp/02901GM8jb7_10497.auth'.
Removing: '/tmp/02901H5Fv3i_10497.auth'.
Removing: '/tmp/02901pHLOFp_10497.auth'.
Removing: '/tmp/02901GWFlEW_10497.auth'.
Removing: '/tmp/02901OtmlQa_10497.auth'.
Removing: '/tmp/02901PaJhqB_10497.auth'.
Removing: '/tmp/02901LzaUB7_10497.auth'.
Removing: '/tmp/02901htaHYF_10497.auth'.
Removing: '/tmp/02901iM1GRf_10497.auth'.
Removing: '/tmp/02901D3Zn02_10497.auth'.
Removing: '/tmp/02901uEQV9C_10497.auth'.
Removing: '/tmp/029010zzY2e_10497.auth'.
Removing: '/tmp/02901f4WmzU_10497.auth'.
Removing: '/tmp/02901q9n99x_10497.auth'.
Removing: '/tmp/02901SIkarC_10497.auth'.
Removing: '/tmp/02901VdHlI2_10497.auth'.
Removing: '/tmp/02901TPme1O_10497.auth'.
Removing: '/tmp/02901m7ILSH_10497.auth'.
Removing: '/tmp/02901RTQBmB_10497.auth'.
Removing: '/tmp/02901CFmMxa_10497.auth'.
Removing: '/tmp/029011qoOmA_10497.auth'.
Removing: '/tmp/02901ixVyea_10497.auth'.
Removing: '/tmp/02901SwF1T2_10497.auth'.
Removing: '/tmp/02901BaEKrT_10497.auth'.
Removing: '/tmp/02901nYuHkk_10497.auth'.
Removing: '/tmp/029014wrXsI_10497.auth'.
Removing: '/tmp/02901K2FIkB_10497.auth'.
Removing: '/tmp/02901cBYOR3_10497.auth'.
Removing: '/tmp/02901qTWBr8_10497.auth'.
Removing: '/tmp/02901a9Qg1w_10497.auth'.
Removing: '/tmp/02901BsvIjT_10497.auth'.
Removing: '/tmp/02901KIweHG_10497.auth'.
Removing: '/tmp/02901QStUwx_10497.auth'.
Removing: '/tmp/02901EzttMS_10497.auth'.
Removing: '/tmp/02901x9VmVY_10497.auth'.
Removing: '/tmp/02901Q6AhCN_10497.auth'.
Removing: '/tmp/029012d3CKt_10497.auth'.
Removing: '/tmp/029015QUHME_10497.auth'.
Generating file "/Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_testing/readme.txt".
Generating file "/Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_testing/run_AxonSeg.sh".
<font color=blue>Packaging...</font>
Adding custom icon /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg_resources/icon.icns to /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_testing/AxonSeg.app.
Creating the bundle...
Copying /Applications/MATLAB_R2016b.app/toolbox/compiler/maci64/setup.app to /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/MyAppInstaller_web.app.
Copying /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/bundle.zip to /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/MyAppInstaller_web.app/Contents/Resources/bundle.zip.
Copying /var/folders/w3/r0nv7dns35g62sqc4dbv1f_80000gn/T/splash7715355304032151664.tmp to /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/MyAppInstaller_web.app/Contents/Resources/splash.png.
Copying /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg_resources/icon.icns to /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/MyAppInstaller_web.app/Contents/Resources/installer.icns.
Web based installer created at /Users/Tanguy/code/axon_segmentation/code/compiler/AxonSeg/for_redistribution/MyAppInstaller_web.app.
Packaging complete.
Elapsed packaging time was: 3 minutes and 40 seconds.
</pre></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>prelaunch</string>
<key>CFBundleIconFile</key>
<string>membrane.icns</string>
<key>CFBundleIdentifier</key>
<string>AxonSeg</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AxonSeg</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>AxonSeg</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleVersionString</key>
<string>1.0</string>
<key>CFResourcesFileMapped</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.9.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
120 changes: 120 additions & 0 deletions code/compiler/AxonSeg_mac/for_redistribution_files_only/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
MATLAB Compiler

1. Prerequisites for Deployment

. Verify the MATLAB Runtime is installed and ensure you
have installed version 9.1 (R2016b).

. If the MATLAB Runtime is not installed, do the following:
(1) enter

>>mcrinstaller

at MATLAB prompt. The MCRINSTALLER command displays the
location of the MATLAB Runtime installer.

(2) run the MATLAB Runtime installer.

Or download the Macintosh version of the MATLAB Runtime for R2016b
from the MathWorks Web site by navigating to

http://www.mathworks.com/products/compiler/mcr/index.html


For more information about the MATLAB Runtime and the MATLAB Runtime installer, see
Package and Distribute in the MATLAB Compiler documentation
in the MathWorks Documentation Center.


NOTE: You will need administrator rights to run MCRInstaller.


2. Files to Deploy and Package

Files to package for Standalone
================================
-run_AxonSeg.sh (shell script for temporarily setting environment variables and executing
the application)
-to run the shell script, type

./run_AxonSeg.sh <mcr_directory> <argument_list>

at Linux or Mac command prompt. <mcr_directory> is the directory
where version 9.1 of the MATLAB Runtime is installed or the directory where
MATLAB is installed on the machine. <argument_list> is all the
arguments you want to pass to your application. For example,

If you have version 9.1 of the MATLAB Runtime installed in
/mathworks/home/application/v91, run the shell script as:

./run_AxonSeg.sh /mathworks/home/application/v91

If you have MATLAB installed in /mathworks/devel/application/matlab,
run the shell script as:

./run_AxonSeg.sh /mathworks/devel/application/matlab
-MCRInstaller.zip
-if end users are unable to download the MATLAB Runtime using the above
link, include it when building your component by clicking
the "Runtime downloaded from web" link in the Deployment Tool
-The Macintosh bundle directory structure AxonSeg.app
-this can be gathered up using the zip command
zip -r AxonSeg.zip AxonSeg.app
or the tar command
tar -cvf AxonSeg.tar AxonSeg.app
-This readme file

3. Definitions

For information on deployment terminology, go to
http://www.mathworks.com/help. Select MATLAB Compiler >
Getting Started > About Application Deployment >
Deployment Product Terms in the MathWorks Documentation
Center.


4. Appendix

A. Mac systems:
In the following directions, replace MCR_ROOT by the directory where the MATLAB Runtime
is installed on the target machine.

If the environment variable DYLD_LIBRARY_PATH is undefined, set it to the concatenation
of the following strings:

MCR_ROOT/v91/runtime/maci64:
MCR_ROOT/v91/sys/os/maci64:
MCR_ROOT/v91/bin/maci64

If it is defined, set it to the concatenation of these strings:

${LD_LIBRARY_PATH}:
MCR_ROOT/v91/runtime/maci64:
MCR_ROOT/v91/sys/os/maci64:
MCR_ROOT/v91/bin/maci64

For more detail information about setting the MATLAB Runtime paths, see Package and
Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center.



NOTE: To make these changes persistent after logout on Linux
or Mac machines, modify the .cshrc file to include this
setenv command.
NOTE: The environment variable syntax utilizes forward
slashes (/), delimited by colons (:).
NOTE: When deploying standalone applications, it is possible
to run the shell script file run_AxonSeg.sh
instead of setting environment variables. See
section 2 "Files to Deploy and Package".



5. Launching of application using Macintosh finder.

If the application is purely graphical, that is, it doesn't read from standard in or
write to standard out or standard error, it may be launched in the finder just like any
other Macintosh application.



Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
# script for execution of deployed applications
#
# Sets up the MATLAB Runtime environment for the current $ARCH and executes
# the specified command.
#
exe_name=$0
exe_dir=`dirname "$0"`
echo "------------------------------------------"
if [ "x$1" = "x" ]; then
echo Usage:
echo $0 \<deployedMCRroot\> args
else
echo Setting up environment variables
MCRROOT="$1"
echo ---
DYLD_LIBRARY_PATH=.:${MCRROOT}/runtime/maci64 ;
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/bin/maci64 ;
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/sys/os/maci64;
export DYLD_LIBRARY_PATH;
echo DYLD_LIBRARY_PATH is ${DYLD_LIBRARY_PATH};
shift 1
args=
while [ $# -gt 0 ]; do
token=$1
args="${args} \"${token}\""
shift
done
eval "\"${exe_dir}/AxonSeg.app/Contents/MacOS/AxonSeg\"" $args
fi
exit

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>prelaunch</string>
<key>CFBundleIconFile</key>
<string>membrane.icns</string>
<key>CFBundleIdentifier</key>
<string>AxonSeg</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AxonSeg</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>AxonSeg</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleVersionString</key>
<string>1.0</string>
<key>CFResourcesFileMapped</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.9.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit cde466f

Please sign in to comment.