[GRASS-dev] Re: [GRASS GIS] #456: Undefined references when building grass 6.4 rc4

GRASS GIS trac at osgeo.org
Wed Apr 22 18:08:02 EDT 2009


#456: Undefined references when building grass 6.4 rc4
------------------------+---------------------------------------------------
  Reporter:  fundawang  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect     |      Status:  reopened                 
  Priority:  major      |   Milestone:  6.4.0                    
 Component:  default    |     Version:  6.4.0 RCs                
Resolution:             |    Keywords:                           
  Platform:  Linux      |         Cpu:  x86-64                   
------------------------+---------------------------------------------------
Comment (by glynn):

 Replying to [comment:22 fundawang]:
 > If configure.in is to be modified, you should detect cairo-xlib rather
 than cairo. It provides extra linking libs:
 >
 {{{
 $ pkg-config --libs cairo-xlib
 -lcairo -lX11
 }}}

 But the cairo driver doesn't use the Xlib backend. It can optionally use
 the Xrender backend; currently, we do:
 {{{
 cairo="cairo cairo-ft"
 if test -n "$USE_X11"; then
         cairo="$cairo cairo-xlib-xrender"
 fi
 ...
 CAIROINC=`pkg-config --cflags $cairo`
 }}}
 If you build --without-x11, the cairo driver should still be built,
 supporting all of the file-based backends (PNM, PNG, BMP, PDF, PS, SVG).
 This should require X libraries.

 If you build --with-x11, {{{pkg-config ... cairo-xlib-xrender}}} should
 provide all of the necessary switches.

 Ah, I see; 6.4 has the Xrender code in the cairo driver but doesn't have
 the corresponding tests in configure.in. Someone who cares about 6.4 needs
 to back-port them from 7.0.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/456#comment:23>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list