Editing Create a MacOS X App Bundle Using MacPorts

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 168: Line 168:
* When Octave is running, clicking on Octave's icon in the dock has no effect. This is because the App bundle runs a shell script which launches Terminal.app which runs Octave. To locate the Octave session, click on the Terminal.app.
* When Octave is running, clicking on Octave's icon in the dock has no effect. This is because the App bundle runs a shell script which launches Terminal.app which runs Octave. To locate the Octave session, click on the Terminal.app.
* Only one instance of the App may be run by clicking on the app.  Multiple instances may be run from the command line.
* Only one instance of the App may be run by clicking on the app.  Multiple instances may be run from the command line.
* The Octave binary may attempt to load an library whose version number is older than the one it intended to link to (at build time).  This will produce an error like to one below. If this happens, please report the error.
* In some instances, the Octave binary attempts to load an library whose version number is older than the one it intended to link to (at build time).  This will produce an error like to one below.
  <nowiki>dyld: Library not loaded: /opt/local/libiconv.2.dylib</nowiki>
  <nowiki>dyld: Library not loaded: /opt/local/libiconv.2.dylib</nowiki>


Line 259: Line 259:
  <nowiki>dylibs_fix ("bin/octave-3.7.0+", "lib", false)</nowiki>
  <nowiki>dylibs_fix ("bin/octave-3.7.0+", "lib", false)</nowiki>
The script will mirror each of the {{Codeline|otool}} commands to the screen.  Errors and/or warnings are given if any libraries are found to be missing in the bundle.
The script will mirror each of the {{Codeline|otool}} commands to the screen.  Errors and/or warnings are given if any libraries are found to be missing in the bundle.
===Reducing the Size===
The App bundle is large.  It's size may be significantly reduced by deleting the static libraries.
<nowiki>find "Octave-3.7.0+.app/Contents/Resources/lib/." -name "*.a" -exec rm -f {} \;</nowiki>


==Testing==
==Testing==
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: