; Creating Octave standalone distributable for the focus checking program. | Michael Ian Lapsley

Creating Octave standalone distributable for the focus checking program.

Posted on Monday, May 26, 2014, 7:20 AM

Followed this process: http://stackoverflow.com/questions/3843522/how-do-i-create-a-simple-octave-distributable-without-installing-octave (I did not need the change to file_in_path.m)

  • Created embedded.cc and modified it for my particular m file
  • Ran embedded.cc to create embedded.exe
mkoctfile --link-stand-alone embedded.cc -o embedded
  • Created an executable folder to contain all of the supporting files
  • Copied embedded.exe into the folder
  • Opened embedded.exe using cmd to start the whackamole process.
Wackamole process:
  • Copied all dll files from C:\Octave\Octave3.6.4_gcc4.6.2\bin
  • Coped each file that caused the exe to fail
  • In several cases, the functions actually produced errors and it was necessary to investigate the code to determine the needed file.
  • I got stuck on this error:
error: imread: invalid image file: could not find library or dependents: C:\Octave\Projects\FocusCheck\ExecutableFolder\__magick_read__.oct
error: called from:
error:   C:\Octave\Projects\FocusCheck\ExecutableFolder\imread.m at line 74, column 7
error:   C:\Octave\Projects\FocusCheck\ExecutableFolder\FocusCheck_V16.m at line 32, column 5

I have renamed the executable FocusCheck_V16.exe  and its folder FocusCheck_V16exe. The zipped folder can be downloaded here:

1 Response to "Creating Octave standalone distributable for the focus checking program."

.
gravatar
Thorax Says....

Could you post your modified 'embedded.cc' file? or mention the modifications you made?

Leave A Reply