bug-ghostscript
[Top][All Lists]
Advanced

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

Setting GS_LIB_DEFAULT and other paths on Windows


From: John Brown
Subject: Setting GS_LIB_DEFAULT and other paths on Windows
Date: Thu, 24 Jan 2013 05:02:12 -0800 (PST)

Hello All,

I have managed to compile v9.06 with MinGW/MSYS. My problem is
that initially GS_LIB_DEFAULT looked like this:

$ gswin32c --help
<snip/>
Search path:
   %rom%Resource/Init/ : %rom%lib/ : c;C :
   MinGWlocalshareghostscript9.06ResourceInit;c;C :
   MinGWlocalshareghostscript9.06lib;c;C :
   MinGWlocalshareghostscript9.06ResourceFont;c;C :
   MinGWlocalshareghostscript♀onts;C;c : MinGWmsys☺.0WindowsFonts
Initialization files are compiled into the executable.
For more information, see c:/mingw/local/share/ghostscript/9.06/doc/Use.htm.

That looked very wrong, so without going any further, I edited 

./obj/gconfigd.h to look like this:


#define GS_LIB_DEFAULT "C:/MinGW/local/share/ghostscript/9.06/Resource/Init;C:/M
inGW/local/share/ghostscript/9.06/lib;C:/MinGW/local/share/ghostscript/9.06/Reso
urce/Font;C:/Windows/Fonts"
#define GS_DEV_DEFAULT "x11alpha bbox"
#define GS_CACHE_DIR "~/.ghostscript/cache/"
#define SEARCH_HERE_FIRST 0
#define GS_DOCDIR "c:/mingw/local/share/ghostscript/9.06/doc"

and ran make again. 


This time:
Search path:
   %rom%Resource/Init/ : %rom%lib/ : c;C :
   /MinGW/local/share/ghostscript/9.06/Resource/Init;c;C :
   /MinGW/local/share/ghostscript/9.06/lib;c;C :
   /MinGW/local/share/ghostscript/9.06/Resource/Font;c;C :
   /MinGW/local/share/ghostscript/fonts;C;C : /Windows/Fonts


This was still not quite right, but the following command produced
a PDF without a problem:

$ bin/gswin32c.exe -sDEVICE=pdfwrite -sOutputFile=alphabet.pdf \

-dNOPAUSE -dBATCH alphabet.ps

and `strings gswin32c.exe | grep -i mingw' returned

c;C:/MinGW/local/share/ghostscript/9.06/Resource/Init;c;C:/MinGW/local/share/gho
stscript/9.06/lib;c;C:/MinGW/local/share/ghostscript/9.06/Resource/Font;c;C:/Min
GW/local/share/ghostscript/fonts;C;C:/Windows/Fonts
c:/mingw/local/share/ghostscript/9.06/doc
Mingw runtime failure:


which is what I expected, except for the repeated single-letter directory
"c", which I can easily take out of gconfigd.h.

It turned out that both executables worked, although I noticed in both
casese, they did not load the font from a directory in the search path:

Loading URWPalladioL-Ital font from %rom%Resource/Font/URWPalladioL-Ital... 2819
136 1431332 1720984 427061 2 done.


1) Is GS_LIB_DEFAULT now specified correctly?

2) Do I need to be concerned about how it is reported by `gswin32c --help'?

3) What should I do to get the right result up front, without
   having to modify gconfigd.h? 


4) What should I do with "~/.ghostscript/cache/" on Windows?


Regards,
John Brown.




reply via email to

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