help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 4.4. on MacOS 10.12.6 with GUI anyone?


From: Ben Abbott
Subject: Re: Octave 4.4. on MacOS 10.12.6 with GUI anyone?
Date: Wed, 27 Jun 2018 20:28:57 -0700

On Jun 27, 2018, at 8:23 PM, Ben Abbott <address@hidden> wrote:

On Jun 27, 2018, at 11:29 AM, Andrew Janke <address@hidden> wrote:

On 6/27/18 2:23 PM, John W. Eaton wrote:
On 06/27/2018 10:35 AM, Andrew Janke wrote:

I have. Unfortunately, that turns out to be quite difficult, because it depends on making builds of GCC and Qt (and all the other Octave dependencies) that are relocatable, which is no easy task, because they're not designed for that.

The Windows binary for Octave may be installed in any directory, so I think it is possible, even for GCC, which is included with the Octave Windows installer.

I also distribute (privately) binaries for older RHEL and SuSE systems that can be installed anywhere.  They rely on a shell script to set some environment variables before executing Octave. That is all included in the mxe-octave build system.  The shell script is here:

  http://hg.octave.org/mxe-octave/file/tip/octave-wrapper.in

You do have to edit the shell scripts to set the proper value of OCTAVE_HOME, but that could be done by an installer script if needed.

jwe
That's exciting: if it can be done on Linux, then it seems likely to be feasible on macOS.

We're already making a wrapper script to deal with some environment variables, so that wouldn't be a burden to expand. I'll have a look through the MXE system and get familiar with it.

Thanks!

Andrew

Andrew,

The link below explains how to make apps relocatable.


The link below uses a python script to make a app relocatable.


I faintly recall that py2app didn’t do everything needed for Octave.

FreeCad uses the solution below.


In 2012 I wrote some m-file scripts to do the job and used MacPorts to create the bundle. The approach was never deployed due to problems making the app “Universal”. 


If I recall correctly, these scripts need to be modified. Since 2012, Apple made some changes to their preferred scheme for relative paths.

Ben


Regarding the TODO list at the bottom of the wiki link, I recall that the mkoctfile problem was fixed, but I didn’t update the wiki. Many things about mkoctfile have been improved since 2012. It is possible it works now without any effort.

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]