Deployment error while deploying MATLAB GUI

13 views (last 30 days)
Gahana Jain
Gahana Jain on 1 Dec 2017
Answered: Hongcheng on 16 Nov 2019
I have created a MATLAB GUI with around 60-70 GB data files. But while deploying there is an error "Failed to embed CTF file into binary application file because the total file size exceed system limit 2GB. Please use '-C' flag and re-run Compiler." So, now I am not able to understand where to use this -C flag. Kindly look into it. PS: I am using MATLAB 2013a version-64 bit. Attaching the log file.

Answers (2)

Kojiro Saito
Kojiro Saito on 25 Dec 2017
You can add mcc options from MATLAB Command window. Call mcc from MATLAB and add -C option.
mcc -o Untitled1 -W WinMain:Untitled1 -T link:exe -d D:\GUI\Untitled1\src -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -R -logfile -v D:\GUI\user_interface.m -a D:\GUI\addshapefile.m -a D:\GUI\dailyfile1.m -a D:\GUI\data -a D:\GUI\downloads -a D:\GUI\endd.m -a D:\GUI\filepath.m -a D:\GUI\genfilename.m -a D:\GUI\monthlyfile.m -a D:\GUI\monthmean -a D:\GUI\process -a D:\GUI\seasonallyfile.m -a D:\GUI\shap_India -a D:\GUI\shapfile_ -a D:\GUI\start.m -a D:\GUI\user_interface.fig -a D:\GUI\yearmean -C
For detail of mcc options, please see this mcc doc in R2013a.

Hongcheng
Hongcheng on 16 Nov 2019
Have you solved any problems? I have encountered the same problem when I use matlab appdesigner :
log:
mcc -o ImageClassification -W WinMain:ImageClassification -T link:exe -d C:\Users\abc\Desktop\hun\ImageClassification\for_testing -v C:\Users\abc\Desktop\hun\ImageClassification_5.mlapp -a D:\finished-network\sha25cu10.mat -a D:\finished-network\sha25cu20.mat -a D:\finished-network\sha25cu315.mat -a D:\finished-network\sha30cu10.mat -a D:\finished-network\sha30cu20.mat -a D:\finished-network\sha30cu315.mat -a D:\finished-network\sha35cu10.mat -a D:\finished-network\sha35cu20.mat -a D:\finished-network\sha35cu315.mat -a D:\finished-network\sha40cu10.mat -a D:\finished-network\sha40cu20.mat -a D:\finished-network\sha40cu315.mat -a D:\finished-network\sha45cu10.mat -a D:\finished-network\sha45cu20.mat -a D:\finished-network\sha45cu315.mat -r 'D:\Program Files\MATLAB\R2018b\toolbox\compiler\Resources\default_icon.ico' -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\+matlab\+webcam -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\@webcam\webcam.m -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\private -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\webcammex.mexw64
Compiler version: 7.0 (R2018b)​
Dependency analysis by REQUIREMENTS.​
Parsing file "C:\Users\abc\Desktop\hun\ImageClassification_5.mlapp"
(Referenced from: "Compiler Command Line").
Deleting 84 temporary MEX authorization files.
Removing: 'C:\Users\abc\AppData\Local\Temp\eec7-6fbb-1876-39ea_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\c747-1dfb-389e-c3c1_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\dc06-e5f7-1993-5d7d_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\65e6-b679-7a0a-df1f_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\4f2f-82ed-867c-53c9_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\cb11-9912-669f-76ea_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\faac-62a0-cb3b-c9f0_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\d09a-e2e6-69cb-ac7e_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\4d58-7263-7910-22ef_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9f9d-7edb-d07d-6981_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2b59-ed84-b023-3687_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2570-c4ae-f356-dd5e_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\81f0-1e3f-4c0e-dce5_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\fa1c-72b7-37d5-bacf_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9072-5de7-cf36-7b18_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9eb4-e23a-5fca-bbf3_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\31f5-fc64-0a0b-fe14_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\931c-00cd-a780-a7cd_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\4cbd-a948-25ee-1397_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9450-bcf6-6302-a65a_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\abda-d75c-28da-a5d3_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2b17-a85d-c1fc-034a_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\6f5a-2f1b-7553-5601_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\1edf-9d24-8fae-48d4_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9cc5-3771-12ed-1701_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\8412-fc73-c304-9fda_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\d514-220d-ca0d-3fc8_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\fd0c-6a49-0f9f-5a21_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\602c-458e-d453-25ea_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\b47c-9c11-88a7-9c93_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\5a62-9e28-a158-5913_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9d63-4dfc-2793-e5a2_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2fa7-cde6-3bef-6d64_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\56fd-483e-7af0-5462_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\ae25-9802-6839-85d9_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\a98d-8bfc-30ef-23af_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\1093-80fa-a539-caa6_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\0c35-f3ad-9318-a0fe_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\4744-4594-9100-d9b4_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\f534-42e3-1f7a-381f_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\9c0d-864b-450f-0dc5_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\c37f-38ea-e5ea-4ab4_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\51d2-7ca0-18a4-aa4b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\279e-2e30-9e5a-8d13_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\429d-343d-1a7f-e91e_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\f14f-8b12-1d63-261b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\5a21-df92-d5bc-1489_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\d31e-138e-7525-fe24_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\ef61-8701-a868-a9ab_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\0fe2-7b76-d9d9-38b0_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\a25d-49cd-eb5e-9c1c_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\f020-545c-5645-1e6b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\043c-bb4d-11d3-fe19_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\89f3-b263-300c-ed99_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\5d3d-5c3d-b91b-9b22_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\849d-7b2e-ee25-cc9d_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\c77c-a175-bb7b-d209_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\31f5-cf4d-69b5-19b7_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\8d82-8801-d982-f801_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\eac9-6ec5-fc3c-4e24_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\bda5-a063-23ff-df93_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\e86f-366b-af2e-2f36_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\50e7-ebf6-94c8-664b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\602d-4ab8-080f-6dae_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\0770-a3bf-bfcf-863b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\e8df-9302-a315-ba4b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\8420-e557-1712-2da1_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\bb02-9e2a-77c8-84a6_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\359c-d128-1bdd-cde4_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\a6af-c2cb-1a48-0308_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\4961-17a1-32b8-a8b8_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\7bf8-c5c9-effa-5cf0_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\386d-a653-0287-4ebe_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\a23f-c53a-e16d-0820_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2e62-c39d-0893-caca_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\0f59-5ace-be0a-9ba7_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\3fd5-48f4-5351-a6b9_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\2929-7887-e5d7-3a24_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\209b-582c-9110-9245_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\19a9-e1ec-285f-c366_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\fbb9-68a8-638d-9520_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\d201-4755-9440-2fb6_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\d5f0-075e-14df-7f2b_7532.auth'.
Removing: 'C:\Users\abc\AppData\Local\Temp\b426-bf57-8c51-1582_7532.auth'.
Generating file "C:\Users\abc\Desktop\hun\ImageClassification\for_testing\readme.txt".
Failed to embed CTF file into binary application file because the total file size exceeds system limit 2GB. Please use '-C' flag and re-run Compiler.
when I use:
mcc -o ImageClassification -W WinMain:ImageClassification -T link:exe -d C:\Users\abc\Desktop\hun\ImageClassification\for_testing -v C:\Users\abc\Desktop\hun\ImageClassification_5.mlapp -a D:\finished-network\sha25cu10.mat -a D:\finished-network\sha25cu20.mat -a D:\finished-network\sha25cu315.mat -a D:\finished-network\sha30cu10.mat -a D:\finished-network\sha30cu20.mat -a D:\finished-network\sha30cu315.mat -a D:\finished-network\sha35cu10.mat -a D:\finished-network\sha35cu20.mat -a D:\finished-network\sha35cu315.mat -a D:\finished-network\sha40cu10.mat -a D:\finished-network\sha40cu20.mat -a D:\finished-network\sha40cu315.mat -a D:\finished-network\sha45cu10.mat -a D:\finished-network\sha45cu20.mat -a D:\finished-network\sha45cu315.mat -r 'D:\Program Files\MATLAB\R2018b\toolbox\compiler\Resources\default_icon.ico' -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\+matlab\+webcam -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\@webcam\webcam.m -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\private -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\webcammex.mexw64 -C
the *.exe file could not be run. The generated *.ctf size was 3.24GB
when I use:
mcc -C ImageClassification -W WinMain:ImageClassification -T link:exe -d C:\Users\abc\Desktop\hun\ImageClassification\for_testing -v C:\Users\abc\Desktop\hun\ImageClassification_5.mlapp -a D:\finished-network\sha25cu10.mat -a D:\finished-network\sha25cu20.mat -a D:\finished-network\sha25cu315.mat -a D:\finished-network\sha30cu10.mat -r 'D:\Program Files\MATLAB\R2018b\toolbox\compiler\Resources\default_icon.ico' -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages+matlab+webcam -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\@webcam\webcam.m -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\private -a C:\ProgramData\MATLAB\SupportPackages\R2018b\toolbox\matlab\webcam\supportpackages\webcammex.mexw64 -C
The *.exe file can run when the generated file size is reduced to 1.06GB
What is the reason

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!