User`s guide
6 Standalone Applications
Note Testing your application on your development machine is an important
step to help ensure that your application is compilable. To verify that your
application compiled properly, you must test all functionality that is available
with the application. If you receive an e rror m es sage similar to
Undefined
function
or Attempt to execute script script_na me as a function,it
is likely that the application will not run properly on deployment machines.
Most likely, your CTF archive is m issing some necessary functions. Use
-a to
add the m issing functions to the archive and recompile your code.
1 Update your path as follows:
Windows. Add the following directory to your path.
matlabroot\bin\win32
UNIX. Add the following platfo rm-specific directories to y our dynamic
library path.
Note For readabili ty, the foll owing co mmands appear on separa t e lines,
but you must enter each
setenv command on one line.
Linux
setenv LD_LIBRARY_PATH
matlabroot/sys/os/glnx86:
matlabroot/bin/glnx86:
matlabroot/sys/java/jre/glnx86/jre1.6.0/lib/i386/native_threads:
matlabroot/sys/java/jre/glnx86/jre1.6.0/lib/i386/server:
matlabroot/sys/java/jre/glnx86/jre1.6.0/lib/i386:
setenv XAPPLRESDIR
matlabroot/X11/app-defaults
Solaris 64
setenv LD_LIBRARY_PATH
/usr/lib/lwp:
matlabroot/sys/os/sol64:
matlabroot/bin/sol64:
6-4