bugGNU Octave - Bugs: bug #47263, Link to gl2ps even if configuring...

 
 

bug #47263: Link to gl2ps even if configuring without FLTK

Submitter:  None
Submitted:  Thu 25 Feb 2016 08:17:02 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  jwe
Originator Name:  Sebastian Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 10 May 2016 01:22:30 PM UTC, comment #11: 

I did not mean to hijack this bug report.
As suggested, I opened a new bug report.

Anonymous
Mon 09 May 2016 04:05:06 PM UTC, comment #10: 

I think Marcus may have a point, but it should be discussed as a fresh issue. Marcus, please report a new bug with your compiler error, also which distribution and compiler you are building with.

Mike Miller <mtmiller>
Group Member
Mon 09 May 2016 03:55:02 PM UTC, comment #9: 

This works for me.

I ran


make maintainer-clean
bootstrap
./configure --without-opengl
make


This was with cset 1683:54fa4dcba730.

Rik <rik5>
Group administrator
Mon 09 May 2016 04:23:07 AM UTC, comment #8: 

I'd prefer to leave the checks as they are and fix the conditionals in the C++ code to properly reflect what is actually needed.  So if the code is using OpenGL features but not checking to see that OpenGL is available, then that seems to be the real bug.

John W. Eaton <jwe>
Group administrator
Mon 09 May 2016 03:07:32 AM UTC, comment #7: 

1487a68a496a seems to case a link error when configure script is given --without-opengl.

Undefined symbols for architecture x86_64:
  "_glGetIntegerv", referenced from:
      gl2ps_renderer::draw_axes(axes::properties const&) in libcorefcn.a(libinterp_corefcn_libcorefcn_la-gl2ps-print.o)
  "_glRasterPos3d", referenced from:
      gl2ps_renderer::render_text(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double, double, double, int, int, double) in libcorefcn.a(libinterp_corefcn_libcorefcn_la-gl2ps-print.o)

 
As best I can tell, without OpenGL, gl2ps, fontconfig, and freetype are not needed.
Attached is a proposed modification to configure.ac.

(file #37107)

Marcus <mclopez>
Tue 01 Mar 2016 04:14:29 PM UTC, comment #6: 

Fixed!  Closing report.

Rik <rik5>
Group administrator
Mon 29 Feb 2016 08:24:04 PM UTC, comment #5: 

Thanks, I was remembering the way things worked in the past and didn't check before I modified the text.  Fixed here:

http://hg.savannah.gnu.org/hgweb/octave/rev/1233bf2a03a5

John W. Eaton <jwe>
Group administrator
Mon 29 Feb 2016 12:25:24 PM UTC, comment #4: 

@John: I see the following sentence in your last changeset:
"The toolkit used for a given figure may not be changed once the figure is initialized"

I think this is wrong as graphics_toolkit lets you switch from one toolkit to another as you like:


close all
graphics_toolkit ("qt")
hf = figure ();
plot (1:10);
graphics_toolkit (hf, "gnuplot")



Pantxo Diribarne <pantxo>
Group Member
Mon 29 Feb 2016 04:28:08 AM UTC, comment #3: 

I checked in this changeset for the documentation:

http://hg.savannah.gnu.org/hgweb/octave/rev/e5fd5bc5fd90

John W. Eaton <jwe>
Group administrator
Mon 29 Feb 2016 04:19:27 AM UTC, comment #2: 

I checked in the following changeset.  It seems to fix the problem for me.

  http://hg.savannah.gnu.org/hgweb/octave/rev/1487a68a496a

I missed the part about the documentation.  I'll fix that separately unless someone else does it first.

John W. Eaton <jwe>
Group administrator
Thu 25 Feb 2016 10:14:53 PM UTC, comment #1: 

Confirmed on a build with "--without-fltk". The configure scripts reports that "native graphics will be disabled". Octave builds but the doc plots fail to build. Qt is an available toolkit and is the default, but trying to print a figure to a file aborts Octave.

Configure still groups a bunch of things together into the umbrella of "native graphics" from the days when FLTK was the only option. Missing any of the libs along the way turns off the "native graphics" bit and bypasses further tests.

Mike Miller <mtmiller>
Group Member
Thu 25 Feb 2016 08:17:02 PM UTC, original submission:  

Plotting with qt graphics backend requires gl2ps. However, the configure scripts only links to gl2ps if compiled with FLTK support.

This should also be fixed in the doc: "OpenGL to PostScript printing library (http://www.geuz.org/gl2ps/). gl2ps is required for printing when using the FLTK toolkit.", see https://www.gnu.org/software/octave/doc/interpreter/External-Packages.html

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #37107:  patch-configure.diff added by mclopez (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mclopez (Updated the item)
  • -email is unavailable- added by mclopez
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-09 mclopez Attached File- Added patch-configure.diff, #37107
        Carbon-Copy- Added mclopez
    2016-03-01 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-02-26 jwe Assigned toNone jwe
    2016-02-25 mtmiller Item GroupNone Build Failure
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code