Quantcast

compiling cli version only

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
c.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

compiling cli version only

c.
Hi,

I am installing from sources on a machine where I will not need to use graphics.
I am configuring with:

./configure ...  --without-qt --with-x=no --without-opengl --without-fltk    ...

nontheless make produces two separate and different binaries:

lrwxrwxrwx 1 carlo numer      12 Feb 17 15:57 octave -> octave-4.2.0
-rwxr-xr-x 1 carlo numer  129960 Feb 17 15:57 octave-4.2.0
lrwxrwxrwx 1 carlo numer      16 Feb 17 15:57 octave-cli -> octave-cli-4.2.0
-rwxr-xr-x 1 carlo numer  114200 Feb 17 15:57 octave-cli-4.2.0

and, if I start "octave" I always get the following warning:

$ octave  
octave: no graphical display found
octave: disabling GUI features

which I don't get when running "octave-cli"

Is there a way to tell configure to produce "octave-cli" only?
How do I get rid of the warning?

c.





Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling cli version only

Mike Miller-4
On Fri, Feb 17, 2017 at 16:05:02 +0100, c. wrote:

> Hi,
>
> I am installing from sources on a machine where I will not need to use graphics.
> I am configuring with:
>
> ./configure ...  --without-qt --with-x=no --without-opengl --without-fltk    ...
>
> nontheless make produces two separate and different binaries:
>
> lrwxrwxrwx 1 carlo numer      12 Feb 17 15:57 octave -> octave-4.2.0
> -rwxr-xr-x 1 carlo numer  129960 Feb 17 15:57 octave-4.2.0
> lrwxrwxrwx 1 carlo numer      16 Feb 17 15:57 octave-cli -> octave-cli-4.2.0
> -rwxr-xr-x 1 carlo numer  114200 Feb 17 15:57 octave-cli-4.2.0
>
> and, if I start "octave" I always get the following warning:
>
> $ octave  
> octave: no graphical display found
> octave: disabling GUI features
>
> which I don't get when running "octave-cli"
>
> Is there a way to tell configure to produce "octave-cli" only?

No, there is no way to avoid compiling the octave wrapper program.

After make install, you could delete octave and rename / copy / link
octave-cli to be octave if you want. I don't think the executable
octave-cli has to exist under that name for everything to work correctly
(except when using the wrapper program).

> How do I get rid of the warning?

You could run octave -W or octave --no-window-system, which has the same
effect as not having a DISPLAY in the environment but without the
warning message.

Or always use octave-cli.

--
mike

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling cli version only

John W. Eaton
Administrator
On 02/17/2017 12:26 PM, Mike Miller wrote:

> You could run octave -W or octave --no-window-system, which has the same
> effect as not having a DISPLAY in the environment but without the
> warning message.
>
> Or always use octave-cli.

Another option is to use

   octave --no-gui-libs

which tells the octave wrapper program to exec octave-cli.

jwe



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling cli version only

Mike Miller-4
On Fri, Feb 17, 2017 at 16:04:56 -0500, John W. Eaton wrote:

> On 02/17/2017 12:26 PM, Mike Miller wrote:
>
> > You could run octave -W or octave --no-window-system, which has the same
> > effect as not having a DISPLAY in the environment but without the
> > warning message.
> >
> > Or always use octave-cli.
>
> Another option is to use
>
>   octave --no-gui-libs
>
> which tells the octave wrapper program to exec octave-cli.

And one more option, you could run

  octave --silent

(which I have aliased in my shell environment) to suppress both the
startup banner and the warning message about not having a DISPLAY.

Now that I look at main.in.cc, we could change it so that --no-gui-libs
is implied by default when Octave is compiled without Qt.

--
mike

c.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling cli version only

c.

On 17 Feb 2017, at 22:36, Mike Miller <[hidden email]> wrote:

> Now that I look at main.in.cc, we could change it so that --no-gui-libs
> is implied by default when Octave is compiled without Qt.

I think that would make sense.
Is the change you propose the one in the attached patch?
c.


open_q0PYZy0Z.txt (684 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compiling cli version only

Mike Miller-4
On Sat, Feb 18, 2017 at 08:05:33 +0100, c. wrote:
>
> On 17 Feb 2017, at 22:36, Mike Miller <[hidden email]> wrote:
>
> > Now that I look at main.in.cc, we could change it so that --no-gui-libs
> > is implied by default when Octave is compiled without Qt.
>
> I think that would make sense.
> Is the change you propose the one in the attached patch?

Yeah, this patch looks good to me.

--
mike

Loading...