octave-maintainers
[Top][All Lists]
Advanced

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

Re: FTGL.h not found


From: Thomas Treichl
Subject: Re: FTGL.h not found
Date: Fri, 11 Jul 2008 22:37:34 +0200
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Thomas Treichl schrieb:
John W. Eaton schrieb:
| configure: WARNING: FTGL library not found. Native renderer will not have | on-screen text
| | and
| |    fltk backend libs:
| | I removed the ftgl.h entry and then the test succeeded and FTGL/ftgl.h is used | correctly: | | fltk backend libs: -lfltk_gl -framework AGL -framework OpenGL -lfltk | -framework Carbon -framework ApplicationServices | | I have created a normal patch because my changes are not a solution for this | (that's why I don't send a changeset) ...

I think we need to check for ftgl.h, at least if FTGL/ftgl.h is not
found since I don't see any reason to assume that ftgl.h will always
be installed in a directory called FTGL on all systems.  Looking at
the other checks for header files, I assumed that listing both in the
AC_CHECK_HEADERS macro would be OK, and I don't understand why it is
failing for you.

I do now. This one was really tricky ;) The check for FTGL/ftgl.h is good, the test for ftgl.h fails. With this fail the variable warn_graphics ist set to the string

warn_graphics="FTGL library not found. Native renderer will not have on-screen text"

The variable warn_graphics is used later for the test of fltk - all fltk tests are good but warn_graphics is still set. Finally we get to the line 730 in configure.in

  if test "x$warn_graphics" = "x" ; then
    ->good
  else
    ->bad

and I get into ->bad because the check for ftgl.h failed (long before).

My solution resp. my suggestion would be to initialize warn_graphics once again for the test of fltk. A changeset for this is attached.

Regards,

  Thomas


Ooops, just a portion of it in the changeset?! Here is the second, sorry.

# HG changeset patch
# User Thomas Treichl <address@hidden>
# Date 1215808058 -7200
# Node ID 55f6ad8e81d325673ca9e55d47c193dfc54689aa
# Parent  fcc70f30fe31cd4bc694ce773df17bb69131f8c1
Fixed test for FLTK if ftgl.h is not found

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -714,6 +714,7 @@ if test "$FLTK_CONFIG" = "no" ; then
 if test "$FLTK_CONFIG" = "no" ; then
   warn_graphics="fltk library (www.fltk.org) not found.  Native graphics will 
be disabled."
 else
+  warn_graphics="" # may be set to a string if ftgl.h is not found
   FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`"
   FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`"
   

reply via email to

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