Linux app build - ISET/isetonline GitHub Wiki

This is only necessary if you want to have an active compiled Matlab back end!

Description (rough) of how to build the compiled oi2sensor Matlab binary for performing runtime processing as a web backend.

  • Make sure and add /data to the needed files

  • Temperamental about runt efforts, and doesn't tell you what files need cleanup. Sigh.

  • Runtime command is a bit sad-looking but is something like:

./run_oi2sensor.sh /usr/local/MATLAB/MATLAB_Runtime/v911/ '\'oiFile\'' /volume1/web/oi/oi_001.mat '\'sensorFile\'' '/usr/Stanford_University/oi2sensor/applicationIMX363 MOD.json'

NAS-specific:

  • Entware to get unzip
  • Permissions & locations are tricky, root fs is tiny, so need to provide a linked /usr/local/MATLAB and make sure to run as a user -- who in turn needs to be given permissions
  • Failed installs leave about 1GB in /tmp, so they need to be cleaned before trying again
  • Lack of a GUI is an issue. Run install with -silent -agreeToLicense yes
  • Need to specify the runtime path when you launch the .sh runfile
  • the GUI module may fail (from the runtime). Just move it out of the path
  • No GUI & small tmp so: ./MyAppInstaller_web.install -mode silent -agreeToLicense yes -tmpdir /volume1/isetonline/tmp
  • You wind up with something like this: sh ./run_oi2sensor.sh /usr/local/MATLAB/MATLAB_Runtime/v911/