Changes between Initial Version and Version 1 of Ticket #3769


Ignore:
Timestamp:
Mar 23, 2011, 12:47:09 PM (13 years ago)
Author:
dmorissette
Comment:

Unfortunately I'm not setup to test this with opengl at the moment, but I had another look at the configure.in script and the only explanation I can find would be the following block of code in the --with-opengl block (around line 943 of configure.in):

  if test -n "$FTGL_LIB" ; then
     FT_INC=`$FTGL_LIB --cflags`
  else
     AC_MSG_ERROR([FTGL required for opengl support - please configure --with-ftgl.])
  fi

The assignment of FT_INC seems like a typo, and anyway, $FTGL_LIB is not a pointer to a binary at this point (it should be a set of -L linker args), so this assignment makes no sense and probably just happens to overwrite the FT_INC value and cause the side-effect on the Freetype include path that you noticed.

Can you try to replace the block above around line 943 of configure.in with the following, then rerun autoconf and see if that solves the build issue?

  if test -z "$FTGL_LIB" ; then
     AC_MSG_ERROR([FTGL required for opengl support - please configure --with-ftgl.])
  fi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3769

    • Property Cc tbonfort added
    • Property Owner changed from sdlime to dmorissette
    • Property Component MapServer C LibraryBuild Problems
    • Property Milestone6.0 release
  • Ticket #3769 – Description

    initial v1  
    1010
    1111I get the following error message while building mapserver:
    12 
    13 g++ -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR           -DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH   -DUSE_WFS_SVR -DUSE_WMS_SVR  -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_OGL -DUSE_FTGL   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID   -I/usr/include  -I/usr/include -I/usr/local/include -Irenderers/agg/include  -I/usr/include -I/usr/include/FTGL/ -I/usr/include   -I/usr/local/include -I/usr/local/pgsql-844/include   -I/usr/local/include    -I/usr/include/libxml2     -c -o renderers/agg/src/agg_font_freetype.o renderers/agg/src/agg_font_freetype.cpp
     12{{{
     13g++ -g  -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR           
     14-DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH   
     15-DUSE_WFS_SVR -DUSE_WMS_SVR  -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
     16-DUSE_GDAL -DUSE_OGR -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_OGL -DUSE_FTGL   
     17-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW
     18-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV
     19-DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE  -DDISABLE_CVSID
     20-I/usr/include  -I/usr/include -I/usr/local/include -Irenderers/agg/include 
     21-I/usr/include -I/usr/include/FTGL/ -I/usr/include   -I/usr/local/include -I/usr/local/pgsql-844/include   
     22-I/usr/local/include    -I/usr/include/libxml2     
     23-c -o renderers/agg/src/agg_font_freetype.o renderers/agg/src/agg_font_freetype.cpp
    1424In file included from renderers/agg/src/../include/agg_font_freetype.h:23,
    1525                 from renderers/agg/src/agg_font_freetype.cpp:18:
     
    2030renderers/agg/src/../include/agg_font_freetype.h:61: error: ‘FT_Encoding’ has not been declared
    2131renderers/agg/src/../include/agg_font_freetype.h:81: error: ‘FT_Encoding’ does not name a type
     32}}}
    2233
    2334Datei oder Verzeichnis nicht gefunden = File not found
    2435
    2536The ftheader.h file IS available at:
    26 
     37{{{
    2738-rw-r--r-- 1 root root 24761 18. Nov 21:58 /usr/include/freetype2/freetype/config/ftheader.h
     39}}}
    2840
    2941Do I have to add additional information to the configure statement or is something broken?