[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: |
Thu, 10 Jul 2008 22:19:00 +0200 |
User-agent: |
Thunderbird 2.0.0.14 (Macintosh/20080421) |
John W. Eaton schrieb:
On 10-Jul-2008, John W. Eaton wrote:
| So do we agree that the configure script and sources should be changed
| to look for and use ftgl.h?
After taking a closer look, I don't see any FTGL headers included
anywhere in the Octave sources, and the configure test actually
includes FTGLTextureFont.h, so it seems we should check for that
instead. I made that change, but then the check still failed, so I
finally looked in the config.log file and found that FTGLTextureFont.h
is deprecated, so ftgl.h should be used instead.
The current test for ftgl fails on my system (MacOSX, gcc-4.0.1) because '#fi'
isn't understood by my preprocessor:
Further, the headers FTGL/ftgl.h and ftgl.h are checked sequentially and I see a
dominant result when checking for ftgl.h even when FTGL/ftgl.h should be used:
checking for FreeType -- version >= 9.0.3... yes
checking FTGL/ftgl.h usability... yes
checking FTGL/ftgl.h presence... yes
checking for FTGL/ftgl.h... yes
checking for FTGLTextureFont in -lftgl... yes
checking ftgl.h usability... no
checking ftgl.h presence... no
checking for ftgl.h... no
results in
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) ...
Regards,
Thomas
diff -r e56bb65186f6 configure.in
--- a/configure.in Wed Jun 25 22:11:07 2008 +0200
+++ b/configure.in Thu Jul 10 22:18:25 2008 +0200
@@ -654,7 +654,7 @@ if test "x$OPENGL_LIBS" != "x"; then
[warn_graphics="FreeType library not found. Native renderer will not have
on-screen text"])
if test "x$warn_graphics" = "x" ; then
AC_LANG_PUSH(C++)
- AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], [
+ AC_CHECK_HEADERS([FTGL/ftgl.h], [
AC_MSG_CHECKING([for FTGLTextureFont in -lftgl])
save_LIBS="$LIBS"
save_CXXFLAGS="$CXXFLAGS"
@@ -665,7 +665,7 @@ if test "x$OPENGL_LIBS" != "x"; then
#include <FTGL/ftgl.h>
#elif HAVE_FTGL_H
#include <ftgl.h>
-#fi], [
+#endif], [
FTGLTextureFont font("");], [
OPENGL_LIBS="$OPENGL_LIBS $FT2_LIBS -lftgl"
LIBS="$save_LIBS"
- FTGL.h not found, John W. Eaton, 2008/07/09
- Re: FTGL.h not found, Shai Ayal, 2008/07/09
- Re: FTGL.h not found, Thomas Weber, 2008/07/10
- Re: FTGL.h not found, Shai Ayal, 2008/07/10
- Re: FTGL.h not found, Thomas Weber, 2008/07/10
- Re: FTGL.h not found, John W. Eaton, 2008/07/10
- Re: FTGL.h not found, John W. Eaton, 2008/07/10
- Re: FTGL.h not found,
Thomas Treichl <=
- Re: FTGL.h not found, John W. Eaton, 2008/07/10
- Re: FTGL.h not found, Thomas Treichl, 2008/07/11
- Re: FTGL.h not found, Thomas Treichl, 2008/07/11
- Re: FTGL.h not found, David Bateman, 2008/07/17
- Re: FTGL.h not found, David Bateman, 2008/07/17
- Re: FTGL.h not found, Jaroslav Hajek, 2008/07/17
- Re: FTGL.h not found, John W. Eaton, 2008/07/18
- Re: FTGL.h not found, Jaroslav Hajek, 2008/07/18
- Re: FTGL.h not found, John W. Eaton, 2008/07/21
- Re: FTGL.h not found, Michael Goffioul, 2008/07/21