Hi,
How can I compile the ftrasterize for grlib.
Note that I have windows 7 and Visual Studio 2008.
Thanks in advance for your help.
ftrasterize is built using gcc from cygwin. Download cygwin (www.cygwin.com), install it on your computer, be sure to select gcc and make (they are not selected by default), and then type "make" in the tools/ftrasterize directory.
--Brian
Hi
Thanks for your reply.I have installed cygwin and select gcc and make.but when i type make i got the following error.
please see the attached picture.
Look in freetype-2.3.5/log...it has the detailed output from running make. Did you install the "gcc" package (which is gcc 3.x), or the "gcc4" package (which is gcc 4.x)? I know it works when using gcc 3.x (i.e. the "gcc" package).
Hi Brian
There is no option for selecting gcc 3.x in the cygwin.you can see the log output file
make[1]: Entering directory `/cygdrive/c/Users/Administrator/Desktop/StellarisWare/tools/ftrasterize/freetype-2.3.5'
FreeType build system -- automatic system detection
The following settings are used:
platform unix
compiler cc
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.
Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).
Generating modules list in ./objs/ftmodule.h...
* module: truetype (Windows/Mac font files with extension *.ttf or *.ttc)
* module: type1 (Postscript font files with extension *.pfa or *.pfb)
* module: cff (OpenType fonts with extension *.otf)
* module: cid (Postscript CID-keyed fonts, no known extension)
* module: pfr (PFR/TrueDoc font files with extension *.pfr)
* module: type42 (Type 42 font files with no known extension)
* module: winfnt (Windows bitmap fonts with extension *.fnt or *.fon)
* module: pcf (pcf bitmap fonts)
* module: bdf (bdf bitmap fonts)
* module: sfnt (helper module for TrueType & OpenType formats)
* module: autofit (automatic hinting module)
* module: pshinter (Postscript hinter module)
* module: raster (monochrome bitmap renderer)
* module: smooth (anti-aliased bitmap renderer)
* module: smooth (anti-aliased bitmap renderer for LCDs)
* module: smooth (anti-aliased bitmap renderer for vertical LCDs)
* module: psaux (Postscript Type 1 & Type 2 helper module)
* module: psnames (Postscript & Unicode Glyph name handling)
done.
cd builds/unix; ./configure "CFLAGS=-MD -mno-cygwin -I freetype-2.3.5/include" "LDFLAGS= -mno-cygwin -s" "--with-zlib=no"
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [setup] Error 77
make[1]: Leaving directory `/cygdrive/c/Users/Administrator/Desktop/StellarisWare/tools/ftrasterize/freetype-2.3.5'
config.mk:25: builds/unix/unix-def.mk: No such file or directory
config.mk:26: builds/unix/unix-cc.mk: No such file or directory
make[1]: *** No rule to make target `builds/unix/unix-cc.mk'. Stop.
what should I do now?
The important thing is to install the "gcc" package, not the "gcc4" package. Also important is to install "gcc", not "gcc-core" and "gcc-g++" and ... the "gcc" package is a "meta-package" that includes all the important pieces of gcc (3.x) in order to get a complete, working compiler.
With the "gcc" meta-package installed on my cygwin setup, I do not experience problems with building ftrasterize.
Can you confirm that you have the "gcc" meta-package installed on your cygwin setup?
Can somebody show me the required steps for compiling ftrasterize. as you can see the gcc version on my cygwin is 3.4.4
What might have been gone wrong? Did I miss something?
Thanks in advance for sharing your time.
Ali Asadzadeh Can somebody show me the required steps for compiling ftrasterize. as you can see the gcc version on my cygwin is 3.4.4 What might have been gone wrong? Did I miss something?
What happens if you apply the discussion from this forum thread to your example?
Problem with pnmtoc image conversion