MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Manual do Utilizador Página 13: Example: Deploying a Compiled MATLAB Application
The
chmod
line sets the executable permission on the executable file; by default, the GenePattern server does not
set this permission for uploaded files.
On Mac OS X
, for example, to launch the MATLAB executable
analyzeThis.exe
, create a launcher script,
mll
aunch.sh
, that contains the following lines:
#!/bin/sh
export MCR_ROOT=/Volumes/os9/gpserv
export LD_LIBRARY_PATH=$1:/Volumes/os9/matlab7.2/sys/os/mac:
/Volumes/os9/matlab7.2/bin/mac/
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
export PATH=$1:$PATH
chmod a+x $1/writeToFile
writeToFile $2 "$3"
The
chmod
line sets the executable permission on the executable file; by default, the GenePattern server does not
set this permission for uploaded files.
Writing the Module Command Line
On the GenePattern task definition form, write a command line calls the launcher script, passing the <libdir>
parameter as the first argument (so that it can be added to the path).
On Windows
, the following command line calls the launcher script,
mllaunch.bat
:
<libdir>mllaunch.bat <libdir> <param1> <param2>
On Linux
or
Mac OS X
, the following command line calls the launcher script,
mllaunch.sh
:
sh <libdir>mllaunch.sh <libdir> <param1> <param2>
In both command lines, the first <libdir> sets the path to the
mllaunch
script. The second <libdir> is passed as the
first argument to the script so that the script can add this directory to the appropriate environment variables. The
<param1> and <param2> variables are parameters to the MATLAB application, which you define in the task definition
form and specify in the command line as usual.
Adding Support Files
For the compiled approach, you must specify at least two support files for the MATLAB application: the executable file
and .ctf file. If your application requires additional files for its execution, also add those files as support files.
Distribution Licensing
Should you choose to distribute your MATLAB based module to others, you must ensure you are in compliance with
the MATLAB licensing agreement:
http://www.mathworks.com/company/aboutus/policies_statements/agreement.pdf
Following are a few key points for GenePattern developers:
●
You may not distribute code that uses MATLAB and that competes with any of The MathWorks products.
●
You may not modify or remove any license file included with the MCR Libraries.
●
Users of your GenePattern modules must be made aware of the MATLAB license agreement in documentation
and accept it before installing your modules.
●
Your MATLAB application must have an about box or equivalent "visible" location that includes the legend
"MATLAB copyright 1984-
yyyy
the MathWorks Inc.", where
yyyy
is the year you released your module.
Please refer to the MATLAB licensing agreement for exact details. You are responsible for reviewing and complying
with the MATLAB software license. The above summary does not exempt you from this responsibility.
Example: Deploying a Compiled MATLAB Application
This section provides a step-by-step example of deploying a simple M-file application as a GenePattern module on a
GenePattern server. Where the instructions are platform specific, the example shows instructions for Windows, Linux,
and Mac OS X.
13
Ficheiro PDF · ·
Perguntas sobre MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
Ainda não há perguntas sobre este manual. Faça a primeira.
Manuais e produtos relacionados com Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
- Software MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Manual do Utilizador
(54 páginas) - Software MATLAB GAUGES BLOCKSET RELEASE NOTES Guia do Utilizador
(114 páginas) - Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Especificações
(126 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificações
(216 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guia do Utilizador
(386 páginas) - Software MATLAB BUILDER EX 1 Guia do Utilizador
(164 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Manual do Utilizador
(37 páginas) - Software MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Guia do Utilizador
(252 páginas) - Software MATLAB SYSTEMTEST RELEASE NOTES Guia de Instalação
(237 páginas) - Software MATLAB TARGET SUPPORT PACKAGE - RELEASE NOTES Manual do Utilizador
(54 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço
(282 páginas) - Software MATLAB PARTIAL DIFFERENTIAL EQUATION TOOLBOX 1 Manual do Utilizador
(18 páginas) - Software MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guia do Utilizador
(574 páginas) - Software MATLAB IMAGE ACQUISITION TOOLBOX 3 Guia do Utilizador
(408 páginas) - Software MATLAB XPC TARGET RELEASE NOTES Manual do Utilizador
(51 páginas) - Software MATLAB TARGET SUPPORT PACKAGE - RELEASE NOTES Manual do Utilizador
(42 páginas) - Software MATLAB BUILDER JA 2 Guia do Utilizador
(292 páginas) - Software MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guia do Utilizador
(210 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador
(759 páginas) - Software MATLAB CONTROL SYSTEM TOOLBOX 9 Especificações
(591 páginas)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22