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 found this: http://octave.1599824.n4.nabble.com/Octave-3-4-2-Mingw-Image-Package-td3837297.html Indicating the need for libgomp-1.dll (did not fix)
- I found this: http://stackoverflow.com/questions/20956551/imread-stopped-working-on-octave indicating the need for libpng and libjpeg. (did not fix)
- In desperation, I copied all dlls from C:\Octave\Octave3.6.4_gcc4.6.2\mingw\bin and C:\Octave\Octave3.6.4_gcc4.6.2\gnuplot\bin
- This fixed the problem.
I have renamed the executable FocusCheck_V16.exe and its folder FocusCheck_V16exe. The zipped
folder can be downloaded here:
Subscribe to:
Post Comments (Atom)
1 Response to "Creating Octave standalone distributable for the focus checking program."
Could you post your modified 'embedded.cc' file? or mention the modifications you made?
Leave A Reply