octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47886] Do not link against libraries without


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #47886] Do not link against libraries without OpenGL
Date: Thu, 10 Nov 2016 22:14:59 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #11, bug #47886 (project octave):

There are two locations, so I used:


@ ~/octave/octave/octave $ hg diff
diff --git a/libinterp/corefcn/gl2ps-print.cc
b/libinterp/corefcn/gl2ps-print.cc
--- a/libinterp/corefcn/gl2ps-print.cc
+++ b/libinterp/corefcn/gl2ps-print.cc
@@ -28,7 +28,7 @@ along with Octave; see the file COPYING.
 #include "errwarn.h"
 #include "gl2ps-print.h"
 
-#if defined (HAVE_GL2PS_H)
+#if defined (HAVE_GL2PS_H) && defined (HAVE_OPENGL)
 
 #include <cstdio>
 
@@ -802,7 +802,7 @@ namespace octave
   gl2ps_print (const graphics_object& fig, const std::string& stream,
                const std::string& term)
   {
-#if defined (HAVE_GL2PS_H)
+#if defined (HAVE_GL2PS_H) && defined (HAVE_OPENGL)
 
     // FIXME: should we have a way to create a file that begins with the
     // character '|'?



This does create an unused variable within the gl2ps_print function:


/home/sebald/octave/octave/octave/libinterp/corefcn/gl2ps-print.cc:802:3:
warning: unused parameter 'fig' [-Wunused-parameter]
   gl2ps_print (const graphics_object& fig, const std::string& stream,
   ^


What command is used to touch the 'fig' parameter to get rid of the warning?

Anyway, it's running and I don't see any doc/ segfaults... texi files... eps
files... ohhh, had my hopes up there.  OK, seeing this error:


  TEXI2DVI doc/interpreter/octave.dvi
/usr/bin/texi2dvi: etex exited with bad status, quitting.
make[2]: *** [doc/interpreter/octave.dvi] Error 1
make[2]: Leaving directory `/usr/local/src/octave/octave/build1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/octave/octave/build1'
make: *** [all] Error 2


I'll investigate what that issue is.

Mike, "--without-OSMesa" would be fine with me, but I must have forgotten
about it.  I will try.  Aren't OSMesa and gl2ps ultimately tied together?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47886>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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