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

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

[Octave-bug-tracker] [bug #53278] Cannot build Octave when QOFFSCREENSUR


From: Rik
Subject: [Octave-bug-tracker] [bug #53278] Cannot build Octave when QOFFSCREENSURFACE is present, but not functional
Date: Sun, 4 Mar 2018 13:10:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #7, bug #53278 (project octave):

Looking more closely at the macro OCTAVE_CHECK_QT_OPENGL_OFFSCREEN_OK I can
see the problem.  The m4 code is


AC_DEFUN([OCTAVE_CHECK_QT_OPENGL_OFFSCREEN_OK], [
  dnl Normally the language and compiler flags would be set and restored
  dnl inside of the AC_CACHE_CHECK body.  Because we also need to check for
  dnl Qt header files associated with the compilation test, set and restore
  dnl these values outside of the AC_CACHE_CHECK for this macro only.
  AC_LANG_PUSH(C++)
  ac_octave_save_CPPFLAGS="$CPPFLAGS"
  ac_octave_save_CXXFLAGS="$CXXFLAGS"
  CPPFLAGS="$QT_CPPFLAGS $CXXPICFLAG $CPPFLAGS"
  CXXFLAGS="$CXXPICFLAG $CXXFLAGS"
  AC_CHECK_HEADERS([QOffscreenSurface])
  AC_CACHE_CHECK([whether Qt supports full offscreen OpenGL rendering],
  ...
  ...


The call to AC_CHECK_HEADERS will define HAVE_QOFFSCREENSURFACE if it is
present, but configure still hasn't determined that it is actually usable. 
That is the next bit of code.  Therefore, the C++ code can't be checking only
for HAVE_QOFFSCREENSURFACE before going ahead with compilation.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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