[GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows

GRASS GIS trac at osgeo.org
Thu Mar 12 16:46:31 PDT 2015


#2448: Fontconfig error with cairo on Windows
-------------------------------------------+--------------------------------
 Reporter:  annakrat                       |       Owner:  grass-dev@…              
     Type:  defect                         |      Status:  new                      
 Priority:  normal                         |   Milestone:  7.0.1                    
Component:  Display                        |     Version:  7.0.0                    
 Keywords:  font, text, legend, scale bar  |    Platform:  MSWindows 8              
      Cpu:  Unspecified                    |  
-------------------------------------------+--------------------------------

Comment(by wenzeslaus):

 Replying to [comment:13 hellik]:
 > Replying to [comment:12 annakrat]:
 > > I made a screencast to see what's in the terminal which just flashes
 during the installation. I get:
 > >
 > >
 {{{
 ...
 ERROR: GISRC - variable not set
 }}}
 > >
 > > This is the same what happens if you run run_gmkfontcap from windows
 command prompt.
 >
 >
 > relevant lines of codes
 [http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
 Installer.nsi.tmpl#L531 g.mkfontcap] and following.
 >
 {{{
 ...
 546             FileWrite $0 'set GISBASE=$INSTALL_DIR$\r$\n'
 547             FileWrite $0 '$\r$\n'
 548             FileWrite $0 'rem set path to freetype dll$\r$\n'
 549             FileWrite $0 'set
 FREETYPEBASE=$INSTALL_DIR\extrabin;$INSTALL_DIR\msys\bin;$INSTALL_DIR\lib$\r$\n'
 550             FileWrite $0 '$\r$\n'
 551             FileWrite $0 'rem set dependecies path$\r$\n'
 552             FileWrite $0 'set PATH=%FREETYPEBASE%;%PATH%$\r$\n'
 ...
 }}}
 >
 > any idea which variable isn't set?

 It is the [http://grass.osgeo.org/grass70/manuals/variables.html#list-of-
 selected-%28grass-related%29-shell-environment-variables GISRC] variable
 which is not set.

 The issue is that you have to set it and probably also create a valid
 file. It rcfile and `GISRC` variable handling seems nontrivial and I don't
 understand what is the actual goal here but perhaps you will be more
 successful.

  * source:grass/trunk/lib/init/grass.py#L1335
  * source:grass/trunk/lib/init/grass.py#L273

 We could perhaps avoid this problem altogether if we would just tell GRASS
 GIS what to run (#2579), although this might have its own problems during
 installation.

 One other thing is that it is not clear to me what changed that now GISRC
 variable is required but it was not before.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2448#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list