Create a MacOS X App Bundle Using MacPorts: Difference between revisions

no edit summary
No edit summary
Line 104: Line 104:
* In the past, the App bundle did not run if there were spaces in its path.  A solution to this problem has been applied, but is not fully tested.
* In the past, the App bundle did not run if there were spaces in its path.  A solution to this problem has been applied, but is not fully tested.
* The [[MacOS_X_App_Octave_Shell_Script|Octave shell script]] used to run Octave is designed to ensure that the bundled version of AquaTerm is used by Octave. This was done because binary incompatibilities have been encountered between the bundled Gnuplot and AquaTerm applications provided by other sources. If Octave/Gnuplot appear to have a problem producing a plot using AquaTerm, verify that Aquaterm is running. If it is not, then quit and relaunch the Octave App. If an Aquaterm application is running, please verify that it is the one bundled with Octave.
* The [[MacOS_X_App_Octave_Shell_Script|Octave shell script]] used to run Octave is designed to ensure that the bundled version of AquaTerm is used by Octave. This was done because binary incompatibilities have been encountered between the bundled Gnuplot and AquaTerm applications provided by other sources. If Octave/Gnuplot appear to have a problem producing a plot using AquaTerm, verify that Aquaterm is running. If it is not, then quit and relaunch the Octave App. If an Aquaterm application is running, please verify that it is the one bundled with Octave.
* Executables built by MacPorts may include features specific to the MacOS X version the executables were build on. As a result, the Octave App bundle may ''not'' run on a different version of MacOS X.  Results reported by some volunteers testing an App bundle are below.  As some of the reported results are inconsistent, individuals are cautioned to not interpret these results as definitive.
* Executables built by MacPorts may include features specific to the MacOS X version the executables were build on. As a result, the Octave App bundle may ''not'' run on a different version of MacOS X.
:* An App built on a Core i7 MacBook Pro running MacOS 10.7 was found to run on;
* The {{Codeline|<nowiki>mex</nowiki>}} and {{Codeline|<nowiki>mkoctfile</nowiki>}} functions have not been tested.  Although the App bundle does include a gcc toolset, some debugging is expected before this will work reliably.
* 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.
 
==Testing==
Those interested in testing an App bundle can try this [https://dl.dropbox.com/u/14845154/Octave-X86_64-3.7.0%2B.dmg link]. The DMG is large (620+ MB).  I kindly ask those with the patience to download it, to report results to bpabbott at mac dot com. When reporting on your experience, please include;
* The version of MacOS X you are running.
** Note: This App bundle will ''not'' run on Mac OS 10.5 or earlier.
* The Mac's processor (found under "About This Mac").
** Note: This App bundle will ''only'' run on Intel processors, and requires a 64 bit processor (X86_64).
** If the App bundle doesn't run, it may necessary to enable 64 bit modeSee Apple's support page for instructions ⇒ [http://support.apple.com/kb/HT3773 OS X: Starting up with the 32-bit or 64-bit kernel];
* Whether you have Fink, Homebrew, or MacPorts installed.
* For intricate problems, please provide enough information so that others may duplicate it.
===Testing Results===
Results reported by some volunteers testing an App bundle are below.  As some of the reported results are inconsistent, individuals are cautioned to not interpret these results as definitive.
:* An App bundle built for arch=X86_64 on an Intel Core i7 MacBook Pro running MacOS 10.7 was found to run on the following;
::* MacBook Pro (Core i7) running MacOS 10.7 with MacPorts installed.
::* MacBook Pro (Core i7) running MacOS 10.7 with MacPorts installed.
::* MacBook Pro (Core i7) running MacOS 10.7 with no MacPorts, and no Fink, installed.
::* MacBook Pro (Core i7) running MacOS 10.7 with no MacPorts, and no Fink, installed.
Line 122: Line 137:
  <nowiki>terminate called after throwing an instance of '__gnu_cxx::__concurrence_lock_error'
  <nowiki>terminate called after throwing an instance of '__gnu_cxx::__concurrence_lock_error'
what():  __gnu_cxx::__concurrence_lock_error</nowiki>
what():  __gnu_cxx::__concurrence_lock_error</nowiki>
* The {{Codeline|<nowiki>mex</nowiki>}} and {{Codeline|<nowiki>mkoctfile</nowiki>}} functions have not been tested.  Although the App bundle does include a gcc toolset, some debugging is expected before this will work reliably.
* 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.
==Testing==
Those interested in testing an App bundle can try this [https://dl.dropbox.com/u/14845154/Octave-X86_64-3.7.0%2B.dmg link]. The DMG is large (620+ MB).  I kindly ask those with the patience to download it, to report results to bpabbott at mac dot com. When reporting on your experience, please include;
* The version of MacOS X you are running.
** Note: This App bundle will ''not'' run on Mac OS 10.5 or earlier.
* The Mac's processor (found under "About This Mac").
** Note: This App bundle will ''only'' run on Intel processors, and requires a 64 bit processor (X86_64).
** If the App bundle doesn't run, it may necessary to enable 64 bit mode.  See Apple's support page for instructions ⇒ [http://support.apple.com/kb/HT3773 OS X: Starting up with the 32-bit or 64-bit kernel];
* Whether you have Fink, Homebrew, or MacPorts installed.
* For intricate problems, please provide enough information so that others may duplicate it.
[[Category:Mac]]
[[Category:Mac]]
364

edits