Borrar filtros
Borrar filtros

How do I run compiled app after extractCTF?

10 visualizaciones (últimos 30 días)
Cameron Taggart
Cameron Taggart el 16 de Nov. de 2016
Respondida: Cameron Taggart el 16 de Nov. de 2016
The MATLAB Compiler creates an executable file. The MATLAB Compiler Runtime (MCR) appears to extract the contents of the file into a cache each time it is run. It looks like I can use extractCTF to extract the files from the executable file, but how do I run my program after extracting it?
/usr/local/MATLAB/MATLAB_Runtime/v90/bin/glnxa64/extractCTF

Respuesta aceptada

Cameron Taggart
Cameron Taggart el 16 de Nov. de 2016
I ended up enabling the -C option so that it creates a MyApp.ctf file in addition to the MyApp executable instead of embedding the .ctf contents in the executable. On first run, it extracts the files to MyApp_mcr directory. Since I'm building a Docker image, I run extractCTF MyApp.ctf to create the MyApp_mcr directory when building the image. I wish I could then delete the MyApp.ctf, but it errors out if I do.
mcc help -C Do not embed the deployable archive in binaries.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by